Relative Content

Tag Archive for swing

Using MVC in a Java app

I need to write a cross-platform GUI application to process (in multiple threads) and visualize fairly large quantities of data. Ideally the application should be relatively fast and look good.

Frustration with Java Swing layout managers

I have been trying for years to master Swing layout managers with no success. Every time I need to do something with Swing, it is like pulling nails to get the visual components to line up the way I want them to. I am familiar with frameworks like Matisse but that’s not the point.

Java Swing ActionListener design

I have a form that includes an area for putting in address information and a table that shows the addresses that have been added. I’ve separated out the ActionListener for the “add address” button on the form into it’s own top level class and I’m finding it tricky and cumbersome to refer back to the form that has the text boxes and the table.

Criteria for selecting MigLayout for GUI code?

It seems to be easier to use and more feature rich than standard swing layouts. It looks like a do it all replacement for all standard layouts. If you are making simple code to just show the time in a window, then MigLayout is probably not useful. But, if you are making a flight cockpit panel, then MigLayout might be the best. However, even if your project is “complex” (like the flight panel example), how do you decide if you can do it well with the standard layouts instead of Mig ?

Why doesn’t Swing look native out of the box?

Java Swing GUI’s don’t look native by default (Except on Mac OS X for some reason). Swing uses it’s own look and feel. You can get Swing to use the system look and feel by putting:

Why doesn’t Swing look native out of the box?

Java Swing GUI’s don’t look native by default (Except on Mac OS X for some reason). Swing uses it’s own look and feel. You can get Swing to use the system look and feel by putting: