Resize cursor inconsistancy in JTableHeader

Hi all,
I have one table, it has 10 columns those are resizable and not reorderable. problem is when i move the mouse pointer between header area and the lines between the columns, the cursor is not
changing to resizable cursor. but for some tables this resizable cursor is appearing.
Can any body help me to solve this problem...
Thanks in advance...
Vijay...

Hi Vijay,
Iam also facing the same problem.It seams it is the problem with JTable (JDK1.4), It is the problem in
Class:BasicTableHeaderUI
mehtod :mouseMoved().
Regards
shevron
Message was edited by: Shevron
shevron
Message was edited by:
shevron

Similar Messages

  • JTable have no resize cursor under a JLayeredPane

    Hi,
    i have over my JScrollPane a JLayeredPane to show infotext.
    When the JLayeredPane is over the JScrollpane you can resize the column but the JTable show no resize Cursor.
    Does anybody know why?
    import java.awt.Component;
    import java.awt.Dimension;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JLayeredPane;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.WindowConstants;
    import javax.swing.table.DefaultTableModel;
    public class NoResizeCursorDemo extends JFrame
      public NoResizeCursorDemo()
        JTable table = new JTable( new DefaultTableModel( new String[]{ "aaa", "bbb" }, 10 ) );
        JScrollPane scrollPane = new JScrollPane( table );
        InfoLayer layer = new InfoLayer( scrollPane );
        add( layer );
      public static void main( String[] args )
        NoResizeCursorDemo frame = new NoResizeCursorDemo();
        frame.setDefaultCloseOperation( WindowConstants.EXIT_ON_CLOSE );
        frame.pack();
        frame.setVisible( true );
      class InfoLayer extends JLayeredPane
        private final JComponent wrappedComponent;
        public InfoLayer( JComponent wrappedComponent )
          this.wrappedComponent = wrappedComponent;
          setLayout( null );
          add( wrappedComponent, JLayeredPane.DEFAULT_LAYER );
          setInfoText();
        private void setInfoText()
          add( new JLabel( "Info......" ), JLayeredPane.POPUP_LAYER );
          revalidate();
        @Override
        public Dimension getPreferredSize()
          return wrappedComponent.getPreferredSize();
        @Override
        public void doLayout()
          Dimension size = getSize();
          Component layers[] = getComponents();
          for ( Component layer : layers )
            layer.setBounds( 0, 0, size.width, size.height );
    }Thanks

    Hi,
    I had almost the same problem with JTable and JSplitPane, the components worked fine, but cursor did not change when require.
    I already had in place mouse events dispatching in my top layer. It passed all events to the components underneath (see example in [Glass Pane Demo Project|http://java.sun.com/docs/books/tutorial/uiswing/examples/components/GlassPaneDemoProject/src/components/GlassPaneDemo.java]; in my case the listener was the content panel of the top layer).
    And now here is the trick around the cursor. Within the custom dispatch method I've called the following:
    this.setCursor(comp.getCursor());
    where "this" is the content panel of the layer and comp is the component where mouse event passed to.
    Hope that helps!
    Regards,
    Sergey

  • Double arrow resize cursor of application frame extends over menu bar

    Using Photoshop cs5 in application frame mode, when the cursor reaches any edge of the application frame it automatically turns into a double-arrow which when clicked and dragged will resize the application frame. (that is normal behavior). However, when the application frame is at the top of the screen against the menu bar, and then the cursor passes over the top edge of the application frame and onto the menu bar, that double arrow resizing cursor doesn't change back to the normal arrow cursor. Just very annoying to always see that double arrow when I'm trying to click any menu item on the menu bar.
    I wonder if it's a photoshop issue or a mac issue, or if anyone else has noticed the same thing,
    Working on a MacBook Pro 17" i7, 8gb ram in Photoshop CS5
    Just tried doing the same thing in illustrator and it does not have that problem, everything works like it should - I move the cursor to the top and I don't even get that resize cursor at all (which is the way it should be since the top of the frame is against the menu bar there's no room to extend it upwards) so leads me to think it's a Photoshop issue.
    Any feedback is appreciated.

    I can confirm that this happens on my machine as well.
    Current work around is to click an empty spot on OS X menu bar to reset cursor to normal before selecting a menu item. I have seen this behaviour since initial release of PS CS5 (all updates installed and behaviour still exists).
    Illustrator CS5 does not display this behaviour on my machine either, so it would appear to be confined to Photoshop (I am assuming the mouse-over parameters for resize may be to blame, or lack of recognition of menu bar proximity).
    Machine specs:
    Mac Pro (early 2008) - 2.8 Ghz. Quad-Core
    OS X (10.6.4) - fully updated
    8 GB RAM (1 GB / slot)
    nVidia 8800 GT video adapter
    ACD 23" display
    Logitech LX8 mouse (no software installed for mouse, generic OS X driver)
    Note - Wacom Intous3 drivers installed (haven't tested behaviour with tablet pen yet, but tablet only plugged in and used for specific painting, not during displayed behaviour).
    Default install for PS CS5 and AI CS5.
    Issue displayed with or without any third-party plug-ins installed.
    A fix would be good.

  • Wait cursor shows up as a resize cursor in certain situations

    Strange behavior and my question are below in the comments. I intend to test this program on JRE 1.6 when I get a chance.
    package project2;
    import java.awt.Cursor;
    import java.awt.Dimension;
    import java.awt.Rectangle;
    import java.awt.event.ActionEvent;
    import javax.swing.AbstractAction;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    // It looks like I found a bug in JRE 1.5
    // The program below shows a main frame in the top left of the screen
    // Press the Dialog button to bring up a dialog box.
    // Upon closing the dialog box,
    // the program will install a wait cursor on the main frame,
    // wait 5 seconds, print some text to standard output,
    // and finally restore the cursor.
    // Run the program.  Call up the dialog box.
    // Move the dialog box to outside the main frame --
    // that is, no parts of the dialog box and main frame should overlap.
    // Close the dialog box.  Right away move the cursor over the main frame.
    // Notice that the cursor is not an hourglass,
    // but rather a resize cursor.
    // Now shutdown the program and run it again.  Call up the dialog box.
    // Move the dialog box to inside the main frame.
    // Upon pressing OK or Cancel, we do see the wait cursor for 5 seconds.
    // If we call up the dialog box again and move outside the main frame,
    // then upon closing the dialog box the hourglass appears.
    // However, if we shutdown and restart then the resize cursor appears.
    // Why do we only see the hourglass when the dialog box is
    // inside the main frame?
    public class MyFrameDisposeDialogFirst extends JFrame
       private JButton jButton1 = new JButton();
       public MyFrameDisposeDialogFirst()
          try
             jbInit();
          catch (Exception e)
             e.printStackTrace();
       private void jbInit() throws Exception
          this.getContentPane().setLayout(null);
          this.setSize(new Dimension(400, 300));
          jButton1.setBounds(new Rectangle(80, 60, 73, 22));
          this.getContentPane().add(jButton1, null);
          jButton1.setAction(new AbstractAction("Dialog") {
             public void actionPerformed(ActionEvent event)
                try
                   String[] choices = new String[] { "One", "Two", "Three", "Four" };
                   Object result = JOptionPane.showInputDialog(MyFrameDisposeDialogFirst.this, "Username", "Title", JOptionPane.QUESTION_MESSAGE, null, choices, choices[1]);
                   MyFrameDisposeDialogFirst.this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                   try
                      Thread.sleep(5000);
                   catch (InterruptedException e)
                   System.out.println(result);
                finally
                   MyFrameDisposeDialogFirst.this.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
       public static void main(String[] args)
          JFrame frame = new MyFrameDisposeDialogFirst();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setVisible(true);
    }

    It's the old story of not respecting the EDT and [Concurrency in Swing|http://java.sun.com/docs/books/tutorial/uiswing/concurrency/index.html]. Try this (could be better but I tried to keep the changes to a minimum):import java.awt.Cursor;
    import java.awt.Dimension;
    import java.awt.Rectangle;
    import java.awt.event.ActionEvent;
    import javax.swing.AbstractAction;
    import javax.swing.Action;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    import javax.swing.SwingUtilities;
    import javax.swing.Timer;
    public class MyFrameDisposeDialogFirst extends JFrame
       private JButton jButton1 = new JButton();
       private Action action = new AbstractAction() {
          public void actionPerformed(ActionEvent e) {
             MyFrameDisposeDialogFirst.this.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
       private Timer timer = new Timer(5000, action);
       public MyFrameDisposeDialogFirst()
          jbInit();
       private void jbInit()
          this.getContentPane().setLayout(null);
          this.setSize(new Dimension(400, 300));
          jButton1.setBounds(new Rectangle(80, 60, 73, 22));
          this.getContentPane().add(jButton1, null);
          timer.setRepeats(false);
          jButton1.setAction(new AbstractAction("Dialog") {
             public void actionPerformed(ActionEvent event)
                String[] choices = new String[] { "One", "Two", "Three", "Four" };
                Object result = JOptionPane.showInputDialog(MyFrameDisposeDialogFirst.this, "Username",
                      "Title",JOptionPane.QUESTION_MESSAGE, null, choices, choices[1]);
                SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                      MyFrameDisposeDialogFirst.this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                      timer.start();
                System.out.println(result);
       public static void main(String[] args)
          final JFrame frame = new MyFrameDisposeDialogFirst();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          SwingUtilities.invokeLater(new Runnable() {
             public void run() {
                frame.setVisible(true);
    }db

  • Show resize cursor when mouse hovers edge of window?

    When I'm not using the standard window chrome, is there an easy way to show the resize cursor when the mouse hovers a window edge?

    thanks, that's the component I was looking for (assuming I can now change the fonts, colour etc)
    I have done the following and it kind of works: it should highlight the text and show the tooltip. However, it kind of gets stuck every now and then...two things: it takes some time before the tooltip appears (1 sec): is there a way to make it immediate, simultanous to the highligh? also, I have a few Jtextfield, as you may remember..as I hover the mouse over each of them, it all works fine, but when I go back to a jtextfield previously hovered over and highlighted, nothing happens, until I randomly click around and then works again. Any ideas? thanks a lot
    myJTextField.addMouseListener(new MouseAdapter(){
                     public void mouseEntered(MouseEvent e) {
                        ((JTextField) e.getSource ()).requestFocus();
                        ((JTextField) e.getSource ()).selectAll(); // highlight the text
                        ((JTextField) e.getSource ()).setToolTipText("text");
                       

  • JTable in JLayeredPane - resize table header cursor

    Hey everybody, I have searched all over this forum and the net for an answer to this problem. I have a class that adds a JComponent to a JLayeredPane in the default layer. In another layer above the default layer is a JComponent that exists only to provide a 'pretty' image border with round corners that overlap the component below it. It works and looks very good. The only problem I have found is that if the JComponent that is added (in the default layer) is a JTable the cursor no longer changes to the resize cursor (<->) when mousing over the table header column edges. I can still resize the columns but I need to have the cursor change to indicate that the colums can be resized for user friendliness. I assume that the mouse events are getting trapped by the upper layer in the JLayeredPane and aren't reaching the JTable in the lower layer as they need to.
    I have tried swapping the two layers but when I do that the corners of the component that I want to add the border to overlap over the nice round corners of the border which defeats the purpose.
    If anyone has any suggestions, or even better a solution, that would be great!
    Thanks,
    Erik

    table.getTableHeader().setVisible(false); will
    help.This is necessary, but probably not quite sufficient for picky users. You may also want to set the min, max, and preferred dimensions of the table header to 0,0, otherwise you get what looks like a top-only border.
    Michael Bushe

  • Cursor does not change back to default after resize

    Hi all,
    I have a modal decorated JDialog, in normal situation, i put the cursor on the border, the curosr will change to resize cursor, so i drag it and the dialog is resized, after resized, the cursor should change back to default cursor when i enter the dialog again, but i found that somotimes after several resizes, the cursor fail to change back to default and remain as the resize cursor.

    Hi
    I think there is nothing so strange to cause the problem so I did not put it before, but if someone can help me I will be thankful.
    public class TestFrame extends JPanel
         private static TestFrame testFrame;
         private JFrame frame;
         public static void main(String args[])
              JDialog.setDefaultLookAndFeelDecorated(true);
              testFrame = new TestFrame();
              testFrame.mainImplementation();
         private void mainImplementation()
              JButton jButton = new JButton("Show dialog");
              jButton.addActionListener(new ButtonActionListener());
              add(jButton);
              frame = new JFrame();
              frame.setContentPane(this);
              frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
              WindowListener l = new WindowAdapter()
                   public void windowClosing(WindowEvent e)
                        System.exit(0);
              frame.addWindowListener(l);
              frame.setBounds(0, 0, 500, 500);
              frame.setTitle("Test");
              frame.show();
         class ButtonActionListener implements ActionListener
              public void actionPerformed(ActionEvent e)
                   MyDialog jDialog = new MyDialog(frame);
                   jDialog.setVisible(true);
         class MyDialog extends JDialog
              public MyDialog(Frame owner)
                   super(owner);
                   setModal(true);
                   getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
                   JLabel label1 = new JLabel("Label1");
                   JTextField textField1 = new JTextField();
                   textField1.setEnabled(false);
                   textField1.setMinimumSize(new Dimension(100, 25));
                   textField1.setPreferredSize(new Dimension(200, 25));
                   JLabel label2 = new JLabel("Label2");
                   JTextField textField2 = new JTextField();
                   textField2.setEnabled(false);
                   textField2.setMinimumSize(new Dimension(100, 25));
                   textField1.setPreferredSize(new Dimension(200, 25));
                   JLabel label3 = new JLabel("Label3");
                   JTextField textField3 = new JTextField();
                   textField3.setEnabled(false);
                   textField3.setMinimumSize(new Dimension(100, 25));
                   textField1.setPreferredSize(new Dimension(200, 25));
                   JPanel panel = new JPanel(new GridLayout(3, 2));
                   panel.add(label1);
                   panel.add(textField1);
                   panel.add(label2);
                   panel.add(textField2);
                   panel.add(label3);
                   panel.add(textField3);
                   getContentPane().add(panel);
                   pack();
    }

  • Bottom right corner resize controls trump vertical scroll button if set to appear in the bottom corner

    My bottom right corner square of the Firefox window normally sits below the bottom of the vertical scroll bar and right of the horizontal scroll bar if one exists. The square is used to click and drag to resize the window's right and bottom boundaries.
    At issue is when a web site places its vertical scroll down-arrow button in the bottom right corner. I cannot access the down-arrow button with my mouse to cause the page to scroll down a few lines at a time because when I point the mouse there, I get the resize controls instead. Even though the down-arrow button is plainly visible on the screen, the resize controls take charge and I cannot use the scroll control.
    Two example web sites display their down-arrow control at the very bottom of the window; TIME.com and GMAIL.com. I have also viewed two PDF documents in the browser, and they too, have a vertical scroll bar all the way to the bottom, and I cannot use that down-arrow button because instead I get the northwest-southeast click-to-resize cursor instead of the mouse pointer when I attempt to use that button for scrolling.
    Someone on the Google Help forum was not able to replicate that issue, showing me screenshots of his lower right corner mouse behavior. He does not have the resize control covering access to the scroll bar.
    I am using the latest Firefox, I have reset Firefox, thus dumping all of my add-ons and custom settings, and have only put back AdBlock Plus and Cookie Monster. And Troubleshooter, when I asked a similar question.
    I am running Windows XP, on its last days of support. This computer is not capable of running anything newer, unless I run with Linux.
    Going to TIME.com, its vertical scroll is in the bottom corner and I get the resize control arrows instead of the mouse pointer when I point to the down-button. If I disable page styles in the View menu, I get a useful output that sets the end of the vertical scroll above the bottom corner. So somebody's idea of styling the page (CSS) creates this issue for me.
    Going to Gmail, turning off the styles gives me a useless output of nonsense, so I must use page styling enabled.
    Can someone please give me some guidance? This forum page has vertical and horizontal scroll above and left of the bottom corner square. I have access to all the parts of both scroll bars, as is the case on most well-designed pages.
    My window-resize controls are in charge always of the bottom corner square even if the vertical scroll is supposed to be there.
    See also my first wording of this question: https://support.mozilla.org/en-US/questions/993519

    Those layout.css prefs are about enabling some CSS feature, in this case vertical writing, so have nothing to do with scroll bars.
    *Bug 772321 - implement CSS parsing of writing-mode property
    *resource://gre/greprefs.js
    <pre><nowiki>// Is support for CSS vertical text enabled?
    pref("layout.css.vertical-text.enabled", false); </nowiki></pre>
    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Use a compressed image type like PNG or JPG to save the screenshot.

  • Mouse Pointer shows "Edit Cursor" "|" where it should be a arrow (pointer)

    I have noticed that at times the mouse pointer shows a Edit cursor when it should be
    a standard mouse arrow.
    This happens when a leave one application and navigate to another application.
    I am able to use the "|" cursor to click, but it seems rather odd.
    I would really like to know if someone else has noticed this?

    Are you using Fast User Switching (FUS)? Are you running an application that keeps a window always on top?
    I have encountered a reproducible problem which causes the mouse pointer to fail to revert to the default arrow. I do not know if it is a general OS X issue, or caused by this specific app only (I just reported the problem to the app vendor, will report back on the resolution).
    In my case, if user "A" is running a program that has an "always on top" window, and that application has the "focus", and I then use FUS to switch to any other user, the mouse pointer for that user will "stick" in its most recent variation - be it a pointing finger (for a link), an edit cursor, a window resize cursor, etc. If you move from a link for example to a text box, the cursor will change to the new form, but it will not revert to the default arrow. To "solve" the problem, do this:
    before using FUS to change to another user, click on another application (e.g. the Finder), so that the problem application does not have the "focus". Does any of this relate to your problem?

  • Can not get text selection cursor to change to column selection cursor

    Hi, Thank You for any time and help .
    I'm new to InDesign, and I'm hoping to use the new feature of moving columns / rows.
    But, I can not get the text cursor to change into the column or row selection cursor. 
    I am able to get the resize cursor, or use the ctrl+3 shortcut to select the entire column,
    but I can not get the downward pointing arrow cursor to select the column, and/or move it.
    Sometimes the row selection cursor will appear, and some rows can be moved, but I have been unable to move the columns.
    Thanks again, all my best

    Thank You Sumit !
    That does appear to work, but not in all cases?
    Example: 9/12/2014 10:44:14 AM - YouTube  <--quick vid capture of issue.
    I am able to select and move columns and rows, but columns appear to need a 'clean' column to work / move?
    Thanks again, I sincerely appreciate it!

  • Ability to resize windows limited

    In Preview, Google Chrome, and as far as I know every program, I can only rezie the windows to a certain point. They can go full screen, but when shrinking them I'm limited at a certain point from going any smaller. I am assuming this is a feature somehow, because once I can not go any farther, the double arrow resizing cursor, that appears when you hover over the border of a window, turns into only one arrow, pointing in the only direction I can now move the border. How do I go about fixing this? I've tried every view tool and setting menu I can find. Any help would be greatly appreciated.

    It appears that others have tried to overcome (or "undercome"?) the minimum size of windows as well, and failed - even with hacks and AppleScript.
    And from some comments out there one can tell that a certain minimum size seems to make good sense...

  • Cursor behaviour when quick key zooming

    Is there a way to change the cursor behaviour when using a quick key (cmd-space) zoom?
    When laying out complex forms i often need to quickly zoom in to accurately position (say) a checkbox i've just place on the page, but if i cmd-space zoom i have to then click the arrow tool before i can continue positioning the element in question.
    Not a big problem with one element but if i need to zoom in tight to reposition a number of elements i've selected, the need to click the arrow tool after the zoom causes that selection to deselect. Which means zooming in on each one to position it.
    In short, is there any way for acrobat to revert to the current tool after a quick key zoom?

    JFrame.setDefaultLookAndFeelDecorated(true) has bugs! I agree. I created my own lookAndFeel extending mostly from MetalUI components. I then made my own RootPaneUI and TitlePane, so I was knee deep in the MetalRootPaneUI code. You cannot fix the flicker problem. When resizing, the new bounds are determined and then setBounds is called on the window, either a Frame or Dialog. The setBounds call forces lightWeight components to repaint(), causing the flicker.
    sometimes, when resizing, the resize cursor will not be reset after resizing.I found this one two. I actually fixed this one. In the MetalRootPaneUI.MouseInputHandler.mouseEntered(line:878):public void mouseEntered(MouseEvent ev)
      Window w = (Window)ev.getSource();
      // change this line to the one below it
      //lastCursor = w.getCursor();
      lastCursor = Cursor.getPredefinedCursor(0);//should work now
      mouseMoved(ev);
    }What appears to happen is when a Dialog is closed over a JFrame, the cursor gets screwed up somehow. I was able to recreate the bug. I simply made a JFrame with a button that created a dialog. I then used the titleBar's closeButton to close the dialog. Just after clicking the closeButton, I moved my mouse quickly over the edge of the dialog before it had a chance to disappear. Sometimes I was fast enough and the cursor got stuck. The above code is all I could do to fix it.
    The resizing was filckery or slow whether I used the real MetalRootPaneUI or my own. I also tried the dynamicLayout and noerasebackground with unacceptable trade-offs. Luckily my app only has one JFrame. So, I only setDefaultLookAndFeelDecorated JDialogs, which are never resizable in my app. This means that my JFrame is the only window in the app that uses the OS TitleBar rather than my own. Although, my JFrame resizes without flickering.

  • Creative Cloud Desktop resize window.

    When you rightclick the Creative Cloud Desktop notification icon on Windows 8 and select "Open as window", the window is actually too big.
    The very bottom of the window is hidden behind the Task bar at the bottom. I would like to be able to change the height of the window so I can actually scroll down to the bottom item on the "Apps list".
    Windows 8, 64bit. 768px height.

    The desktop app still has this problem. My monitor is 1920 x 1080, yet the window goes below the taskbar on Windows 8.1. Does Adobe have any fix for this or do they think people will not complain? It is very annoying and like others have mentioned you cannot resize it, the cursor does not change to the resize cursor when hovering over the edge of the window. If this makes the app useless, then why even provide it. Since the original post was back in the middle of 2013 and here it is the beginning of 2015 and Adobe has not even posted on this issue, I don't think they care much about the app. I have done many web searches, but there is no answer yet for this issue. I wish Adobe would fix this

  • JSplitPane divider does not change cursor in JDialog

    Hello,
    I am working with a JSplitPane added to a JDialog and when
    I try to move the divider the mouse cursor does not change
    to the resize cursor. If I add the JSplitPane to a JFrame it works
    ok. Is this a bug???
    Try the following code:
    JDialog d = new JDialog();
    d.add(new JSplitPane());
    d.setSize(640,480);
    d.setVisible(true);
    Thanks for any help!

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Testing
      JDialog d = new JDialog();
      public Testing()
        JSplitPane sp = new JSplitPane();
        d.add(sp);
        sp.setUI(new MyUI());
        d.setSize(640,480);
        d.setVisible(true);
      class MyUI extends javax.swing.plaf.metal.MetalSplitPaneUI
        public javax.swing.plaf.basic.BasicSplitPaneDivider createDefaultDivider()
          javax.swing.plaf.basic.BasicSplitPaneDivider divider = super.createDefaultDivider();
          divider.addMouseListener(new MouseAdapter(){
            public void mouseEntered(MouseEvent me){
              d.setCursor(new Cursor(Cursor.E_RESIZE_CURSOR));
            public void mouseExited(MouseEvent me){
              d.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
          return divider;
      public static void main(String[] args){new Testing();}
    }Message was edited by:
    Michael_Dunn
    [EDIT]
    will also need to add Cursor code for mouseDragged()

  • Dynamically resizing VBoxes

    I have code that changes the cursor indicating user can drag
    to resize VBoxes vertically, horizontally, or diagonally, but I'm
    not sure how to proceed to dynamically resize the VBoxes.
    If the user has the vertical resizing cursor displayed (by
    clicking the top border of the lower VBox) and drags, the VBox
    above the border and below the border should both resize.
    Any ideas for how to proceed with this?
    Code is attached, and all you need are three images 16x16
    px.

    "Greg Lafrance" <[email protected]> wrote in
    message
    news:gnha8u$onj$[email protected]..
    >I have code that changes the cursor indicating user can
    drag to resize
    >VBoxes
    > vertically, horizontally, or diagonally, but I'm not
    sure how to proceed
    > to
    > dynamically resize the VBoxes.
    >
    > If the user has the vertical resizing cursor displayed
    (by clicking the
    > top
    > border of the lower VBox) and drags, the VBox above the
    border and below
    > the
    > border should both resize.
    >
    > Any ideas for how to proceed with this?
    Use VDividedBox instead?

Maybe you are looking for