• 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

Java built by Netbeans

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would like a small box to be able to enter a contacts information and I started with building it thru netbeans. Now I am thinking I should start from scratch so I understand everything. What should I do? I am having trouble making the buttons at the bottom work. All I would like to be able to do is but I can't seem to be able to do that without loosing the whole project not just the frame I am working on.

*Edit* The buttons I am referencing are the Cancel & Accept
 
Marshal
Posts: 79153
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I shall move you to out GUIs forum.

It is probably a good idea never to extend display classes (except overriding JPanel#paintComponent), so I would suggest you change it so the frame is a field or even a local variable in the initComponents method. You would have to change all your add(...) calls to frame.add(...)
You will have to work out your own layouts. Start with the Java® Tutorials.

If you make the frame visible or invisible, it will appear and disappear. And everything else will go with it because a frame is a top-level container. When the frame disappears everything else disappears.
 
The airline is called "Virgin"? Don't you want a plane to go all the way? This tiny ad will go all the way:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic