🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16184

Solaris and SplitPanel control

#16184
From: Tom Heagy
Date: Wed, 24 Mar 1999 00:00
65 lines
2681 bytes
I seem to be having an incompatability with the SplitPanel control
running under Solaris.  The following mini application shows a window
with 3 panels on a SplitPanel control.  It works as expected under NT
(I'm running JDK 1.1.6 and JBuilder 2.00).  Under Solaris I'm using JDK
1.1.7 and the SplitPanel doesn't drag the way it's supposed to.  In
fact, it doesn't drag at all (i.e. the 3 individual panels can't be
resized).  Is anyone aware of a problem with this control running under
Solaris?

-Tom

=============== CODE EXCERPT ============
import java.awt.*;
import java.awt.event.*;
import borland.jbcl.control.*;
import borland.jbcl.layout.*;

public class TestFrame extends DecoratedFrame {

 BorderLayout borderLayout1 = new BorderLayout();
  SplitPanel splitPanel1 = new SplitPanel();
  BevelPanel bevelPanel1 = new BevelPanel();
  BevelPanel bevelPanel2 = new BevelPanel();
  BevelPanel bevelPanel3 = new BevelPanel();
 public TestFrame() {
  enableEvents(AWTEvent.WINDOW_EVENT_MASK);
  addWindowListener(new WindowAdapter() {
     public void windowClosing(WindowEvent e) {
     dispose();
   }
  });
    try  {
      jbInit();
    }
    catch (Exception e) {
      e.printStackTrace();
    }
  }

  public static void main(String[] args) {
  TestFrame frame = new TestFrame();
    Dimension screenSize = new Dimension( 1024, 768 );
    Dimension frameSize = frame.getSize();
    if (frameSize.height > screenSize.height)
      frameSize.height = screenSize.height;
    if (frameSize.width > screenSize.width)
      frameSize.width = screenSize.width;
    frame.setLocation(79,45);
  frame.pack();
  frame.setVisible(true);
  frame.invalidate();
  frame.repaint();
    frameSize = frame.getSize();
  }

  private void jbInit() throws Exception {
    this.add(splitPanel1, BorderLayout.CENTER);
    splitPanel1.add(bevelPanel1, new PaneConstraints("bevelPanel1",
"bevelPanel1", PaneConstraints.ROOT, 1.0f));
    splitPanel1.add(bevelPanel2, new PaneConstraints("bevelPanel2",
null, null, 0.5f));
    splitPanel1.add(bevelPanel3, new PaneConstraints("bevelPanel3",
null, null, 0.5f));
  }
}
Technical Details
Message-ID: <36F8FB3A.CE20EA62@sciatl.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,b900084615a73eac,start
X-Google-Attributes: gidf74b3,public
From: Tom Heagy <tom.heagy@sciatl.com>
Subject: Solaris and SplitPanel control
Date: 1999/03/24
Message-ID: <36F8FB3A.CE20EA62@sciatl.com>
X-Deja-AN: 458391476
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language