1. Starting a new frame with JComboBox? coderanch.com |
2. regarding combobox in frame coderanch.com |
3. why isn't my combobox appearing on my frame? java-forums.orgimport javax.swing.*; import java.awt.FlowLayout; /** * * @author mjohnson */ class ProjectConversions extends JFrame{ public ProjectConversions(){ setTitle("PS-Clarity Project Conversions Interface"); setDefaultCloseOperation(EXIT_ON_CLOSE); setSize(300,300); JComboBox entity = new JComboBox(); EntityProvider comboFill = new EntityProvider(); //Fill JComboBox with values retrieved from EntityProvider Class for(String name :comboFill.fileArray){ entity.add(name, this); } entity.setVisible(true); //set combobox to visible setVisible(true); //set frame to visible } } |