Split Pane Problem

I have a panel with a split pane in it. On the Left hand side there is a Tree and on the right side is a complex tabbed pane.
(complex meand it includes many panels, more tabbed panes and other components).
My problem is this. I have given a specific width for the split pane for the tree and at start time it comes corrcetly. But when I move the Split pane left, suddenly it jumps to the left edge of the screen. And then I cant move it forward again. Tree cannot be seen now.
Why does this happen I just cant figure out.
Is it because of tabbed panes or something with the split pane.
Another thing is when I try to move the split pane to the left the movements are not smooth. It kind of do smaller jumps, until it do that big jump to the edge.
Any help would be greatly appreciated....

Seeing that your file has a size of 3.5 Mb, I preferred not to download it, but to send you this link.

Similar Messages

  • Split pane - problem with resize

    I have problem with splitPane. I can't resize panels using splitpane and i dont know why :(
    Here is my program: https://rapidshare.com/files/4139244909/inzynier.rar
    Any ideas, what i am doing wrong?
    Another problem is: When i try build this project i geting warinings :
    warning: No SupportedSourceVersion annotation found on org.jdesktop.beans.JavaBeanProcessor, returning RELEASE_6.
    warning: Supported source version 'RELEASE_6' from annotation processor 'org.jdesktop.beans.JavaBeanProcessor' less than -source '1.7'
    2 warnings
    ;/

    Seeing that your file has a size of 3.5 Mb, I preferred not to download it, but to send you this link.

  • Design problem(split pane scrollpane Insets)

    hi,
    doing a exam simulator prgm
    design is like,
    Question (text area with scrollpane)
    Answers (checkbox inside panel with scrollpane)
    used split pane between qst and ans but big thick bar comes how to reduce size and it is not
    moving.
    used GridLayout for container and panel.
    PROBLEM is how to leave space qst textarea appears from very left edge of screen how to leave some space
    same prblm for checkbox they to appear extreme left on screen.

    Put those components in a JPanel overwriting the getInsets() method like this:
    JPanel cPane=new JPanel(){
        private final Insets _insets=new Insets(10,10,10,10);
        public Insets getInsets(){
            return _insets;
    };...should do the trick, take a look at the Insets class if you need information on how defining it...

  • Split Panes, Frame and Resizing

    Hi,
    my user interface is made up of a message panel using the created class SplitPanes2 through the method createSplitPanes called from a class that extends Frame. (will post code if required: lengthy). When the frame is resized/maximized, the splitPanes remain at their preferred size. How can I work on it such that the SplitPanes will resize proportionally too? Please inform me if I have overlooked certain details.
    -cyndi
    public class AppLayout {
         Frame parent;
         public AppLayout() {
         public void createSplitPanes( Panel messagePanel, TextArea messageAreaOut, TextArea messageAreaIn, TextArea messageArea ) {
              Panel splitPane2 = new SplitPane2( messageAreaOut, messageAreaIn, messageArea );
              messagePanel.setLayout( new GridLayout(1, 1));
              messagePanel.add(splitPane2);
         public class SplitPane2 extends Panel {
              public SplitPane2( TextArea messageAreaIn, TextArea messageAreaOut, TextArea messageArea ) {
                   //Create an instance of splitPane
                   splitPane sPane2  = new splitPane( messageAreaOut, messageAreaIn );
                   JSplitPane left    = sPane2.getSplitPane();
                   //XXXX: Bug #4131528, borders on nested split panes accumulate.
                   //Workaround: Set the border on any split pane within
                   //another split pane to null. Components within nested split
                   //panes need to have their own border for this to work well.
                   left.setBorder( null );
                   //Create a split pane and put "left" (a split pane)
                   //and TextArea instance in it.
                   JSplitPane sPane   = new JSplitPane( JSplitPane.HORIZONTAL_SPLIT,
                        left, messageArea );
                   //splitPane.setOneTouchExpandable(true);
                   sPane.setDividerLocation( 150 );
                   sPane.setResizeWeight( 0.5 );
                   //Add the split pane to this frame
                   sPane.setPreferredSize( new Dimension( 400, 430 ) );
                   add( sPane );
              class splitPane {
                   JSplitPane sPane;
                   public splitPane( TextArea messageAreaOut, TextArea messageAreaIn ) {
                        //Read image names from a properties file
                        sPane = new JSplitPane( JSplitPane.VERTICAL_SPLIT,
                             messageAreaIn, messageAreaOut );
                        //splitPane.setOneTouchExpandable(true);
                        sPane.setDividerLocation( 0.5 );
                        sPane.setResizeWeight( 0.5 );
                        //Provide a preferred size for the split pane
                        sPane.setPreferredSize( new Dimension( 150, 350 ) );
                   public JSplitPane getSplitPane() {
                        return sPane;

    Hi, I'm not sure, but I think I had a similar problem. I tried to place a JSplitPane inside a JPanel and then I got the same behaviour as you describe. Unfortunately I didn't find out why that happened. I simply didn't use the JPanel and then it worked as I wanted it to. (Almost) :)

  • Why was the split pane removed from Acrobat?

    I recently upgraded from Acrobat 9 to Acrobat 11, and find that I'm not able to be as productive in 11. It's much harder to perform reviews because the Comment pane is difficult to work with. By default, the Comment pane is too narrow to be useful. If I undock it to try to put it underneath the document, I have to spend time fiddling with my windows to try to get the document the right size so that the undocked Comment pane can appear below it. The split pane was so much easier to work with; I hope that it will be added back in a future release. One other problem is that the scroll bar in the Comment pane is so narrow, it's difficult to click it.
    Can anyone suggest any workarounds to help deal with these new features?

    I tried the Touch Mode, which could probably help if I was viewing PDFs on a tablet, but unfortunately, it didn't do anything to increase the width of the Comment pane scroll bar, which is the UI element that I'm finding too narrow.
    I would have thought that Adobe's main customers would be using review and comment features heavily, so it's disappointing to see these types of UI changes made.
    As a workaround, I'm finding that I can at least split the page text, undock the Comment pane, and have it cover the bottom pane. That's a bit easier than trying to get it to fit under a resized main window. With most software that allows undocking, it usually lets you dock to a different spot, which would have worked fine here for those of us who would like to keep the comments at the bottom of the screen for better readability.

  • Adobe reader XI - Split Pane feature to be implemented?

    Hello,
    is it possible to implement the split pane function in adobe reader?
    We already use the window-> new window feature but it would be great to have the split function so that we can manage only 1 pdf instead of 2, and it is quite more efficient to do cross references.
    Thanks.

    Hello Pat,
    You are absolutely the BEST.
    I followed your two recommendations and now the program is working perfectly. Yes, my Reader XI was version 11.0.10 when I was having the problems.
    I never would have figured out the solution to the problem without your help.  I was very pleased with your follow through. 
    I really appreciate your help.  THANK YOU! – THANK YOU!
    Adobe is a great program – I have used it for years and this is the first time I have had any problem.  
    Kind regards,
    Hartley

  • Form pane X split pane

    I have an application with a JSplitPane in the center of the GUI.... in this split pane I have a left JTree and a right JPanel.
    on te JPanel on the right I have a form based on GridBagLyout, but it is very unstable... when I drag the split divider, sometimes te form becomes messy... with some fields over the other....
    some tip ?

    1 GridBagLayout is better than N-LayoutManagers ?Neither is better, which is why you have a choice. I prefer using whatever yields the easiest code to understand and maintain. For me this is usually a combination of the "basic" Layout Manager (ie. those Layout Managers without complex constraints)
    is that really necessary to adopt more than 1 LM ?I don't know, but you did ask the question because you are having problems using just a single Layout Manager.
    Either way there is no way we can offer specific advice because we have no idea what your form looks like.
    I suggest you read this before posting any further:
    http://www.physci.org/codes/sscce.jsp

  • Split pane only shows buttons, not the panes I placed there

    problem: my split pane only shows buttons, not the panes I placed there
    here's my complete code:
    thanks.
    * MLDpane.java
    * Created on July 23, 2003, 3:31 PM
    import javax.swing.*;
    import javax.swing.tree.*;
    * @author  Administrator
    public class MLDPane extends JSplitPane {
        private JScrollPane jScrollPane2 = new JScrollPane();
        private JTextPane ttView = new JTextPane();
        private JScrollPane jScrollPane3 = new JScrollPane();
        private JTree treeView = new JTree();
        private  void init() {
            setDividerSize(5);
            //setPreferredSize(new java.awt.Dimension(600, 302));
            //jScrollPane2.setMinimumSize(new java.awt.Dimension(100, 20));
            //jScrollPane2.setPreferredSize(new java.awt.Dimension(300, 300));
            //ttView.setPreferredSize(new java.awt.Dimension(300, 22));
            jScrollPane2.setViewportView(ttView);
            setLeftComponent(jScrollPane2);
            jScrollPane3.setHorizontalScrollBarPolicy(javax.swing.JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
            //jScrollPane3.setMinimumSize(new java.awt.Dimension(100, 20));
            //jScrollPane3.setPreferredSize(new java.awt.Dimension(300, 200));
            treeView.setModel(null);
            jScrollPane3.setViewportView(treeView);
            setRightComponent(jScrollPane3);
         public MLDPane() {
        /** Creates a new instance of MLDpane */
         public MLDPane(MedLEEDoc mld) {
            init();
            ttView.setDocument(mld.getTextDoc());
            treeView.setModel(new DefaultTreeModel(mld.getRoot()));
        public static void main(String args[]) {
            JFrame j = new JFrame();
            j.getContentPane().add(new MLDPane());
            j.show();
            //j.setVisible(true);
            //j.setExtendedState(j.MAXIMIZED_BOTH);

    Hi,
    I think you are invoking the default (no argument constructor) instead of the one argument constructor
    try this:
    j.getContentPane().add(new MLDPane(MedLEEDocObject));

  • I get the following message when i try to open ALL my documents : frozen panes and split panes are not supported and were removed. my documents are blank

    i get the following message when i try to open any of my documents : frozen panes and split panes are not supported and were removed. All my documents open blanc!

    Hi Louisa,
    louisa_16_za wrote:
    i work with Numbers on my MiniMac and then save the files as Excel because the university only works with Windows.
    Numbers is not an Excel clone. Importing and exporting between Numbers and Excel will eventually build up glitches.
    If the university only works with 'Windoze' it might be better if you use Excel or a free version of Office (for example, Libre Office or Open Office).
    If your marks depend upon a professor who uses Excel, go with the flow.
    http://www.howtogeek.com/187663/openoffice-vs.-libreoffice-whats-the-difference- and-which-should-you-use/
    Regards,
    Ian

  • Drag and drop icons from onside of the split pane to the other side.

    Hello All,
    I am tring to write a program where i can drag and drop icons from the left side of the split pane to the right side. I have to draw a network on the right side of the split pane from the icons provided on the left side. Putting the icons on the labels donot work as i would like to drag multiple icons from the left side and drop them on the right side. CAn anyone please help me with this.
    Thanks in advance
    smitha

    The other option besides the drag_n_drop support
    http://java.sun.com/docs/books/tutorial/uiswing/dnd/intro.htmlis to make up something on your own. You could use a glasspane (see JRootPane api for overview) as mentioned in the tutorial.
    Here's another variation using an OverlayLayout. One advantage of this approach is that you can localize the overlay component and avoid some work.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    import javax.swing.event.MouseInputAdapter;
    public class DragRx extends JComponent {
        JPanel rightComponent;
        BufferedImage image;
        Point loc = new Point();
        protected void paintComponent(Graphics g) {
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            if(image != null)
                g2.drawImage(image, loc.x, loc.y, this);
        public void setImage(BufferedImage image) {
            this.image = image;
            repaint();
        public void moveImage(int x, int y) {
            loc.setLocation(x, y);
            repaint();
        public void dropImage(Point p) {
            int w = image.getWidth();
            int h = image.getHeight();
            p = SwingUtilities.convertPoint(this, p, rightComponent);
            JLabel label = new JLabel(new ImageIcon(image));
            rightComponent.add(label);
            label.setBounds(p.x, p.y, w, h);
            setImage(null);
        private JPanel getContent(BufferedImage[] images) {
            JSplitPane splitPane = new JSplitPane();
            splitPane.setLeftComponent(getLeftComponent(images));
            splitPane.setRightComponent(getRightComponent());
            splitPane.setResizeWeight(0.5);
            splitPane.setDividerLocation(225);
            JPanel panel = new JPanel();
            OverlayLayout overlay = new OverlayLayout(panel);
            panel.setLayout(overlay);
            panel.add(this);
            panel.add(splitPane);
            return panel;
        private JPanel getLeftComponent(BufferedImage[] images) {
            JPanel panel = new JPanel(new GridBagLayout());
            GridBagConstraints gbc = new GridBagConstraints();
            gbc.weightx = 1.0;
            gbc.weighty = 1.0;
            for(int j = 0; j < images.length; j++) {
                gbc.gridwidth = (j%2 == 0) ? GridBagConstraints.RELATIVE
                                           : GridBagConstraints.REMAINDER;
                panel.add(new JLabel(new ImageIcon(images[j])), gbc);
            CopyDragHandler handler = new CopyDragHandler(panel, this);
            panel.addMouseListener(handler);
            panel.addMouseMotionListener(handler);
            return panel;
        private JPanel getRightComponent() {
            rightComponent = new JPanel(null);
            MouseInputAdapter mia = new MouseInputAdapter() {
                Component selectedComponent;
                Point offset = new Point();
                boolean dragging = false;
                public void mousePressed(MouseEvent e) {
                    Point p = e.getPoint();
                    for(Component c : rightComponent.getComponents()) {
                        Rectangle r = c.getBounds();
                        if(r.contains(p)) {
                            selectedComponent = c;
                            offset.x = p.x - r.x;
                            offset.y = p.y - r.y;
                            dragging = true;
                            break;
                public void mouseReleased(MouseEvent e) {
                    dragging = false;
                public void mouseDragged(MouseEvent e) {
                    if(dragging) {
                        int x = e.getX() - offset.x;
                        int y = e.getY() - offset.y;
                        selectedComponent.setLocation(x,y);
            rightComponent.addMouseListener(mia);
            rightComponent.addMouseMotionListener(mia);
            return rightComponent;
        public static void main(String[] args) throws IOException {
            String[] ids = { "-c---", "--g--", "---h-", "----t" };
            BufferedImage[] images = new BufferedImage[ids.length];
            for(int j = 0; j < images.length; j++) {
                String path = "images/geek/geek" + ids[j] + ".gif";
                images[j] = ImageIO.read(new File(path));
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.add(new DragRx().getContent(images));
            f.setSize(500,400);
            f.setLocation(200,200);
            f.setVisible(true);
    class CopyDragHandler extends MouseInputAdapter {
        JComponent source;
        DragRx target;
        JLabel selectedLabel;
        Point start;
        Point offset = new Point();
        boolean dragging = false;
        final int MIN_DIST = 5;
        public CopyDragHandler(JComponent c, DragRx dr) {
            source = c;
            target = dr;
        public void mousePressed(MouseEvent e) {
            Point p = e.getPoint();
            Component[] c = source.getComponents();
            for(int j = 0; j < c.length; j++) {
                Rectangle r = c[j].getBounds();
                if(r.contains(p) && c[j] instanceof JLabel) {
                    offset.x = p.x - r.x;
                    offset.y = p.y - r.y;
                    start = p;
                    selectedLabel = (JLabel)c[j];
                    break;
        public void mouseReleased(MouseEvent e) {
            if(dragging && selectedLabel != null) {
                int x = e.getX() - offset.x;
                int y = e.getY() - offset.y;
                target.dropImage(new Point(x,y));
            selectedLabel = null;
            dragging = false;
        public void mouseDragged(MouseEvent e) {
            Point p = e.getPoint();
            if(!dragging && selectedLabel != null
                         && p.distance(start) > MIN_DIST) {
                dragging = true;
                copyAndSend();
            if(dragging) {
                int x = p.x - offset.x;
                int y = p.y - offset.y;
                target.moveImage(x, y);
        private void copyAndSend() {
            ImageIcon icon = (ImageIcon)selectedLabel.getIcon();
            BufferedImage image = copy((BufferedImage)icon.getImage());
            target.setImage(image);
        private BufferedImage copy(BufferedImage src) {
            int w = src.getWidth();
            int h = src.getHeight();
            BufferedImage dst =
                source.getGraphicsConfiguration().createCompatibleImage(w,h);
            Graphics2D g2 = dst.createGraphics();
            g2.drawImage(src,0,0,source);
            g2.dispose();
            return dst;
    }geek images from
    http://java.sun.com/docs/books/tutorial/uiswing/examples/components/index.html

  • Sun Fire V490 x 2 servers with Oracle RAC facing Split brain problem

    Hi all,
    I have Sun Fire V490 x 2 servers with Oracle RAC and they faced a Split brain problem. One of the node's database instance has gone down, The DBA claims it is due to network problem, but as such the networks are OK. We use the on board CE1 interface for Cluster interconnect and CE0 as the public interface.
    Did anybody face this kind of a problem? Could this be a hardware/OS patch problem?
    I had kept a continuous ping for 24 hours after this happened last time and the output shows no packet loss
    Many thanks in advance.
    Ushas Symon

    In order to diagnose this properly, you'll need to provide too much detail and far too many log files for a generic discussion forum to handle.
    Use your service contract and open a support case.
    Because a cluster environment is involved you'll likely end up talking to the cluster support staff.
    They can analyze hardware and software errors as well as review whether you configured the systems in a supportable fashion.
    Be prepared to make a direct connection to each system and gather data using such as by using the Explorer tool. The technical support staff will tell you what they will actually need.

  • Split Brain Problem

    Dear All,
    RAC Database Version is 10.2.0.3, and Operating System is SPARC5.10.
    The Database use Veritas Sun Cluster.
    Voting Disk Size = 10MB
    Yesterday, it experienced Split Brain Problem. Each Node Assumes it is the only surviving member of the cluster.
    At first, Node 1 became hung and the network link was broken, then our system admin decided to restart the server.
    After that, Node 2 Work Load increased significantly, and there was nothing we can do in database.
    Fortunately, Veritas Team could handle it, by cleaning the process that was hung.
    In my opinion, interconnect communication between node1 and node2 was broken, then each node assumes that it is the only member of the cluster.
    To prevent Database Corruption, Veritas Cluster blocked every changes to database.
    So, Would you tell me what is actually happened,
    was It Related to Heartbeat to Controlfile, considering there was ORA-600 [2103] ?
    Best Regards,
    abip

    Take a look at Bug 5526987
    This issue is fixed in     
    10.2.0.4 (Server Patch Set)
    11.1.0.6 (Base Release)
    Symptoms:
    Related To:
    Internal Error May Occur (ORA-600)
    Hang (Involving Shared Resource)
    ORA-600 [2103]
    Automatic Storage Management (ASM)
    Description
    This problem is introduced in 10.2.0.2 by the fix for bug 4671216.
    A file creation rollback in ASM can lead to an ASM
    instance hang when the rolling back session tries to get
    the FA enqueue in X mode but it is already held. This can
    lead to an ORA-600 [2103] on the database instance.
    This issue is marked as a notable fix and it is recommended
    to install a patch for this issue where ASM is used.
    Further details on this issue can be found in Note 468572.1

  • Can you hide the divider of a split pane ?

    I have a split pane, the application also has menu options that allow the user to turn off one of the panes if they like, this results in the pane disappearing but the splitpane divider still exists.
    Can this be removed, and if not is it acceptable look for the divider to exist when only one side of the splitpane is visible, or do I have to remove the splitpane from its parent and just add the visible component of the splitpane to the parent directly when only one is selected, reversing the code when user wishes to have both visible.

    Thanks that works fine. Although it is a shame there is no splitpane.getDivider() method, I assume there is no explicit guarantee that the LAF being used actually subclasses BasicSplitPaneUI, so I need to make appropriate checks.

  • Textpane does not fill up right comp of split pane

    I am a novice when it comes to swing. So please pardon me if the question I am sking is a bit silly.
    I have a split pane , with a resizable divider. the rightcomponent houses an internal frame used by for a JEditor Pane.
    How do I set the size for any new JEdiorpane , so it takes or fill up the right hand side of the split pane. Bearing in mind that the divider might have been moved so the right component area is not at the preffered size.
    Should I be using a listener to take note of the current size of the split pane component?
    Any advise wil be appreciated.

    Sounds like it might be a sync issue. Have you tried powering the monitor off and then back on with the MBP connected to it? How about just temporarily disconnecting the DVI cable from the desktop PC and using that to plug into the MBP.

  • I can't type in the design portion of split pane view.

    When I try to type in the design portion of split pane, the design pane becomes white and won't except any input.  Basically it is forcing me to do everything in the code portion of the pane.

    It is dreamweaver CC for Mac OS X.  Yes, I have done that.  Here's a picture to illustrate what is happening:
    BEFORE:
    I place my cursor after the last bullet point, "Status" in the design pane.  When I hit Enter on my keyboard to create another bullet point (at least this is how it worked in previous dreamweaver versions) this is what I see:

Maybe you are looking for

  • PC to Mac Itunes library transfer?

    I am a mac newbie, we just got the newest Imac and I have no idea how to get my itunes library from my pc to this mac. Any help would be greatly appreciated.

  • How to see the overflow apps in ipad ?

    I have downloaded more applications than the 10 or 11 pages which displays the apps on the iPad.  How do I get to these overflow apps so I can arrange them into folders ?

  • Quick MD5 values from right-click menu?

    Is there a way to easily generate MD5 values for files in OS X? Ideally I would like to see MD5 values in the "Info" for a file or in the right-click menu. MBP C2D & Mac Mini 1.25ghz   Mac OS X (10.4.8)  

  • Error while opening web template through WAD 3.X

    Hi all, The below error is getting displayed while opening web template through WAD (Sap BW 3.X): " Internal error - No Template property standard item. " What needs to be done now. Please reply.

  • Flashing grean and orange light

    i charged my new ipod shuffle over night and when i went to get it this morning i pressed play and it flashed green then orange then green then orange and it did that about 4 tiems before it stopped .. with no music playing or anything ... what shoul