• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java GUI help

 
Gabriel Belmont
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am doing a project in Java.Well,the thing is I am not sure about how to make a perfect GUI which will appeal everyone.Anyway as of right now,I am planning to have my GUI which is similar to that of Kaspersky's.But problem is I don't understand how to design it.Just like in Kaspersky Internet Security, I would like to have my options available on left and upon clicking any of those,I would like dynamical content corresponding to those options to loaded in target area.How do I achieve this?Browsed around for quite a while but still was clueless.So anyone kind enough to provide a answer?My apologies,still a beginner in Swings.
sample.png
[Thumbnail for sample.png]
 
Rob Camick
Ranch Hand
Posts: 2699
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
still a beginner in Swings


Start by reading the Swing tutorial, especially the sections on:

1. How to Use Border Layout - this will allow you to put your buttons on the left and the other panels in the center.
2. How to Use Card Layout - this will allow you to add all the panels in the center and then swap them, depending on the button pressed.
 
Campbell Ritchie
Marshal
Posts: 52580
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch
It isn't called Swings.
You need to start small; you cannot expect to design a large GUI like that until you have designed simpler things.
 
Gabriel Belmont
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Camick wrote:

Start by reading the Swing tutorial, especially the sections on:

1. How to Use Border Layout - this will allow you to put your buttons on the left and the other panels in the center.
2. How to Use Card Layout - this will allow you to add all the panels in the center and then swap them, depending on the button pressed.


Thanks for your reply.As you said,Card Layout is the required element for me.
 
Gabriel Belmont
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Welcome to the Ranch
It isn't called Swings.
You need to start small; you cannot expect to design a large GUI like that until you have designed simpler things.


Thanks for welcome.Yes indeed.I shall remember your words.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!