In this tutorial you will be given the knowledge of GUI, how to make frames, panels, buttons and how to display dialog boxes. As usual, the article will take the naughty approach to teach the good stuff.
When using the JFileChooser dialog to open files, you will usually want to give the user a list of filters to make finding a file of a specific type easier. When using the JFileChooser to dialog to save files, you will usually want to give the user a list of types that they can save the file as. This tutorial will show how to do this. This tutorial will show how to create a file filter to only show text files and a file filter that shows only files that are less than a month old.
This tutorial shows how to go beyond the predefined cursors in Java and create your own cursors using a GIF or PNG that are displayed when the user moves the mouse over a Java component (AWT or Swing).
This tutorial shows how to change the default close action to exit the application when the window is closed. In additon, this discusses the different close actions.
Have you ever wanted to provide text formatting in a Swing control? Have you ever wanted to have multiple lines of text in a tab? This tutorial will show you how to use the simplicity of HTML to provide flexible and powerful text formatting in Swing controls.
This introduction to using Swing in Java will walk you through the basics of Swing. This covers topics of how to create a window, add controls, position the controls, and handle events from the controls.
By default a Swing application or applet does not have the native look and feel of the operating system. This tutorial shows how to modify your application to use the correct look and feel for the platform.
This tutorial looks at how to center a dialog box, frame, or window in Java. You will also learn how to extend the JDialog class to create a self-centering dialog box.
In Java 1.5, Sun implemented the Windows XP look and feel for the JTabbedPane. Learn how to modify your JTabbedPane to take advantage of the new Windows XP look and feel.
Have you ever wanted to grab a screenshot from your Java application? Here's a quick tutorial on how to grab a screenshot and save it to a JPEG and PNG file. This shows how to use the Robot class to capture the screen image and the ImageIO API to save it as a JPG and PNG.
Accepting formatted input doesn't have to be difficult with input verifiers and focus listeners. This installment of Magic with Merlin shows you how to use the new JFormattedTextField component to prompt for numbers, dates, and formatted input. The Java 2 Standard Edition (J2SE), version 1.4, adds two new Swing components to the palette of available GUI elements: JSpinner and JFormattedTextField.
This generic Swing architecture eases your UI development by integrating intelligent data with Swing components. You can use the iData architecture to create a central repository of data within your application. By doing so, you'll more fully separate data from presentation and produce code that's cleaner and easier to maintain. This article explains how to use the iData technique to ease complex GUI development.
29 times | category:
this:1/125records total:13 start Previous Next Last goto: