This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Cloud Application Architecture Patterns: Designing, Building, and Modernizing for the Cloud and have Kyle Brown, Bobby Woolf and Joseph Yodor on-line!
See this thread for details.
  • 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Check Boxes

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello ppl....having trouble with the check boxes in this code. I've never attempted to do this before, prolly why i have a 'fumbling around in the dark' feeling.

Any feedback would be muchly appreciated =0)


 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving this to the Swing / AWT / SWT / JFace forum...
 
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From your import statement it looks like you want to write a Swing (vis–a–vis AWT) application. It is recommended that we do not mix them; use either all AWT or all Swing. So the first change is to make everything a "J" component.

Writing GUI apps requires some learning about layout managers. If you'll read about the basic ones, viz, FlowLayout, BorderLayout and GridLayout, and learn to use them you can layout just about anything in your GUIs. Using a combination of layout managers is easy; just build one JPanel at a time.

This line is okay

as long as your CheckBoxListener class doesn't have any other methods in it that you need to call with the reference cblistener. Otherwise you would declare it

Don't change ponies in mid–stream:


[ September 05, 2004: Message edited by: Craig Wood ]
reply
    Bookmark Topic Watch Topic
  • New Topic