• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

fine-tuning my Gui...

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much Eddie.The setEnabled(false) method is working fine.

Thejaswini
 
reply
    Bookmark Topic Watch Topic
  • New Topic