• 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

Swing Polish or Not to Polish

 
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
If you visit this web site
http://www.geocities.com/eosrubiginosa/
and scroll to the bottom of the page, you will see a partial
Java JDialog for my project (I have obscured some sections
of the dialog which are not related to my question).
Question 1
---------
There are two buttons, "Remote" and "Local", and these buttons are not
exactly the same width. Should I be concerned about this and make changes
so that their widths are absolutely identical in pixels?
Question 2
---------
Within the labeled border called "Local", I use two BoxLayouts. Each line is a horizontal
box, and each line contains a radio button and then the filename. You will notice that
the TextField's representing the filenames do not line up exactly. Should I be concerned
about this and change to another layout manager which would line them up exactly?
Thanks,
Javini Javono
 
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Javini,
I personally care for perfect alignments, equal sizes of related visual objects (buttons among others) and visual "balance" of my screens layouts. In other words, I do care for making my screenns "nice".
But:
  • It's a subjective area
  • I'm perfectionnist to death!


  • So I am as interested as you to know how other people are concerned by your questions.
    Regards,
    Phil.
     
    Ranch Hand
    Posts: 18944
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi,
    I send you two big YES for both question! I have the same reasons as Phil...
    However, to me this has nothing to do with perfectionism at all. It is just common sense. Look at the UI of your favourite software (OS, office products, you name it) - they all take care of such "details".
    Btw, I kinda like the idea of using a BoxLayout! I just wonder what the second text field in local mode is for???
    Regards,
    Marcel
     
    Javini Javono
    Ranch Hand
    Posts: 286
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi,
    Question:
    I just wonder what the second text field in local mode is for???
    The user can connect locally to one of two database types (having
    support for multiple databases is not required for the project,
    however).
    Thanks,
    Javini Javono
     
    Ranch Hand
    Posts: 50
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi, for almost all of my forms, I use a mix of GridBagLayouts frequently included in the NORTH, CENTER, or SOUTH slots of a BorderLayout.
    I personnaly think that the GridBagLayout is the most powerfull layout available. And also the most complicated. But all of my components are exactly where they are supposed to, and this layout also does an excellent job when you resize your window, if you provide the good constraints.
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    reply
      Bookmark Topic Watch Topic
    • New Topic