Odds things happenning in JDialog


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Odds things happenning in JDialog

Hybrid View

  1. #1
    Join Date
    Feb 2008
    Posts
    8

    Question Odds things happenning in JDialog

    I have one dialog in one package calling another dialog in a different package. The text fields in the dialoge being called are locked out in that I can place the cursor in them but I can't type anything in them. The JComboboxes work fine. If I put them in the same package, everything works fine.

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    How are you calling the dialogs?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Feb 2008
    Posts
    8

    ...

    I found some bug reports that sound kind of like the problem I am having. If it is, it looks like it is fixed in jdk 1.6. Unfortunately, I am restricted to 1.5.

    http://bugs.sun.com/bugdatabase/view...bug_id=6432035
    http://bugs.sun.com/bugdatabase/view...bug_id=6527109


    Anyhow, I have an applet that creates a dialog using the following code.

    JDialog newdlg1 = new javax.swing.JDialog(frame, true);
    newdlg1.setSize(500, 500);
    newdlg1.setLocation(150, 150);
    newdlg1.setTitle("Dialog 1 Title");
    newdlg1.getContentPane().setLayout(new java.awt.BorderLayout());
    NewPanelForDialog1 newPnl = new NewPanelForDialog1 ();
    newdlg1 .getContentPane().add(newPnl, java.awt.BorderLayout.CENTER);
    newdlg1 .setVisible(true);

    Both the calling applet and NewPanelForDialog1 are in the same package.

    To bring up the second modal dialog, I do the following


    JDialog newdlg2 = new javax.swing.JDialog(frame, true);
    newdlg2.setSize(500, 500);
    newdlg2.setLocation(150, 150);
    newdlg2.setTitle("Dialog 1 Title");
    newdlg2.getContentPane().setLayout(new java.awt.BorderLayout());
    NewPanelForDialog2 newPnl2 = new NewPanelForDialog1 ();
    newdlg2.getContentPane().add(newPnl2, java.awt.BorderLayout.CENTER);
    newdlg2.setVisible(true);

    Where NewPanelForDialog2 is in a different package.

  4. #4
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Why are you restricted to 1.5 if 1.6 appears to fix your problem?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  5. #5
    Join Date
    Feb 2008
    Posts
    8

    ...

    Because the tomcat server has to be able to be run on an as400 and it can only handle 1.5. IBM is always behind.

Similar Threads

  1. Spot the leak! Programming Challenge!!!
    By xenovacivus in forum C++
    Replies: 4
    Last Post: 09-14-2006, 03:15 PM
  2. Replies: 0
    Last Post: 05-29-2006, 10:09 PM
  3. JDialog how to [newbie]
    By bedeabza in forum Java
    Replies: 1
    Last Post: 09-22-2005, 04:01 PM
  4. Replies: 1
    Last Post: 05-21-2002, 05:10 AM
  5. VC++ vs. C++ Builder and general things
    By Mark Andes in forum authorevents.morrison
    Replies: 1
    Last Post: 11-17-2000, 12:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center