Code example for JLabel

Methods: setToolTipText

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