Changeset 18253


Ignore:
Timestamp:
2008-12-18T14:54:55+13:00 (13 years ago)
Author:
cc108
Message:

change the size of confirm button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/admin/gui/ExtensionInstallation.java

    r18248 r18253  
    172172        JScrollPane scrollPane = new JScrollPane(textPane);
    173173        mainPane.add(scrollPane,BorderLayout.CENTER);
     174        JPanel button_pane = new JPanel(new GridLayout(1,3));
     175
     176   
    174177        JButton jbutton = new JButton("ok");
     178       
     179        button_pane.add(Box.createRigidArea(new Dimension(18,5)));
     180        button_pane.add(jbutton);
     181        button_pane.add(Box.createRigidArea(new Dimension(18,5)));
     182       
    175183        jbutton.addActionListener(this);
    176         mainPane.add(jbutton,BorderLayout.SOUTH);
     184        mainPane.add(button_pane,BorderLayout.SOUTH);
    177185        frame.getContentPane().add(mainPane, BorderLayout.CENTER);
    178186        frame.setVisible(true);
Note: See TracChangeset for help on using the changeset viewer.