Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to navigate in a standalone application

 
Chris Creed
Ranch Hand
Posts: 69
BSD Eclipse IDE PHP
  • Mark post as helpful
  • send pies
  • 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.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • 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
 
Campbell Ritchie
Sheriff
Posts: 48363
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Command-line or Swing GUI?
 
Chris Creed
Ranch Hand
Posts: 69
BSD Eclipse IDE PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic