Java Programming: Z-order value for JDialog

  • rajiparthiban / 202 / Mon, 04 May 2009 03:34:00 GMT / Comments (4)
  • Dear all,
    I have a JFrame in which I have add a toolbar inside a JPanel which is kept at the top of the JFrame. There are four buttons in the toolbar. If I click the last button, a JDialog should open in the remainig space of JFrame.

    But my problem is this JDialog is getting overlapped with the last two buttons and the last two buttons are above the JDialog if opened.

    I tried the following code but no use:

    <code>
    JDialog.setAlwaysOnTop(true);
    </code>

    how can i set rectify this problem?. Please help
    Thankyou
  • Keywords:

    z-order, value, jdialog, java, programming

  • http://java.itags.org/java-programming/332350/«« Last Thread - Next Thread »»
    1. Try calling JDialog.toFront() when it is displayed.

      Technical skill is mastery of complexity, while creativity is mastery of simplicity...
      E. C. Zeeman

      dlorde | Sat, 10 Nov 2007 02:19:00 GMT |

    2. Sir,
      I have attached my page design in word document. There you can see the change Location dialog displayed back of the buttons in toolbar above.
      I have worked with all possible codes. There is something to do with lightweight component. I am not clear of the idea.

      So how can I rectify the problem.

      And I also when move my JDialog, the components are not displayed properly. After some times if i Click many times inside the JDialog then components are appearing one by one that too not proper.

      Please help me.

      Thanks
      Raji

      rajiparthiban | Sat, 10 Nov 2007 02:20:00 GMT |

    3. Dear all,
      I have explained my problem in the above posts. Please do help me to resolve this problem. I have read so much on Z-Order and heavy weight and light weight components . But in vain. Please do help.

      Thanks in advance,
      Raji

      rajiparthiban | Sat, 10 Nov 2007 02:21:00 GMT |

    4. You seem to have a dialog painting problem, which would account for the problems, but without seeing how the dialog has been implemented, it's not possible to say why.

      Have you followed the standard procedures for displaying dialogs? (see How to Make dialogs (http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html)).

      One day Chao-Chou fell down in the snow, and called out: "Help me! Help Me!" A monk came and lay down beside him. Chao-Chou got up and went away...
      Zen Koan

      dlorde | Sat, 10 Nov 2007 02:22:00 GMT |

  • Java Programming Questions

    • netbeans error

      at the strat of the run i get a lot of lines that say somthing like this:TRY(1): env: 0x12fa84, thro...

      By q2ky

    • Image and byte

      hi,i have a problem with image manipulation (JDK 1.3)i create an ImageIcon with a byte array. After ...

      By lam

    • Image and byte

      On Thu, 06 Oct 2005 11:42:19 +0200, Lam<lam-no-spamm-thanks@nospam.org> wrote or quoted :>I...

      By roedy_green

    • Image and byte

      Lam wrote:> i have a problem with image manipulation (JDK 1.3)> i create an ImageIcon with a b...

      By andrew_thompson

    • Trouble installing JDk

      Hey GuysI am having real trouble getting Java to run properly. I have had it running before but now ...

      By pskyboy, 1 Comments

    • Client/Server help

      okay, i'm writing this program where you start up the server obviously, then you start up the client...

      By dubl10a, 2 Comments

    • alarm clock

      k this is whats going on. I have created a class called Digital clock that is the actual digital clo...

      By drunk_buma, 5 Comments

    • Alarm class

      I have a class called AlarmClock class. The specification of my design was to create another class t...

      By aristo, 6 Comments

    • Image and byte array

      I need to construct an Image with a table of byte is it possible?coulde annyone help me please? ...

      By shadowshad, 4 Comments