http://java.sun.com/docs/books/tutorial/uiswing/learn/index.html
This chapter explains the concepts you need to use Swing components in building a user interface. First we examine the simplest Swing application you can...
Figure 1 is a snapshot of the HelloWorldSwing[1] program.[1] To run HelloWorldSwing using Java Web Start, click the HelloWorldSwing link on the RunExamples/start.html page on...
Let's look at another simple program, SwingApplication (see Figure 2).[3] Each time the user clicks the button (JButton), the label (JLabel) is updated.[3] To run...
Our next example, CelsiusConverter,[5] is actually useful: It's a simple temperature conversion tool. When the user enters a temperature in degrees Celsius and clicks the...
Now that we've examined CelsiusConverter, let's improve it. First, we'll spiff it up by adding colored text. Next, we'll improve the button by making it...
The last example in this chapter is VoteDialog.[11] It illustrates the use of dialogs and radio buttons, as shown in Figure 13.[11] To run VoteDialog...
Questions
1:On what thread should GUIs be created, to guarantee thread safety?2:Why should you be careful to minimize the time spent in event-handler code?3:What is the...
You can find source files for all of the examples from this chapter on the CD and online:
JavaTutorial/uiswing/learn/example-1dot4/index.html
http://java.sun.com/docs/books/tutorial/uiswing/learn/example-1dot4/index.html
The preceding URLs take you to an index...
С 2009 года мы стали переводить структура сайта на различные языки. Сайт теперь будет содержать книги не только на английском языке, но также и на других европейских языках, в том числе и на Русском языке.