Results 1 to 3 of 3
  1. #1
    Yogesh is offline Member
    Join Date
    Jul 2013
    Posts
    7
    Rep Power
    0

    Default Adding only single JInternalFrame to a JdesktopPane at any time

    Hello Everyone,
    I'm quiet new to Java and I have 2 queries for the experts here...
    I have an MDI application with a JFrame Form as the MainWindow and a JDesktopPane placed inside the MainWindow.
    I have menu items to open JInternalFrames inside this JDesktopPane.

    Now here is what I want

    1) I have designed a login form (a JinternalFrame) and I want when login form is open no other JInternalFrame can be opened, i.e. the menu gets Disabled or anything like that etc.
    2) I want only one single JInternalFrame to be open at a time. If a user tries to open another there should be a messageDialog asking confirmation for user to close the current open window and open new one.

    another important thing: I am using Netbeans IDE.
    Thanx in advance
    Remain wired.
    :)

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,234
    Rep Power
    7

    Default Re: Adding only single JInternalFrame to a JdesktopPane at any time

    1) I have designed a login form
    A Login form should be a modal JDialog, not a JInternalFrame. What you are describing does not sound like a MDI application.

  3. #3
    Yogesh is offline Member
    Join Date
    Jul 2013
    Posts
    7
    Rep Power
    0

    Default Re: Adding only single JInternalFrame to a JdesktopPane at any time

    Quote Originally Posted by camickr View Post
    A Login form should be a modal JDialog, not a JInternalFrame. What you are describing does not sound like a MDI application.


    Hell yeah....
    You gave me a very life saving solution....i'll just make a Modal JDialog box...indeed...
    thanx again :)

Similar Threads

  1. Replies: 4
    Last Post: 09-27-2011, 09:20 AM
  2. Replies: 0
    Last Post: 08-09-2011, 06:07 PM
  3. Replies: 2
    Last Post: 08-23-2010, 08:05 PM
  4. Single login for a user at a time
    By mitali l joshi in forum Java Servlet
    Replies: 4
    Last Post: 01-22-2010, 10:23 AM
  5. Replies: 6
    Last Post: 07-28-2008, 06:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •