-
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.
-
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
-
...
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.
-
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
-
...
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
-
By xenovacivus in forum C++
Replies: 4
Last Post: 09-14-2006, 03:15 PM
-
By Asymptote in forum Java
Replies: 0
Last Post: 05-29-2006, 10:09 PM
-
By bedeabza in forum Java
Replies: 1
Last Post: 09-22-2005, 04:01 PM
-
By Volker Held in forum Java
Replies: 1
Last Post: 05-21-2002, 05:10 AM
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks