Skip to Content
Oracle and Open Source
book

Oracle and Open Source

by Andy Duncan, Sean Hull
April 2001
Intermediate to advanced
432 pages
13h 2m
English
O'Reilly Media, Inc.
Content preview from Oracle and Open Source

Java GUIs

Now that we’ve looked at the basics of the JDBC API, let’s do something interesting with GUI clients. Our goal is to figure out how Java works at this level, as well as to provide an example along the lines of the Wosql and OraExplain programs (see the discussion of Tcl/Tk and Perl/Tk, respectively, in Chapter 3). Most of the open source Java projects described in Chapter 8, also involve GUIs, so it will be helpful to look at how you can use Java to build such applications. First we’ll build a basic GUI, and then we’ll blend some JDBC into it so we will be able to connect to an Oracle database.

Java Swing

The quickest way to get going with a Java GUI is to use the Java Swing library. Java Swing is an extension of AWT, and these two GUI toolkits are intimately related:

AWT

AWT, the original Abstract Windowing Toolkit, comes with the standard JDK distribution. It handles simple graphics, widgets, and layout managers for different native formats.

Swing

Although it relies on AWT, Swing is entirely Java-based and covers a far more generalized and flexible set of GUI capabilities through its Java Foundation Classes (JFC). It used to come in a separate package from Java Version 1, but it’s now entirely integrated within the Java2-based JDKs.

The main web site for Java Swing is the Swing Connection, where you can find out about Swing and all of its many component GUI widgets:

http://java.sun.com/products/jfc/tsc/index.html

There are also many GUI builders available to help create ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Oracle Procure-to-Pay Guide

Oracle Procure-to-Pay Guide

Melanie Cameron
Oracle Database 12c Release 2 New Features

Oracle Database 12c Release 2 New Features

Bob Bryla, Robert G. Freeman
Oracle Security

Oracle Security

William Heney, Marlene Theriault

Publisher Resources

ISBN: 0596000189Catalog PageErrata