14.07.2013 Views

Contents - Cultural View

Contents - Cultural View

Contents - Cultural View

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Swing (Java) 289<br />

}<br />

window<br />

}<br />

See also<br />

});<br />

}<br />

• Abstract Window Toolkit<br />

• Layout manager<br />

// program won't exit when clicking close button<br />

// (The default is HIDE_ON_CLOSE, which just makes the<br />

// invisible, and thus doesn't exit the app)<br />

f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);<br />

// Set the visibility as true, thereby displaying it<br />

f.setVisible(true);<br />

• SwingLabs - Extensions to Swing that might be included in Swing in the future<br />

• Standard Widget Toolkit A third party competing widget toolkit resembling the Abstract Window Toolkit in<br />

function.<br />

References<br />

• Matthew Robinson, Pavel Vorobiev: Swing, Second Edition, Manning, ISBN 1-930110-88-X<br />

• David M. Geary: Graphic Java 2, Volume 2: Swing, Prentice Hall, ISBN 0-13-079667-0<br />

• John Zukowski: The Definitive Guide to Java Swing, Third Edition, Apress, ISBN 1-590-59447-9<br />

• James Elliott, Robert Eckstein, Marc Loy, David Wood, Brian Cole: Java Swing, O'Reilly, ISBN 0-596-00408-7<br />

• Kathy Walrath, Mary Campione, Alison Huml, Sharon Zakhour: The JFC Swing Tutorial: A Guide to<br />

Constructing GUIs, Addison-Wesley Professional, ISBN 0-201-91467-0<br />

• Joshua Marinacci, Chris Adamson: Swing Hacks, O'Reilly, ISBN 0-596-00907-0<br />

External links<br />

• The Swing API documentation [7]<br />

• The Swing architecture [4]<br />

References<br />

[1] Swing as MVC (http:/ / java. sun. com/ products/ jfc/ tsc/ articles/ architecture/ )<br />

[2] Swing vs. SWT Performance - Have a Look at the Call Stacks (http:/ / www. javalobby. org/ java/ forums/ t65168. html)<br />

[3] Igor, Križnar (2005-05-10). "SWT Vs. Swing Performance Comparison" (http:/ / cosylib. cosylab. com/ pub/ CSS/ DOC-SWT_Vs.<br />

_Swing_Performance_Comparison. pdf). cosylab.com. . Retrieved 2008-05-24. "It is hard to give a rule-of-thumb where SWT would<br />

outperform Swing, or vice versa. In some environments (e.g., Windows), SWT is a winner. In others (Linux, VMware hosting Windows), Swing<br />

and its redraw optimization outperform SWT significantly. Differences in performance are significant: factors of 2 and more are common, in<br />

either direction."<br />

[4] http:/ / java. sun. com/ products/ jfc/ tsc/ articles/ architecture/

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!