facebook

Size of JTable in Form

  1. MyEclipse Archived
  2.  > 
  3. Matisse/Swing UI Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #313925 Reply

    I have a new form with a JTable in it. (wrapped in a JScrollPane of course)
    The table has a simple data model with a fixed number of rows and columns.
    All of this is placed in a GridBagLayout. (No Fill)

    The problem is that when it’s displayed, the Scroll Pane is twice as tall as the Table, so there is this big blank area under the table. looks really stupid, and wastes a LOT of screen space.
    Any suggestions on what settings I need to check to get rid of this?

    #314074 Reply

    support-joy
    Member

    CasaDelGato,

    Can you answer below queries –
    1. Can you copy and paste your installation details? Open MyEclipse IDE, from menu options click on MyEclipse > Installation Summary > Installation Details
    2. How did you install ME? Meaning all-in-one installer / pulse / archived update site on top of eclipse classic
    3. I have tried this in ME 8.6 and ME 9.0 M2, the scroll pane looks fine. Can you please elaborate the steps you have taken which results in the above issue.
    4. Can you also include screenshot which will help get me a visual

    #314089 Reply

    1)
    *** Date:
    Monday, January 31, 2011 11:24:56 AM PST

    ** System properties:
    OS=WindowsVista
    OS version=6.1.0
    Java version=1.6.0_13

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 8.6.1
    Build id: 8.6.1-20101117

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 8.6.1
    Build id: 8.6.1-20101117

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Users\Cougar\AppData\Local\Genuitec\MyEclipse-8.6\myeclipse.exe
    -name
    Myeclipse
    –launcher.library
    C:\Users\Cougar\AppData\Local\Genuitec\MyEclipse-8.6\../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
    -startup
    C:\Users\Cougar\AppData\Local\Genuitec\MyEclipse-8.6\../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
    -install
    C:/Users/Cougar/AppData/Local/Genuitec/MyEclipse-8.6
    -configuration
    configuration
    -vm
    C:/Users/Cougar/AppData/Local/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll

    2) Downloaded the huge all-in-one installer. The ala-carte installer would hang every time I tried it.

    3) Added a table with a bunch of pre-defined values to the form. I’ll attache the form (and java) along with some screen shots.
    It’s pretty odd in that I can adjust the form size in the editor to fit everything ok, but when I preview it, or run the app, the form gets MUCH taller and narrower.

    hmm, no way to attach files. So I put them on my website:

    http://www.casadelgato.com/work/FormPreview.jpg
    http://www.casadelgato.com/work/FormInEditor.jpg
    http://www.casadelgato.com/work/TableProblem.zip

    #314146 Reply

    support-joy
    Member

    CasaDelGato,

    Thank you for the details. I do see that this is an issue. I have raised a PR with the dev team. Sorry for the inconvenience.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Size of JTable in Form

You must be logged in to post in the forum log in