Java-GNOME 2.6 GNOME Tutorial

Jeffrey Morgan

The Java-GNOME Project

          
        

This tutorial is an introduction to the Java bindings for the GNOME desktop environment. The intended audience is a developer that wants to develop a GNOME application in Java. This tutorial does not cover the JNI interface deployed by the project.


Table of Contents
Credits and Copyrights
1. Introduction
2. Let's Get Started
2.1. My First GNOME Application
2.1.1. GTK+
2.1.2. GNOME
2.1.3. Explanation of the code
3. Adding Menus
3.1. Event Handling
3.2. Adding menus to our example
4. Toolbars and Statusbars
4.1. Toolbars
4.2. Statusbars
5. Layout Management
5.1. Boxes
5.2. Tables
5.3. Using Layout Managers
5.3.1. Box
5.3.2. Table
6. Containers
6.1. Alignment
6.2. Frame
6.3. AspectFrame
6.4. Paned
6.5. ScrolledWindow
6.6. Notebook
6.7. ButtonBox
7. Non-Visual Classes
7.1. Config
7.2. Sound
7.3. Url
8. The Widgets
8.1. Gtk Entry
8.2. CheckButton
8.3. Label
8.4. ComboBox
8.5. DateEdit
8.6. About
8.7. TreeView
8.8. TextView
List of Tables
3-1. UIInfo
3-2. GnomeUIInfoType
3-3. GnomeUIPixmapType
5-1. AttachOptions
6-1. ShadowType
List of Figures
5-1. A 2 X 2 table grid
List of Examples
2-1. First.java
2-2. Program.initGnomeUI()
2-3. App constructor
2-4. Widget.show()
2-5. Gtk.main()
3-1. Second.java - first take
3-2. Second.java - second take
3-3. second.dat
4-1. Third.java - first take
4-2. Third.java - second take
5-1. Fourth.java - variable declaration
5-2. Fourth.java - constructor
5-3. Fourth.java - createView()
5-4. Fourth.java - buildBoxPage()
5-5. Fourth.java - buildBoxPage()
6-1. Alignment.java - Alignment
6-2. TestGTK.java - Frame
6-3. aspectframe.java - AspectFrame
6-4. Paned.java - Paned
6-5. TestGTK.java - ScrolledWindow
6-6. Notebook.java - Notebook
6-7. TestGTK.java - ButtonBox
7-1. WriteConfig.java - Config
7-2. ReadConfig.java - Config
7-3. Sound.java - Sound
7-4. UrlTest.java - Url
8-1. EntryDemo.java - Gtk Entry
8-2. CheckButtonExample.java - CheckButton
8-3. Label with Markup