Restricting size of a Jlabel

2001-12-12 Thread Aradhana Singh
Hi All, I have a problem with JLabel: I have some JLabel wich display dynamicly some information, but the string describing this information can change, so width of JLabel automaticly adjust its size to show all the string. My problem is that when the JLabel size change, as it is put in a

Setting default focus for a component

2001-12-12 Thread Samivelu, Srinivasan
Dear All I have dialog where there are four text fields and three buttons - Default, Ok , Cancel buttons. When the dialog opens i want set focus for the cancel button. which is the last button. At start the four text fields are non editable. on focus gained the text fields are set to editable