Code example for JLabel

Methods: setToolTipText

		//Indices start at 0, so 4 specifies the pig. 
		JComboBox domainList = new JComboBox(petStrings);
		domainList.setToolTipText("Either align whole chains or SCOP domains and domains assigned with PDP, where no SCOP available.");
		domainList.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				JComboBox box = (JComboBox)arg0.getSource();
				int index = box.getSelectedIndex();
				if ( index == 0)
					useDomainSplit = true;
					useDomainSplit = false;
		JLabel label= new JLabel("Domains:");
Experience pair programming with AI  Get Codota for Java