• Post Reply Bookmark Topic Watch Topic
  • New Topic

fine-tuning my Gui...  RSS feed

 
thejaswini ramesh
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
I need some help to fine tune my gui.I have a panel wherein in the user enters some parameters to make a tcp/ip connection.Once the user clicks the "connect" button,I want all the components in the panel to be disabled.In the panel I have 5 textboxes and 3 comboboxes.The text boxes, i have used
text.setEnable(false);
in the listener for "connect".But the comboboxes can still be clicked even when the connection is made.How can i prevent the user from changing any of the parameters after they are set and the connection is made?

On the same lines, I have 2 radiobuttons and a checkbox.I want the insides of these(the circle and the box)to be transparent.By default it has the color of the panel.Can someone give me an idea on this.

Thanks in advance,
Thejaswini.
 
Eddie Vanda
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi thejaswini,

You can use setEnabled (false) on the JCombo box to make it look greyed out.
hth

Ed
 
Eddie Vanda
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Borrowing Michael Dunn's answer on the JComboBox question in this list, I did this:

Originally posted by Michael Dunn:
see if this is any closer to what you want

 
thejaswini ramesh
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Eddie.The setEnabled(false) method is working fine.

Thejaswini
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!