I am assumming that the textfield is at the bottom of the screen. I have a JPopMenu. which is displayed when a text field is pressed If the menu contains morethan 10 items,(basically popmenu goes beyond the screen),then Popup dispalys 10 and then scrolling is not done.. should have to do something so that PopUp scroll happens.. thanks and Regards vinaya
this is not really an answer to your question, I just wondered: why is there a popup on the textfield - has the user to choose some value that is then automatically entered in the textfield? if this is the case you should use an editable JComboBox.
Joined: Jan 20, 2002
>>this is not really an answer to your question, >>I just wondered: >>why is there a popup on the textfield - has the >>user to choose some value that is then >>automatically entered in the textfield? if this >>is the case you should use an editable >>JComboBox. Okee..! well the user has to chose from a set of existing values which is decided only at th instances he clicks the text box. okee! how do i do this wrt to editable JComboBox.. and also , my problem of popmenu still exists. if i use the same for celleditor (JTextfield) which will put the value to cell based on the click in the pop up menu,i face this incomplete pop menu... problem.. hope i am clear Thanks for ur help vinaya .
Joined: Sep 28, 2000
you don't need popup menues for cell editors neither. popup menues are there to jump to another point in the program, to start another action. they are not meant as editors for any textfields. you create an editable JComboBox by:
Thanks ! oops!!! Sorry, I just missed one more point in that.. which was why i used Popup for the CellEditor instead of ComboBox for a value in combobox i was not able to have submenus( I think we should use combotree, ,but did not any apis is jdk1.3). Hence i moved to PopUps Hope i am clear with my problem.. Thanks a lot again for ur inputs Regards vinaya