10. marts 2003 - 16:10Der er
6 kommentarer og 1 løsning
Placer JFrame på skærmen
Container c = getContentPane(); c.setSize(200, 150); c.locate(400, 400); //Jeg troede det var den her c.setLayout(new GridLayout(2, 2)); c.add(cel); c.add(top);
I dette særtema ser vi på, hvordan cloud og AI bliver fundamentet for virksomhedernes digitale forretning, og hvordan de nye muligheder for automatisering og forretningsværdi kan udnyttes uden at miste overblik, sikkerhed og menneskelig kontrol.
public void windowOpened(WindowEvent e){} public void windowClosing(WindowEvent e){ dispose(); System.exit(0);} public void windowClosed(WindowEvent e){} public void windowIconified(WindowEvent e){} public void windowDeiconified(WindowEvent e){} public void windowActivated(WindowEvent e){} public void windowDeactivated(WindowEvent e){}
public void actionPerformed(ActionEvent e) { dispose(); System.exit(0); } }
class Main { public static void main(String args[]) { new TestKlasseSwing().show(); } }
private JLabel cel = new JLabel("Celcius"); private JLabel fah = new JLabel("Fahrenheit"); private JTextField top = new JTextField(10); private JTextField bund = new JTextField(10);
private class tekstLytter implements ActionListener {
private JLabel cel = new JLabel("Celcius"); private JLabel fah = new JLabel("Fahrenheit"); private JTextField top = new JTextField(10); private JTextField bund = new JTextField(10);
private class tekstLytter implements ActionListener {
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.