aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JComboBox problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JComboBox problem" Watch "JComboBox problem" New topic
Author

JComboBox problem

Ali Hassaan
Ranch Hand

Joined: May 16, 2001
Posts: 103
Hi Friends
I m using GridBagLayout,in it i hav sevral components including JComboBox,JTextField and JTable.
First problem i hav is tht JComBox is not working i.e its not showing me drop down list,only first element is showing also its not disable,i hav set its enable value true.
Second problem i hav is i cant limit textbox to certain character i m extending JTextField in my own class MyTextField it is working fine for TextField but not for JTextField.
Please help me out.
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
I am having a hard time following you on this one. JComboBox will only show the first element unless you click on the arrow. You also said that you set it enabled and it wasn't disabled? Not sure what your JTextField issue is. You mention TextField are you mixing swing and AWT components?
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi Ali Hassaan,
I don't understand your problem, maybe show us some code,
and I wil try to help you.
Yoel Stern
------------------
Sun Certified Programmer for JAVA 2 Platform
[This message has been edited by yoel stern (edited August 14, 2001).]
Ali Hassaan
Ranch Hand

Joined: May 16, 2001
Posts: 103
Thanx Paul and Yoel,
my problem is solve,problem was tht comboBox was not showing properly, i mean its drop down property was not working.Because i was using JComboBox in Panel class.
I change it and use JPanel class.Whch works for me nicely.
Originally posted by yoel stern:
Hi Ali Hassaan,
I don't understand your problem, maybe show us some code,
and I wil try to help you.
Yoel Stern

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JComboBox problem
 
Similar Threads
Sockets in Macintosh OS
JcomboBox
Printing Form
Focus Between JComboBox and JTextField
EJB Nt Bound