• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Visual design accuracy

 
Kalichar Rangantittu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How accurate must we be with reference to the java design guidelines for the gui. What I mean is separation between fields etc. If we use the layouts like Border, Flow etc, it is rather easy to do but I am not sure that they will provide the necessary paddings as specified in the guidelines. Gridbag is a pain, however setting insets etc give more control. Any thoughts?
 
Gennady Shapiro
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I followed Sun guidelines to the letter. Pixels, gaps, groups, borders, mnemonics ... blah blah blah. The problem with this is that the code comes out very bulky. I lost 3 point on GUI, maybe for that maybe not. I know most guys don't follow these guidelines and get perfect GUI score. But the good thing about it -- I now know the Sun GUI design conventions.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used the GridBag Layout, and my code was very compact, and easy to read. All you need to do is create one instance of GridBagConstraints, and only change the individual constraint that changes for the next component. It gives you full flexibility, but that comes at the price of having to fiddle with it to get it just right, but once you get tht ehang of it, it really is pretty easy.
I just enjoyed drawing a grid and putting my components in it till I liked the look.
Not sure it followed Sun's guidelines, but I am pretty sure if it didn't they need to change their guidelines
Blah Blah Blah, I am babbling, sorry
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic