• 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

How to navigate in a standalone application

 
Ranch Hand
Posts: 76
IntelliJ IDE Spring BSD
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all.

I'm authoring a simple program, has a few different menu options, that sort of thing. However what I'm wondering is when you make such a program, how do switch to another section of your program when say you click on a menu option or what not. If it was a web application it'd be as simple as having a link and loading a new page for the user, but for a standalone application I'm at a loss. I hope I've explained this decently enough as to what I' trying to explain, and that someone can point me to how this can be done.

EDIT: The application situation in question would be a GUI based app.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That sounds like a use case for a java.awt.CardLayout: http://java.sun.com/docs/books/tutorial/uiswing/layout/card.html
 
Marshal
Posts: 79180
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Command-line or Swing GUI?
 
Chris Creed
Ranch Hand
Posts: 76
IntelliJ IDE Spring BSD
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:That sounds like a use case for a java.awt.CardLayout: http://java.sun.com/docs/books/tutorial/uiswing/layout/card.html



That could work with some "pages" that I was thinking of for an app actually.

Campbell Ritchie wrote:Command-line or Swing GUI?



Swing GUI.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic