JFC / Swing

View: [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 ]

Articles
Tips
  Tutorials
  

Articles:
  • Java GUI Development: Reintroducing MVC by Andrus Adamchik   - [Clicks: 157]
    Finding the MVC in Swing can be difficult. Andrus Adamchik discusses how you can add a separate MVC layer on top of Swing, treating Swing components as a "view". Scriptable dynamic bindings are used inside this layer for declarative component assembly and communication between various related application parts.
    http://www.theserverside.com/articles/article.tss?l=JavaGUIDev - Nov, 2004
  • Build Your Own Messaging Application in Java with jYMSG by Kulvir Singh Bhogal   - [Clicks: 46]
    This new Java API provides you all the necessary functionality to build your own messaging application in conjunction with Yahoo's instant messaging and chat software.
    http://www.devx.com/Java/Article/22546?trk=DXRSS_JAVA - Nov, 2004
  • Automate GUI tests for Swing applications by Ichiro Suzuki   - [Clicks: 80]
    Automation is necessary for frequent and consistent testing, which is the foundation of agile development. However, acceptance tests of GUI applications are not always easy to automate. This article explains a simple way of automating Java Swing application acceptance tests, starting from Swing components' unit tests and extending them to acceptance tests without human intervention.
    [Includes source code]
    http://www.javaworld.com/javaworld/jw-11-2004/jw-1115-swing.html - Nov, 2004
  • JTable filtering with Glazed Lists by Jesse Wilson   - [Clicks: 65]
    Text filtering is effective in data-intensive applications such as iTunes. Glazed Lists, an open source toolkit for list transformations, implements text filtering. In this article, Jesse Wilson discusses list transformations, how they represent simple yet powerful tools, and walks you through an implementation of text filtering in Java using Glazed Lists.
    [Includes source code]
    http://www.javaworld.com/javaworld/jw-10-2004/jw-1025-glazed.html - Oct, 2004
  • Ease Swing development with the TableModel Free framework by Michael Abernethy   - [Clicks: 61]
    This article introduces the TableModel Free (TMF) framework which eliminates the need to use TableModels with Swing JTables. The TMF framework allows for more configurable JTables by moving all of table-specific data outside of the compiled code and into a configurable XML file. Framework developer and Java UI enthusiast Michael Abernethy walks you through TMF framework, helping you reduce the size of a TableModel from hundreds of lines of code to just a single line, making management a snap.
    [Includes source code]
    http://www-106.ibm.com/developerworks/java/library/j-tabmod/ - Oct, 2004
  • The JModalWindow Project by Jene Jasper   - [Clicks: 79]
    There are times when you want a modal window that implements window-specific modality rather than the application-wide modality provided by the standard JDialog class. This article explains the workings of the JModalWindow project, which provides two top-level components, called ModalWindows, that introduce such modality. The first ModalWindow class, JModalWindow, is a subclass of JWindow that's generally used for dialogs that block other windows. The second, JModalFrame, is a subclass of JFrame that can be used either as a blocked window or as a blocking window. Both classes implement an interface named InputBlocker.
    http://today.java.net/pub/a/today/2004/09/07/modal.html - Sep, 2004
  • CloseAndMaxTabbedPane: An enhanced JTabbedPane by David Bismut, Krishnakumar Pooloth   - [Clicks: 55]
    In this article, David Bismut and Krishnakumar Pooloth present CloseAndMaxTabbedPane, an enhanced tabbed pane with Close and Maximize buttons and a look and feel similar to Eclipse 2.1. The authors discuss the component's design and implementation aspects. They also explain the design of the BasicTabbedPaneUI class, which is an important element in the implementation.
    [Includes source code]
    http://www.javaworld.com/javaworld/jw-09-2004/jw-0906-tabbedpane.html - Sep, 2004
  • Creating Custom Desktop Components by Andrei Cioroianu   - [Clicks: 81]
    This article presents a drawing component used by an image-annotation application named JImaging. Some of the JImaging code has already been described in two other articles, titled "Prototyping Desktop Applications" and "Data Models for Desktop Apps."
    http://www.onjava.com/pub/a/onjava/2004/08/11/desktop.html - Aug, 2004
  • Get started with the AUIML Toolkit by Andy Arhelger, Andy Hanson, Anthony Erwin   - [Clicks: 25]
    The Abstract User Interface Markup Language toolkit is a rapid-development tool to assist developers in writing GUIs to run as either Swing applications or on the Web -- without any changes. Toolkit creators Andy Arhelger, Andy Hanson, and Tony Erwin take you on a tour of their technology, detailing where to get it, how to install it, and how to use it in this step-by-step article.
    http://www-106.ibm.com/developerworks/java/library/j-auiml/ - Jul, 2004
  • Developing Swing Components Using Simulators by Jonathan Simon   - [Clicks: 21]
    User interfaces often end up a series of tightly integrated components that are hard to build, maintain, and test. But it doesn't have to be that way! In this article, you'll learn about a technique for developing encapsulated components. You'll also learn about how to test graphical parts of your application that JUnit can't, such as layouts and other visual properties.
    [Includes source code]
    http://today.java.net/pub/a/today/2004/06/23/simulators.html - Jun, 2004
  • Creating Interactive GUIs with Swing's MVC Architecture Part 2: Dynamic View for a Static Model by Vlad Kofman   - [Clicks: 84]
    Create a dynamically adjustable presentation of a corresponding model for a Swing Table UI component.
    http://www.developer.com/java/ent/article.php/3362811 - Jun, 2004
  • Data Models for Desktop Apps by Andrei Cioroianu   - [Clicks: 47]
    This is the third article in a series that presents the prototype of a Java desktop application called JImaging. The first article described the three major Java GUI toolkits: AWT, Swing, and SWT. In the second article, I introduced the prototype, with its classes and packages; I presented the code of the Main class and I explained how I made several important technical decisions. In this article, I'll describe the data model of the prototype and I'll show how to use it.
    [Includes sample code]
    http://www.onjava.com/pub/a/onjava/2004/06/02/desktop.html - Jun, 2004
  • An XML based Framework for Developing Swing Applications by R Venkatavaradan, Suresh P R   - [Clicks: 50]
    Save valuable coding time by utilizing frameworks and IDEs to develop GUIs while also increasing the speed of implementation, achieving higher degree of parallelism and facilitating loosely-coupled development.
    http://www.developer.com/java/ent/article.php/3353351 - May, 2004
  • Put GUI Component Classes into Action by Patrick G. Durand   - [Clicks: 34]
    This is the second of a two-part article that discusses a process for automating the creation of menu bars and toolbars in newly developed GUI interfaces. Part 1, "Whipping Up GUI Components" (Java Pro Online, May 5, 2004), looks at the resource bundle (text file) that supplies the information necessary for the Java API's ResourceBundle framework to create Swing components. Part 2 takes a look at using the framework's DDActionManager and DDBasicAction classes.
    http://www.ftponline.com/javapro/2004_05/online/pdurand_05_12_04/ - May, 2004
  • Whipping Up GUI Components by Patrick G. Durand   - [Clicks: 30]
    This is the first of a two-part article that discusses a process for automating the creation of menu bars and toolbars in newly developed GUI interfaces. Part 1 takes a detailed look at the resource bundle (text file) that supplies the information necessary for the Java API's ResourceBundle framework to create Swing components. Part 2 will take a look at using the framework's DDActionManager and DDBasicAction classes.
    http://www.ftponline.com/javapro/2004_05/online/pdurand_05_05_04/ - May, 2004
  • Prototyping Desktop Applications by Andrei Cioroianu   - [Clicks: 39]
    Does J2SE provide the functionality your application needs? A great way to find out is by developing a prototype, tackling the hard parts first to see if they can be made to work. Andrei Cioroianu employs Java2D and Swing in developing a prototype image...
    [Includes source code]
    http://www.onjava.com/pub/a/onjava/2004/04/28/desktop.html - Apr, 2004
  • Creating Interactive GUIs with Swing's MVC Architecture by Vlad Kofman   - [Clicks: 75]
    See how MVC architecture is intertwined with Swing and how its strengths can be used to create extremely flexible and powerful graphical user interfaces that require minimal effort to modify once all components are in place.
    http://www.developer.com/java/ent/article.php/3336761 - Apr, 2004
  • Go state-of-the-art with IFrame by Michael Abernethy   - [Clicks: 47]
    The IFrame is an application window architecture that allows custom colors, custom borders, custom shapes, custom components, and even transparency. With IFrame, you can get rid of that boring old JFrame you use everywhere in your applications. In this article, IT Specialist Michael Abernethy introduces you to the IFrame class and shows you how you can use it to transform your standard JFrame application windows into state-of-the-art IFrames in no time.
    http://www-106.ibm.com/developerworks/java/library/j-iframe/ - Mar, 2004
  • BlackMamba: A Swing Case Study by Ashwin Jayaprakash   - [Clicks: 39]
    … In this article we'll discuss how to develop a desktop application using many of the architectural principles in the proverbial Book of OOAD. BlackMamba, shown in Figure 1, will be our case study. We will also list some of the common pitfalls that one encounters when developing such an application in Java Swing and learn how to overcome them.
    http://www.onjava.com/pub/a/onjava/2004/03/10/blackmamba.html - Mar, 2004
  • Building Rich Internet Applications with Naked Objects by Richard Pawson, Robert Matthews, Dan Haywood   - [Clicks: 28]
    This article discusses the need for rich clients in certain types of applications, such as expense reporting and customer-service systems. It contrasts two kinds of applications: 'transient' and 'sovereign', and shows you how to use Naked Objects to gain all of the advantages of a rich-client interface, without sacrificing the benefits of the thin-client approach.
    http://www.theserverside.com/articles/article.jsp?l=NakedObjectSeries_5 - Mar, 2004
  • Java Swing Survival Guide by Matt Stephens   - [Clicks: 75]
    11 essential things the Swing team must do if they're to compete against SWT and Macromedia Flash.
    http://www.softwarereality.com/soapbox/swing.jsp - Feb, 2004
  • Using Swing's Pluggable Look and Feel by Thomas Kunneth   - [Clicks: 43]
    This article discusses the Swing concept of a pluggable look and feel and offers some thoughts on how to use it in a way that is both convenient for the programmer and desirable for the user experience.
    http://today.java.net/pub/a/today/2004/02/27/laf.html - Feb, 2004
  • Naked Objects: Modeling simultaneously in UML, Java, and User Perspectives by Richard Pawson, Robert Matthews, Dan Haywood   - [Clicks: 21]
    Developers have traditionally had to choose between the benefits of rapid prototyping and of up-front modeling. This article examines how the Naked Objects Framework gives you the best of both approaches. When combined with various development environments, you can model simultaneously in UML, Java code and user perspectives, with all three in guaranteed synchronization.
    http://www.theserverside.com/articles/article.jsp?l=NakedObjectSeries_4 - Feb, 2004
  • Scaling Features in the JEditorPane Component by Stanislav Lapitsky   - [Clicks: 31]
    Discover how you can add scaling capabilities to your text editor.
    http://www.developer.com/java/other/article.php/3315511 - Feb, 2004
  • Java Desktop Development by Andrei Cioroianu   - [Clicks: 55]
    … In this article, I analyze how Java can improve the desktop world and then present the three major Java GUI toolkits: AWT, Swing, and SWT. In the following articles, I'll develop a full Java desktop application.
    http://www.onjava.com/pub/a/onjava/2004/02/18/desktop.html - Feb, 2004
  • Naked Objects: Write an application in Java and deploy it on .Net by Richard Pawson, Robert Matthews, Dan Haywood   - [Clicks: 22]
    Because the Naked Objects framework is written in Java 1.1. it will compile (as J#) for the .Net platform. Furthermore, if you choose to write your application in Java 1.1. (and since you aren't writing any user interface code that's no great restriction) then your application will compile, without modification, for either the Java or .Net platforms. This article shows you how.
    http://www.theserverside.com/articles/article.jsp?l=NakedObjectSeries_3 - Feb, 2004
  • Make Your Swing App Go Native, Part 3 by Joshua Marinacci   - [Clicks: 36]
    Welcome back. This is the final article in my series on making Swing applications feel native. In Part 1, we set up custom menus, the appropriate L&F, and native user alerts. In Part 2, we built double-clickable applications and added file-type associations. In this last installment, we will create custom icons and add some final polish to really make our application shine.
    http://today.java.net/pub/a/today/2004/01/29/swing.html - Jan, 2004
  • Part 1: The Case for Naked Objects - Getting Back to the Object-Oriented Ideal by Richard Pawson, Robert Matthews, Dan Haywood   - [Clicks: 13]
    The Naked Objects Framework enables the design and development of business systems in which all business functionality is implemented as methods on the domain objects, and these objects are exposed directly and automatically to the user. Two of the benefits claimed for using Naked Objects are that it dramatically improves development productivity (because the developer no longer writes a user interface) and that the resulting systems will be more agile because they will be built on cleaner object models.
    http://www.theserverside.com/articles/article.jsp?l=NakedObjectSeries_1 - Jan, 2004
  • Part 2: Challenging the Dominant Design of the 4-Layer Architecture by Richard Pawson, Robert Matthews, Dan Haywood   - [Clicks: 19]
    This article describes a controlled experiment that compares an application designed using a conventional 4-layer/multi-tier approach with an application of equivalent functionality developed with Naked Objects. It aims to provides evidence for the claims that Naked Objects speeds up the development cycle and that the resulting systems are more agile.
    http://www.theserverside.com/articles/article.jsp?l=NakedObjectSeries_2 - Jan, 2004
  • Fatten Up Your Java UIs with JGoodies by Laurence Moroney   - [Clicks: 51]
    Think you can get your end users to exclaim: My! What beautiful native-looking Windows apps you build in Java? A basketful of JGoodies is all you need.
    http://www.devx.com/Java/Article/19934 - Jan, 2004
  • Make Your Swing App Go Native, Part 2 by Joshua Marinacci   - [Clicks: 17]
    In this installment, we will create native executables for Mac OS X and Windows, then add another native feature: file type associations. In the third installment we will add custom icons and finishing polish.
    http://today.java.net/pub/a/today/2004/01/05/swing.html - Jan, 2004

[Top]

Tips:
  • More Multithreading in Swing by Daniel H. Steinberg   - [Clicks: 48]
    The December 8, 2003 Tech Tip, Multithreading in Swing, advised when you might use invokeLater() to produce thread-safe code. The following tip complements that earlier tip. The tip starts with an example that introduces the threading problem -- a continuous request for the event thread. You'll see how inserting a call to invokeLater() in this example does not help. Instead, you will use javax.swing.Timer to spawn a separate thread to create a responsive application.
    http://java.sun.com/developer/JDCTechTips/2004/tt0611.html#1 - Jun, 2004
  • Printing Components with PrinterJob by Daniel H. Steinberg   - [Clicks: 42]
    The printing capabilities provided by J2SE have been enhanced in almost every major release. Each release introduced additional functionality and flexibility. One of the classes that provides this added functionality and flexibility is PrinterJob. In this tip you will use PrinterJob to print a GUI component. Because components are what make up the UI of your application, this is how you can enable a user to print exactly what they see on the screen. You will be able to set attributes and specify PageFormat options for printing.
    http://java.sun.com/developer/JDCTechTips/2004/tt0611.html#2 - Jun, 2004
  • Customizing JFileChooser by John Zukowski   - [Clicks: 66]
    As is the case with all things in Swing, if you don't like the look of something, you can change it. In this tip, you'll learn how to customize the appearance of the JFileChooser component and its behavior. Let's start with a refresher on how to use the JFileChooser. Then let's examine single and multiple selection with the component, file and directory selection, setting up filters, adding accessories for previewing the currently selected content, and finally updating the file list view area.
    http://java.sun.com/developer/JDCTechTips/2004/tt0316.html#1 - Mar, 2004
  • Working with Swing Look and Feel by Daniel H. Steinberg   - [Clicks: 40]
    In this tip, you will determine the installed look and feels on your platform. You will add the newly available GTK+ look and feel, and then create an application where you can change the look and feel with the click of a radio button. Finally, you will learn how to customize a cross-platform look and feel to give your application a look that is consistent with your branding.
    http://java.sun.com/developer/JDCTechTips/2004/tt0309.html#1 - Mar, 2004

[Top]

Tutorials:
  • Migrate your Swing application to SWT by Yannick Saillet   - [Clicks: 50]
    One of the reasons for the success of the Eclipse platform is the performance of its user interface compared to other Java applications. The SWT is a key contributor to that success. SWT allows you to build cross-platform user interfaces that are as rich as Swing UIs and that perform as well as native UIs, but the toolkit does have a drawback: SWT is not compatible with AWT and Swing. Java developer and Eclipse enthusiast Yannick Saillet offers this comprehensive, hands-on guide to porting a Swing application to SWT using extensive code samples to illustrate the techniques.
    [Formats: HTML, PDF, Zip]
    http://www-106.ibm.com/developerworks/java/edu/j-dw-java-swing2swt-i.html - Jan, 2004

[Top]