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.

Internet Foundation Classes 144<br />

// This method allows HelloWorld to run as a stand alone<br />

application.<br />

}<br />

public static void main(String args[]) {<br />

}<br />

HelloWorld = new HelloWorld ();<br />

ExternalWindow mainWindow = new ExternalWindow();<br />

Size size;<br />

app.setMainRoot<strong>View</strong>(mainWindow.root<strong>View</strong>());<br />

size = mainWindow.windowSizeForContentSize(320, 200);<br />

mainWindow.sizeTo(size.width, size.height);<br />

mainWindow.show();<br />

app.run();<br />

To be compared with the equivalent Java Swing code:<br />

import javax.swing.*;<br />

public class HelloWorld extends JFrame {<br />

}<br />

public HelloWorld() {<br />

}<br />

setDefaultCloseOperation(DISPOSE_ON_CLOSE);<br />

add(new JLabel("Hello, World!"));<br />

public static void main(String[] args) {<br />

}<br />

See also<br />

• Swing<br />

HelloWorld app = new HelloWorld();<br />

app.pack();<br />

External links<br />

• IFC presentation [4]<br />

app.setVisible(true);<br />

• IFC runtime download [5]<br />

• IFC programming guide [6]<br />

• IFC class hierarchy [7]<br />

• IFC tutorial [8]<br />

The last places, where to download the IFC:<br />

• ftp-Server 1 Uni-Potsdam [9]<br />

• ftp-Server 2 Uni-Potsdam [10]<br />

• ftp-Server 3 Uni-Potsdam [11]

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

Saved successfully!

Ooh no, something went wrong!