cleaning up todo list and some minor fixes/additions

This commit is contained in:
benfry
2005-02-05 01:42:27 +00:00
parent e2c18e3089
commit dd93cccce0
3 changed files with 192 additions and 196 deletions

View File

@@ -37,6 +37,8 @@ import javax.swing.event.*;
public class PdeFontBuilder extends JFrame {
File targetFolder;
Dimension windowSize;
JList fontSelector;
JComboBox styleSelector;
JTextField sizeSelector;
@@ -315,7 +317,7 @@ public class PdeFontBuilder extends JFrame {
getRootPane().setDefaultButton(okButton);
setResizable(false);
//setResizable(false);
pack();
// do this after pack so it doesn't affect layout
@@ -326,10 +328,22 @@ public class PdeFontBuilder extends JFrame {
//update(); // ??
Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
Dimension size = getSize();
windowSize = getSize();
setLocation((screen.width - size.width) / 2,
(screen.height - size.height) / 2);
setLocation((screen.width - windowSize.width) / 2,
(screen.height - windowSize.height) / 2);
}
/**
* make the window vertically resizable
*/
public Dimension getMaximumSize() {
return new Dimension(windowSize.width, 2000);
}
public Dimension getMinimumSize() {
return windowSize;
}