Changeset 2266


Ignore:
Timestamp:
2001-04-03T13:08:37+12:00 (23 years ago)
Author:
daven
Message:

tidied up ChangeLogDialog appearance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/ChangeLogDialog.java

    r2264 r2266  
    8383    JTextArea text = new JTextArea(log);
    8484
     85    text.setCaretPosition(1);
     86
    8587    JScrollPane scrollPane =
    86       new JScrollPane(text,
    87               JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
    88               JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
     88    new JScrollPane(text);
     89    // JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
     90    //  JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    8991   
    9092    JPanel panel = new JPanel();
     93    panel.setLayout(new BorderLayout());
    9194    scrollPane.setPreferredSize(new Dimension(700, 500));
    9295    panel.add(scrollPane, BorderLayout.NORTH);
     
    9598    okButton.setPreferredSize(new Dimension(80,20));
    9699    okButton.addActionListener(this);
    97     panel.add( okButton, BorderLayout.SOUTH);
     100    JPanel buttonPanel = new JPanel();
     101    buttonPanel.add(okButton);
     102
     103    panel.add( buttonPanel, BorderLayout.SOUTH);
    98104   
    99105    getContentPane().add(panel);
Note: See TracChangeset for help on using the changeset viewer.