Results 1 to 3 of 3
  1. #1
    rdtindsm is offline Member
    Join Date
    Feb 2009
    Posts
    92
    Rep Power
    0

    Default Need Suggestions on layout management

    I am learning Java on my own. I working on swing, and am developing an RPN calculator as an exercise. I coded a working version using netbeans, and am hand coding the GUI in eclipse.

    I used the gridbag layout manager in the hand coded version. Both versions look like they were built laid out with crayons. To wit, the buttons are overly large, and if I try to set the size, the labeling text just turn to elipses. This happens for the same minimum size whether I am use a large or small font.

    I also don't have quite the control over the layout that I would like, but my current problem is that the GUI looks like it is using buttons designed for a child's playset.

    Should I be using a different layout manager. Will I have to hand code the component layout placements and sizes? My immediate concern is reducing the size of the layout, and I am looking for a little direction to short circuit my research.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Can you post a snipped picture of your current app, possibly both versions?

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    By the way, I know several coders, myself included, who try to avoid the GridBagLayout at almost all costs. Usually you can get more control of the layout and easier by nesting other simpler Layout Managers.

Similar Threads

  1. Desktop Application - Suggestions
    By jedai in forum AWT / Swing
    Replies: 0
    Last Post: 04-26-2009, 04:43 AM
  2. Please post your suggestions about this code
    By mathansj in forum Advanced Java
    Replies: 8
    Last Post: 02-15-2009, 03:41 PM
  3. any suggestions?
    By PureAwesomeness in forum New To Java
    Replies: 4
    Last Post: 01-19-2009, 07:34 AM
  4. Suggestions for my Java-project?
    By shabbee in forum New To Java
    Replies: 1
    Last Post: 01-01-2009, 10:11 PM
  5. Suggestions of crufty or otherwise bad APIs
    By Andre in forum Forum Lobby
    Replies: 8
    Last Post: 11-17-2008, 11:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •