Java Code Examples for javax.swing.JLabel.getName()

The following are Jave code examples for showing how to use getName() of the javax.swing.JLabel class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: xdman   File: ConfigDialog.java   View Source Code Vote up 5 votes
@Override
public void mouseClicked(MouseEvent e) {
	if (e.getSource() instanceof JLabel) {
		JLabel src = (JLabel) e.getSource();
		String id = src.getName();
		showPanel(getString(id));
		for (int i = 0; i < arrLbl.length; i++) {
			if (arrLbl[i] == src) {
				src.setFont(boldFont);
			} else {
				arrLbl[i].setFont(plainFont);
			}
		}
	}
}