// construct the components
lName = new JLabel("Name");
tName = new JTextField(15);
bAccept = new JButton("Press Me");
And also how to I change the title of a message dialog box with JOptionPane.
Thanks agian, this site is alway a help.
// construct the components
lName = new JLabel("Name");
tName = new JTextField(15);
bAccept = new JButton("Press Me");
|
|
|
lName = new JLabel("Name", SwingConstants.RIGHT or LEFT);
JOptionPane.showMessageDialog(null, "Hello", "Greetings");Where Greetings in the title.
~Aristotle said: