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.
Joined: May 17, 2001
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?
Joined: Nov 22, 2008
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).]
Joined: May 16, 2001
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