[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug swing/34428] New: JSplitPane - wrong splitpane bar position

From: thebohemian at gmx dot net
Subject: [Bug swing/34428] New: JSplitPane - wrong splitpane bar position
Date: 11 Dec 2007 09:16:55 -0000

In Processing (http://processing.org) a JSplitPane is used to split the code
editor (top) and an output window (bottom) from each other.

Everything is ok when the first application window opens: The splitpane bar
roughly centers between the editor and the output window.

However when you open the second window (e.g. through File/New) the bar of the
splitpane in the second window is moved completely to the top making the editor

On the JDK the bar is always placed like in the first window.

I will add some screenshots to make the problem more understandable.

The JSplitPane is always initialized with this code:
splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
                               upper, consolePanel);

    // repaint child panes while resizing
    // if window increases in size, give all of increase to
    // the textarea in the uppper pane

    // to fix ugliness.. normally macosx java 1.3 puts an
    // ugly white border around this object, so turn it off.

    // the default size on windows is too small and kinda ugly
    int dividerSize = Preferences.getInteger("editor.divider.size");
    if (dividerSize != 0) {

    splitPane.setMinimumSize(new Dimension(600, 600));

(from processing-trunk/app/src/processing/app/Editor.java)
Processing can be obtained via SVN through the URL:

I had to disable some code that unconditionally sets a non-existing LnF on GNU
Classpath first:
Index: Base.java
--- Base.java   (Revision 3746)
+++ Base.java   (Arbeitskopie)
@@ -111,7 +111,7 @@
         // This is available in Java 1.4.2 and later, and it can't possibly
         // be any worse than Metal. (Ocean might also work, but that's for
         // Java 1.5, and we aren't going there yet)

       } else {

           Summary: JSplitPane - wrong splitpane bar position
           Product: classpath
           Version: 0.96.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: swing
        AssignedTo: roman at kennke dot org
        ReportedBy: thebohemian at gmx dot net


reply via email to

[Prev in Thread] Current Thread [Next in Thread]