and downloaded the "Java SE 5.0 (Tiger) Tutorial", which is
tutorial-5.0.zip.
I double-clicked the zip to expand it. Inside the tutorial folder, I
navigated to:
tutorial/uiswing/14start/compile.html
You can open that page directly, or you can navigate to it in your
browser.
Start at:
tutorial/index.html
then click this sequence of links:
"Creating a GUI with JFC/Swing"
"Getting Started with Swing"
"Compiling and Runnin Swing Programs"
That page has an example HelloWorldSwing.java (link to supplied
source). When that file is compiled and run, it shows a simple
JFrame window with a simple text label inside it. It also quits the
program when you click its close widget. Read the source to see how
to open a window (the JFrame class).
There are many more examples (with source) in the uiswing section.
There is also a TOC (Table Of Contents) icon on every page. Click
TOC and you'll get a listing of all the major examples and lessons of
the JFC/Swing trail.
Since you have a PowerPC Mac running OS 10.4.11, you will be better
off using the downloaded Java 5 tutorial, rather than Sun's online
Java 6 tutorial.
Also, since you're using Terminal command-line tools, I assume you
know how to use the 'jar' command to put all the class-files into a
jar. If the jar has manifest with a Main-Class entry, it will make
the jar-file double-clickable from the Finder, which will then run
your program. Individual class files produced by the 'javac' command
will not launch from a double-click. Creating jars with manifests is
an important step on the way to making stand-alone applications.
If you don't know how to use the 'jar' command, read 'man jar', then
ask again if anything is still unclear.
And, no, I do not found anything in them that talks about OS API (X-
Platform).
I don't know what you mean. Java is a cross-platform language, so it
isn't going to talk about an "OS API", except those features that
Java provides on every platform, such as File or JFrame. A JFrame is
a JFrame on every platform's Java implementation, even when the
window decorations and behavior are different for each platform.
I'm not sure what you mean by "X-Platform". In US English, that
could be an abbreviation for "cross-platform", or you might mean "the
Mac OS X platform", or possibly even the X11 platform. If you mean
the Mac OS X platform, then no, there is no Java API for the Mac OS X
API.
If you want further help, you'll have to explain exactly what you
want to do.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden