Is this your first time here? SwingWiki is a Java Swing Developer community site with an big archive of Swing-related usenet groups and mailing lists, but also tips, tricks and articles and book reviews written by your colleagues from around the world. If you came here through a search engine and did not find what you were looking for, make sure to check the wiki table of contents.

Link labels and components

Try to links JLabel objects with the components that they describe. This will enable users to click on labels or press mnemonic keys to activate labeled text fields etc.

 
JTextField field = new JTextField();
JLabel label = new JLabel("My Label:");
label.setDisplayedMnemonic('m');
label.setLabelFor(field);
 
 

Comments? Corrections? Contact us or Login to edit pages directly (registration is free and takes less than displaying a JLabel)
  best/link_labels_and_components.txt · Last modified: 2005/02/12 17:46
 
Recent changes | RSS changes | Table of contents | News Archive | Terms And Conditions | Register | The Quest For Software++| Ruby Resources

Sedo - Buy and Sell Domain Names and Websites project info: swingwiki.org Statistics for project swingwiki.org etracker� web controlling instead of log file analysis