Results 1 to 1 of 1
  1. #1
    dalo is offline Member
    Join Date
    Jun 2010
    Posts
    3
    Rep Power
    0

    Default java on mac - gui layout problem

    I am working on an application that uses a GUI and works well on linux and windows, but there is a problem on mac. The layout of the GUI is not as desired. The main JFrame uses a BorderLayout, and there is a JPanel in the CENTER region, a toolbar in the NORTH region, and a JTabbedPane in the EAST region. The JTabbedPane containes a grid of JButtons (that are layout using a GridLayout). The problem is that the east-pane is too wide on mac. It means that the buttons in the grid within the east-pane are too wide. There is not such a problem on windows and linux. That's why I am not sure what to do to fix the problem.

    I tried to put less buttons in one row of the grid (within the east-pane), but the pane is still of the same width and the buttons are even wider. That's why I think that the problem is related to the BorderLayout on mac (although I am not sure).

    Does anyone have any idea how the problem can be solved ?

    Thanks !
    Last edited by dalo; 06-22-2010 at 09:13 AM.

Similar Threads

  1. I have a problem in setting layout for panel.
    By Vin in forum AWT / Swing
    Replies: 5
    Last Post: 01-19-2010, 10:22 AM
  2. Layout problem / add components from another class
    By ehochedez in forum AWT / Swing
    Replies: 9
    Last Post: 09-02-2009, 10:42 AM
  3. [SOLVED] Layout Problem
    By casid in forum New To Java
    Replies: 4
    Last Post: 06-02-2009, 11:17 PM
  4. Java GUI layout
    By nick2price in forum New To Java
    Replies: 2
    Last Post: 05-27-2008, 09:42 PM
  5. Use the Layout in java
    By lenny in forum AWT / Swing
    Replies: 2
    Last Post: 07-26-2007, 07:20 PM

Tags for this Thread

Posting Permissions

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