Ok
1:) How can i only have the X button and not the max and min buttons on my Application
2:) anyone know where i can get a example where i can have Java read an XML file ?
Printable View
Ok
1:) How can i only have the X button and not the max and min buttons on my Application
2:) anyone know where i can get a example where i can have Java read an XML file ?
#1 - Use the setResizable() method, and pass in false. Works in Swing, can't speak for AWT if that's what you are looking for.
:)
Yes was talking about Swing
got some more
How can i make the JComboBox list open Up and not Down?
i have this code but it sucsk know a better way to set the screen location?
Code:Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension frameSize = frmMain.getSize();
if (frameSize.height > screenSize.height)
{
frameSize.height = screenSize.height;
}
if (frameSize.width > screenSize.width)
{
frameSize.width = screenSize.width;
}
frmMain.setLocation((screenSize.width - frameSize.width) / 2 -80,(screenSize.height - frameSize.height) / 3);
}