Results 1 to 5 of 5
Thread: Input box with combobox within
- 10-23-2009, 01:52 PM #1
Member
- Join Date
- Oct 2009
- Posts
- 48
- Rep Power
- 0
Input box with combobox within
How i can create an Inputbox with combobox in it? In java Tutorial i 've finded this sample
But how i can identify the ICOn ? Can i use a string array instead object []?PHP Code:Object[] possibilities = {"ham", "spam", "yam"}; String s = (String)JOptionPane.showInputDialog( frame, "Complete the sentence:\n" + "\"Green eggs and...\"", "Customized Dialog", JOptionPane.PLAIN_MESSAGE, icon, possibilities, "ham");
-
You can use your own ImageIcon or null there in the icon position I believe.But how i can identify the ICOn ?
Have you tried it? What happened?Can i use a string array instead object []?
- 10-23-2009, 02:01 PM #3
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
What? Your questions are disjointed and so is your code.
Why do you need to have a combobox inside an "inputbox" in the first place? Just use the Combobox displaying on a panel inside a JFrame.
- 10-23-2009, 02:06 PM #4
Member
- Join Date
- Oct 2009
- Posts
- 48
- Rep Power
- 0
- 10-23-2009, 02:07 PM #5
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Similar Threads
-
ComboBox with CheckBoxes
By heba.farouk in forum AWT / SwingReplies: 14Last Post: 06-09-2010, 11:03 AM -
Input technique for unknown lines of input
By ducreative in forum New To JavaReplies: 16Last Post: 09-23-2009, 09:26 AM -
Need Help combobox
By kwink in forum AWT / SwingReplies: 3Last Post: 03-21-2009, 10:05 AM -
combobox
By chandu.v in forum New To JavaReplies: 2Last Post: 07-02-2008, 08:36 PM -
how to take input and verify input in Java programs
By bilal_ali_java in forum Advanced JavaReplies: 0Last Post: 07-21-2007, 08:46 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks