|
|
Archive for the 'components' Category
Thursday 3 July 2008 @ 7:13 pm
Consider you have a form with several text fields and some buttons. One of the buttons is usually the “default” button , which would get executed if the user pressed enter, while the focus is in any of the text fields in that form. You should have definitely seen this type of buttons. As an example in google.com, you can type you query in the textfield and press enter, which is same as clicking the “Google Search” button.
Tuesday 20 May 2008 @ 2:52 pm
In the last article, I showed the use of borders and how you can use the BorderFactory class to create one of the predefined Borders. Now, what if none of the Java-supplied Borders meet your needs?
Monday 19 May 2008 @ 12:40 am
Borders in Swing are very useful not only for adding simple border lines to a component but also to add titles, create bevel effects and adding spaces around components. Almost all Java Components [with the exception of Labels and Panels] create there own borders in most Look and Feels. |
Popular Articles
Blog Categories
Monthly Archives
Resources
|