• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pls Rate My proposed GUI concept for Assignment

 
Saheed Adepoju
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I havent yet downloaded the assignment but i have a concept(Sorry i havent any diagram yet) that i would like to use.
First of all i would like to use Internal Frames within a JFrame that would contain JMenus.
There would be a startup screen that would give one the option of whether standalone or network mode. The JFrame would contain JMenu for the various options and there would be internal frames for the options that you choose. I intend not to use any layout managers. Pls i would like an advice on me not using Layout managers and if internal frames would be a good thing to use. Thanks.

I apologise if the details are a bit confusing. Would be grateful if i get your opinions on my proposed design.
Saheed.
SCJP 1.4
SCJD(preparing...).

Imagination is better than Knowledge..
 
Daniel Simpson
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Saheed Adepoju:
Hi all
I havent yet downloaded the assignment but i have a concept(Sorry i havent any diagram yet) that i would like to use.
First of all i would like to use Internal Frames within a JFrame that would contain JMenus.
There would be a startup screen that would give one the option of whether standalone or network mode. The JFrame would contain JMenu for the various options and there would be internal frames for the options that you choose. I intend not to use any layout managers. Pls i would like an advice on me not using Layout managers and if internal frames would be a good thing to use. Thanks.

I apologise if the details are a bit confusing. Would be grateful if i get your opinions on my proposed design.
Saheed.
SCJP 1.4
SCJD(preparing...).

Imagination is better than Knowledge..

First of all, when you download the assignment, read through the documentation thoroughly. There would be a startup screen that would give one the option of whether standalone or network mode. This is similar to Max's approach in his book (if you are familiar), however I believe almost every assignment requires different parts to be run through the command line, not through a gui. For example if you wanted local it would be something like
code: or network code: That is what my specifications say. Also, if you are thinking about using internal frames, you may be overcomplicating this. Remember, there is no such thing as extra credit points for going above and beyond. I'm no Swing expert, but is it even possible to not use a layoutmanager? Even if you don't explicitly make one, components such as JFrame and JPanel have implicit default layout managers. Hope these comments help.
 
Saheed Adepoju
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thanks a lot for your reply. Max's book is on its way and i cant wait to lay my hands on it. I guess this would give me a better insight on what the various assignment might require. I guess i am a bit in a hurry, i guess i will take your advice and download the assignment so that i would better understand the requirements. Thanks for your prompt reply.
Saheed.
 
Sean Gildea
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I havent yet downloaded the assignment but i have a concept(Sorry i havent any diagram yet) that i would like to use.
First of all i would like to use Internal Frames within a JFrame that would contain JMenus.
There would be a startup screen that would give one the option of whether standalone or network mode. The JFrame would contain JMenu for the various options and there would be internal frames for the options that you choose. I intend not to use any layout managers. Pls i would like an advice on me not using Layout managers and if internal frames would be a good thing to use. Thanks.

I apologise if the details are a bit confusing. Would be grateful if i get your opinions on my proposed design.
Saheed.
SCJP 1.4
SCJD(preparing...).


Hey Dan,

I created a MainWindow class that extended JFrame. In it I had a border layout with a top, center and bottom. In each area, I had a jpanel with either a borderlayout or flowlayout. If exceptions occured, I had a jdialog box popup. And in the center area I had my jscrollpane & jtable. Thats about all the swing you will need. I never used menus because I found it outside the scope of my assignment.

Good luck
 
peter wooster
Ranch Hand
Posts: 1033
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Daniel Simpson:
I'm no Swing expert, but is it even possible to not use a layoutmanager?


Yes it's possible to not use a layout manager, aka null layout, it's a very bad idea and is reminiscent of coding in VB. If you are tempted to do this consider the SpringLayout which gives you all the control of an absolute (null layout) without the totally fixed positioning. It's a new layout manager in 1.4, which I use extensively in my project. The other layout manager that I use is BorderLayout. These two together give you all you need for this project.

If you don't use SpringLayout, you will probably need to look at GridBagLayout.

Another choice is to write your own LayoutManager, if you go to the Sun Swing forum you will find lots of custom layout managers.

All said, Do not use null layout.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic