This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 3811 - Suggest a Form Executor to simplify test-running of forms.
Summary: Suggest a Form Executor to simplify test-running of forms.
Status: CLOSED WONTFIX
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-09-13 00:17 UTC by Jesse Glick
Modified: 2002-07-19 15:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 1999-09-13 00:17:46 UTC
Currently templates for standalone form types (e.g. JFrame) include a main-method to test them with, so the user can execute and debug without writing additional code; other form types (e.g. JPanel)
 do not.

It would be rather easy to write an executor (installed by the Form Editor module and placed on templates) that would just handle the boilerplate to start up some form object and display it. So it wou
ld create an instance of the form class, add it to a Window of the appropriate type if it was not one already, attach the window listener, and show it. This way, even forms like JPanel`s could be test
ed by default; and e.g. user JFrame`s would not need to have testing code in them to be tested inside the IDE. Applets already work this way, so other form types could too.

Of course, some frames are supposed to be the entire application. So there should also be templates with external executor and a main method, called e.g. AWTForms/Frame_Application or SwingForms/JFram
e_Application (which could also have a menu bar by default?).

Anyone who did not have a default constructor for their form class would just write their own main-method (they could look at the JFrame_Application template for an idea of what to write if needed).
Comment 1 Marek Grummich 2000-07-25 09:26:59 UTC
Priority is changed to P4 (normal).