FIX: Controls Not Visible in a JAVA Application (163721)
The information in this article applies to:
This article was previously published under Q163721 SYMPTOMS
Controls in a dialog resource, created using the Java Resource Wizard in a
java application do not appear when the java application is loaded.
RESOLUTION
To work around the problem, move the call to resize the frame in main() in
the AppWizard generated code to the end of function main(). Following is
the AppWizard generated code modified with the workaround:
...
public static void main(String args[])
{
...
frame.show();
frame.hide();
// Move the following call to the end of the function
// frame.resize(frame.insets().left + frame.insets().right
// + 320,
// frame.insets().top + frame.insets().bottom
// + 240);
...
applet_resj.start();
frame.show();
// After modification
frame.resize(frame.insets().left + frame.insets().right
+ 320,
frame.insets().top + frame.insets().bottom
+ 240);
}
...
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. This problem has been fixed in
Visual J++ 1.1.
REFERENCES
For the latest Knowledge Base articles and other support information on
Visual J++ and the SDK for Java, see the following page on the Microsoft
Technical Support site:
Modification Type: | Minor | Last Reviewed: | 8/25/2005 |
---|
Keywords: | kbbug kbfix kbwizard KB163721 |
---|
|