13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

xviC<strong>on</strong>tentsChapter 1717.117.217.317.417.517.617.717.8Other Ways: Alternatives to Swing .............................................What You Will Learn ...........................................................................The IBM SWT Toolkit .........................................................................17.2.117.2.217.2.317.2.417.2.517.2.6Another GUI Toolkit. Why? ....................................................Duplicated Effort. Why Cover It? ............................................Portability: Better and Worse ..................................................The Rest of the Chapter .........................................................SWT: Close to the Metal ........................................................“Hello, world” SWT Style ........................................................Porting BudgetPro to SWT .................................................................17.3.1Step 1: C<strong>on</strong>vert the Class Members ......................................17.3.2 Step 2: C<strong>on</strong>verting the main() Method ..............................17.3.3 Step 3: C<strong>on</strong>verting the GUI build() and init()Methods .................................................................................17.3.417.3.517.3.6Completing the C<strong>on</strong>versi<strong>on</strong> of the BudgetPro Class ........Completing the C<strong>on</strong>versi<strong>on</strong> of the <str<strong>on</strong>g>Applicati<strong>on</strong></str<strong>on</strong>g> .......................Closing Thoughts ...................................................................SWT and gcj ......................................................................................Review ................................................................................................What You Still D<strong>on</strong>’t Know ..................................................................Resources ..........................................................................................Exercises ............................................................................................377377378378379380380380381384387389391394395395396398398398399PART IVChapter 1818.118.218.318.418.518.618.7Developing Web Interfaces ..................................Servlets: Java Pressed into Service ............................................What You Will Learn ...........................................................................Servlets: Program-Centric Server-Side Documents ...........................Perspective .........................................................................................How to Write a Servlet ........................................................................Input, Output .......................................................................................Matters of State: Cookies, Hidden Variables, and the Dreaded“Back” Butt<strong>on</strong> ......................................................................................18.6.1Cookies ..................................................................................Designing a BudgetPro Servlet ..........................................................401403403404405407411413414416

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

Saved successfully!

Ooh no, something went wrong!