summaryrefslogtreecommitdiff
path: root/client/InfoWindow.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2009-02-15 12:59:17 +0000
committerPaul Buetow <paul@buetow.org>2009-02-15 12:59:17 +0000
commit2a93a612375aa6c8fd35280778624d486a81d2d2 (patch)
tree5f0b88be2b6bb5b0eb8a33f5a3e996e2352655c5 /client/InfoWindow.java
parent3f06de0d35403234601f3bc8325ec8d37071d4a3 (diff)
run astyle
Diffstat (limited to 'client/InfoWindow.java')
-rw-r--r--client/InfoWindow.java76
1 files changed, 38 insertions, 38 deletions
diff --git a/client/InfoWindow.java b/client/InfoWindow.java
index 6b8c32b..bdcc744 100644
--- a/client/InfoWindow.java
+++ b/client/InfoWindow.java
@@ -10,48 +10,48 @@ import javax.swing.*;
*
*/
public class InfoWindow extends SubWindow {
- final static long serialVersionUID = 1L;
- private String sText;
-
- /**
+ final static long serialVersionUID = 1L;
+ private String sText;
+
+ /**
* Creates the window and shows it.
* @param netCalendarClient Specifies the calendar client session object to use.
* @param jTitle Speicifies the title text to be displayd in the title bar.
* @param jText Specifies the text to be displayed at the text area.
*/
- public InfoWindow(NetCalendarClient netCalendarClient, String jTitle, String sText) {
- super(jTitle, netCalendarClient);
- this.sText = sText;
- initComponents();
- setResizable(false);
- pack();
- setVisible(true);
- }
-
- /**
- * This method initializes all the GUI components.
- */
- protected void initComponents() {
- setSize(306,400);
- JPanel contentPane = (JPanel) getContentPane();
- contentPane.setBackground(Color.BLACK);
+ public InfoWindow(NetCalendarClient netCalendarClient, String jTitle, String sText) {
+ super(jTitle, netCalendarClient);
+ this.sText = sText;
+ initComponents();
+ setResizable(false);
+ pack();
+ setVisible(true);
+ }
+
+ /**
+ * This method initializes all the GUI components.
+ */
+ protected void initComponents() {
+ setSize(306,400);
+ JPanel contentPane = (JPanel) getContentPane();
+ contentPane.setBackground(Color.BLACK);
+
+ // Build the splash screen
+ JLabel jLabel = new JLabel(new ImageIcon("images/netcal.png"));
+ contentPane.add(jLabel, BorderLayout.CENTER);
- // Build the splash screen
- JLabel jLabel = new JLabel(new ImageIcon("images/netcal.png"));
- contentPane.add(jLabel, BorderLayout.CENTER);
-
- JTextArea jTextArea = new JTextArea();
- jTextArea.setEditable(false);
- jTextArea.setBackground(Color.BLACK);
- jTextArea.setForeground(Color.WHITE);
- jTextArea.setLineWrap(true);
- jTextArea.setWrapStyleWord(true);
- jTextArea.setMargin(new Insets(10, 10, 10, 10));
- jTextArea.setText(sText);
- jTextArea.setFocusable(false);
- jTextArea.setEnabled(false);
- JScrollPane jScrollPane = new JScrollPane(jTextArea);
- jScrollPane.setPreferredSize(new Dimension(306, 400-261));
- contentPane.add(jScrollPane, BorderLayout.SOUTH);
- }
+ JTextArea jTextArea = new JTextArea();
+ jTextArea.setEditable(false);
+ jTextArea.setBackground(Color.BLACK);
+ jTextArea.setForeground(Color.WHITE);
+ jTextArea.setLineWrap(true);
+ jTextArea.setWrapStyleWord(true);
+ jTextArea.setMargin(new Insets(10, 10, 10, 10));
+ jTextArea.setText(sText);
+ jTextArea.setFocusable(false);
+ jTextArea.setEnabled(false);
+ JScrollPane jScrollPane = new JScrollPane(jTextArea);
+ jScrollPane.setPreferredSize(new Dimension(306, 400-261));
+ contentPane.add(jScrollPane, BorderLayout.SOUTH);
+ }
}