coming now to the new edge of the techonolgy

Dani AI

Generated

For and others starting GUI work in NetBeans 6.0: a practical, low-friction approach is to learn a few Swing fundamentals first and then use the NetBeans GUI Builder (Matisse) for layout work. Matisse generates GroupLayout code; knowing how layout managers work (BorderLayout, FlowLayout, GridBagLayout, GroupLayout) prevents brittle, fixed-size UIs. As and hinted, IDE preference matters, but for rapid form design Matisse gives a good balance between visual design and maintainable code.

A recommended workflow: start a new Form (JFrame/JPanel), build the UI with the palette, and use the property sheet and custom-code slots for small injections. Keep business logic out of generated code — place it in model/controller classes and call update methods from listeners. Do not hand-edit guarded sections; use the GUI Builder’s API hooks or separate helper classes for custom rendering or behavior.

Swing is single-threaded. All component creation and updates must run on the Event Dispatch Thread (EDT), and long-running work must run off the EDT (for example, with SwingWorker) to avoid freezing the UI. A minimal launcher pattern:

public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
        public void run() {
            new MyFrame().setVisible(true);
        }
    });
}

Test forms with different font sizes, PLAFs, locales and DPI. Prefer layout managers and pack() over hard-coded sizes. For implementation details and the concurrency/layout rules, see the Oracle Swing tutorials and the NetBeans GUI Builder guide: Swing tutorial . Avoid putting heavy logic in event handlers and rely on model/view separation for clearer, testable code.

Recommended Answers

All 6 Replies

? WTF ?

He-he, somebody things that programmers here are not aware of latest technology development

What????? NetBeans released the 6.0? That's amazing. I am still using the 0. version:icon_lol: I am going to download it with my PSTN 28kbps connection. By the time it gets downloaded, the 7.0 will be released :icon_lol:

yep, they released 6.0 some time ago. I believe the betas of 6.1 are already available in fact :)

Got it installed on one machine to check it out, but haven't gotten around to using it yet.
Way too much fun and productivity with IntelliJ 6 (yes, I'm cheap, I've not yet upgraded to 7).

there is not too much difference between IntelliJ 6 and 7 as far I seen from JME development, but I do not use IDE in full scale so difficult to judge

It LOOKS similar in screenshots, but has for example built-in support for building Spring applications (including crosslinking between the configuration files and sourcecode, code generators, etc.), Ruby, I think Groovy (not that I use that), vastly improved EJB3 support, etc.

I don't at the moment need that so I haven't upgraded. When I do have the need, the upgrade will be there :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.