Eclipseμ κ·Όκ°μ΄ λλ Javaμ© κ·Έλν½ ν΄ν· Eclipse 2.1 λΆν° 곡μμ μΌλ‘ SWTκ° λΆλ¦¬λμ΄ λ°°ν¬λκ³ μλ€.
"Eclipseμ μλκ° λΉ λ₯΄λ€." λΌλ μ μ 견μ λ§λ€μ΄μ€ μ₯λ³ΈμΈμΈ Cross Platform Native Graphic Toolkit μ΄λ€.
"Eclipseμ μλκ° λΉ λ₯΄λ€." λΌλ μ μ 견μ λ§λ€μ΄μ€ μ₯λ³ΈμΈμΈ Cross Platform Native Graphic Toolkit μ΄λ€.
λ΄λΆμμλ μ΄κΈ°λΆν° SWTμ Eclipse νλ‘μ νΈμ μν μ΄ λΆλ΄λμ΄, κ³Όκ±° IBM developerworks μ gccλ₯Ό μ΄μ©ν νλ‘κ·Έλ¨ μμ±μ λν λ¬Έμκ° μμμΌλ, SWTλ₯Ό μ΄μ©ν νλ‘κ·Έλ¨μ λ±μ₯μ 보μ΄μ§ μμλ€. κ·Έλ¬λ λΆλ¦¬λλ©΄μ, κ·Έλ¬ν νλ‘κ·Έλ¨μ κΈ°λν μ μκ² λμλ€.
SWT νλ‘μ νΈ νμ΄μ§
{{|
The most succinct description of the Standard Widget Toolkit component is this:
{{|
The most succinct description of the Standard Widget Toolkit component is this:
The SWT component is designed to provide efficient, portable access to the user-interface facilities of the operating systems on which it is implemented.
--SWT νλ‘μ νΈ νμ΄μ§ μμ
|}}--SWT νλ‘μ νΈ νμ΄μ§ μμ
- SWT 2.1 λ¬Έμ - Code Snippets κ° λ§μμ, λ°λΌνκΈ° μ©μ΄νλ€.
~cpp HelloWorld
λ₯Ό λ§λ€μ΄ 보μ. ¶
- SWTλ₯Ό λ€μ΄λ‘λ λ°λλ€. Eclipse downlaodμμ λ°μμ μλ€.
swt-2.1-win32.zip
- swt.jar λ₯Ό classpath μ μ‘κ³ λ€μ μμ€λ₯Ό μ»΄νμΌ νλ€.
~cpp import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Shell; public class HelloWorld { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setText("Hello World"); Label label = new Label(shell, SWT.NONE); label.setText("Hello World"); label.setBounds(20,20,100,100); shell.setBounds(20,20,300,300); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
- μ€νμ μν€κΈ° μν΄μ, μ€νλλ μμΉμ swt-win32-2133.dll (Windows κ²½μ°)κ° μμ΄μΌ νλ€.
- μ€ν λͺ¨μ΅