Thinking in Java

I am wondering if there is anyplace where i can download code which is good OOP oriented, and that can help me in my transition to thinking in Java. I understand what objects are, just need a bit of help in turning it into code. A program perhaps that is a little larger than what is usually found in the tutorials.
thanks,
tony

Lokk at Code Samples & Applications and BluePrints links on the left side of java.sun.com

Similar Messages

  • HT1338 i think my java is not working properly what do i do

    i think my java is not working properly what do i do

    Java 7 updated  for 10.7-10.8
    Released Feb 1, 2013,  fixes 50+ security flaws
    http://www.esecurityplanet.com/patches/oracle-responds-to-java-security-flaws-wi th-50-fixes.html
    Download and install
    https://www.java.com/en/download/faq/java_mac.xml
    For Java versions 6 and below OS X 10.5-10.6 machines
    Apple supplies their own version of Java. For Mac OS X 10.6 and below, use the Software Update feature available under the Apple menu to check that you have the most up-to-date version of Java 6 for your Mac.
    https://www.java.com/en/download/faq/java_6.xml
    Java SE 6 End of Public Updates
    After February 2013, Oracle will no longer post updates of Java SE 6 to its public download sites. We highly recommend downloading and installing Java 7.
    If your considering upgrading OS X from 10.6.8 to 10.8 via AppStore to run Java 7
    Be forewarned no PowerPC based programs or driver software will run any longer.
    Check here BEFORE you upgrade OS X!
    http://roaringapps.com/apps:table
    Alternatives if you must run Java 7
    If Apple disabled Java 6 in 10.6, and you can't upgrade OS X to 10.8, then your pretty much done with Java in OS X because Oracle won't issue updates for Java 6 anymore.
    However you can install Windows 7 and continue to use Java 7+ there until support for Windows 7 ends in 2020.
    Windows in BootCamp or Virtual Machine?
    If your on 10.6, I very highly recommend the free Virtualbox for the virtual machine software as it gets updates, VMFusion and Parallels have moved on with only 10.7+

  • Help with 'Thinking in Java' excercise

    Have been working through the excelent Thinking in Java book (free download from www.bruceeckel.com) but cant understand one of the excercises from chapter 6. The question is:-
    " Create two classes, A and B, with default constructors (empty argument lists) that announce themselves. Inherit a new class called C from A, and create a member of class B inside C. Do not create a constructor for C. Create an object of class C and observe the results."
    I'me OK with all this apart from the "and create a member of class B inside C", I dont understand what this means. Is member the same as object, in whitch case douse it mean create a object of class B in C?
    Ben

    Sounds like a private data member:
    public class A
        public static void main(String [] args)
            C c = new C();
        public A() { System.out.println("Created an A");
    class B
        public B() { System.out.println("Created a B");
    class C extends A
        private B b;

  • Static import from SE5 (Ex 16 on p. 91 in Thinking in Java Edn 4 by Eckel)

    The following line of code is underlined:
    import static net.mindview.util.Print.*;with this error displayed:
    static import declarations are not supported in -source 1.4
    (try -source 1.5 to enable static import declarations).
    My Path variable contains these:
    C:\Program Files\Java\jdk1.6.0\bin;C:\Program Files\Java\jre1.6.0\bin;D:\java\TIJ4\code
    D:\java\TIJ4\code is the root folder for net.mindview.util.Print.
    JRE1.6 and JDK1.6 are installed.
    I also have:
    i.e. a dot, in my CLASSPATH variable.
    This is from the 4th edn of Thinking in Java by Bruce Eckel. If you are or have been through this stuff I would really appreciate it if we could meet on Skype every now and then to talk about issues like the one described above.
    Thanks for your help,
    b

    Now same code is underlined:
    import static net.mindview.util.Print.*;but with this error message:
    package net.mindview.util does not exist
    However it is mapped like this:
    D:\java\TIJ4\code\net\mindview etc..
    So, I have put this in to the Path variable:
    D:\java\TIJ4\code because it is the root folder of net.mindview.util.
    Is there something else I should do? Is is ok to have a non C directory in the Path variable?
    Thanks for any help,
    B

  • Exercise 8, Ch Access Control from Thinking  in Java

    I am learning java using Bruce Eckel book "Thinking in Java" 4th edition and I got stuck on one exercise:
    .. create a class called ConnectionManager that manages a fixed array of Connection objects. The client programmer must not be able to explicitely cteate Connection objects, but can only get them via a static method in ConnectionManager. When the ConnectionManager runs out of objects, it returns a null reference."
    So, as I understand client programmer should be able to use Connection object meaning the class is public, but cannot create one. Creating Connection objects is granted only to ConnectionManager. How to permit creating objects only to an object of certain type?
    serezha.

    Hi Peter,
    the point to look at is the Product Availability Matrix under service.sap.com/pam
    There max NW 7.0 EHP1 is supported for the java platform.
    Only thing you could do is to open an OSS message to clarify if and when it will be supported.
    Best,
    Frank

  • Every thing is object?(thinking in java)

    every thing is object.(thinking in java)
    then int and float?
    Does java is a complete OO language

    Hi!
    it is nice question..
    int, float, double, char, ...all are data types as they are in C++.But in Java one can also find wrapper classes(Objects) for these all data types like Integer, Float, Double, etc..so by this one can treat "java as Fully Object Oriented Programming...isn't it.??

  • Thinking in Java  Bruce Eckel

    I am learning Java by the book Thinking in Java Bruce Eckel.There are solutions after every chapter.I need solutions of the tasks from third chapter and so on.If someone has it please let me know.

    So, in other words, you want help in stealing[i]
    the answers?
    Well, one should not steal. But I think it's very lame
    of a book to sell the answers to questions written in
    the book. Shame on the author :)
    /Kaj
    Its probably to encourage you to buy the book!

  • What do you think of Java 2 Micro Edition?

    Hi,
    I would like to know, if anyone used the J2ME, and if so, what do you think of it. I am thinking of designing a middleware for mobile devices such as PDA, and I would like to know your thoughts on it.
    Thanks
    Neil

    I haven't used it yet, I am reading about it. I am not sure if you have seen this link:
    http://java.sun.com/products/cldc/
    Good Luck.

  • What do you think of Java applets?

    What do you recommend for Java applets?

    georgemc wrote:
    DrLaszloJamf wrote:
    sabre150 wrote:
    What do you recommend for Java applets?A dustbin.
    http://forum.java.sun.com/thread.jspa?threadID=764962&start=0&tstart=0
    <drum-roll/>
    <cymbal-crash/>throws ThreadResurrectionExceptionWoops. It takes me a long time to set up my drum kit?
    Actually, I was looking at the OP's Recent Message list to see if his most recent post was related to an earlier one.

  • Any one who has read chap15 of Thinking in JAVA,2nd Ed. please take a look.

    I'm testing the RMI example in chap15.When I run the PerfectTime class I always get an error message(xuke is my computer's name,and I've already conncetted to the ISP and started the registry server and produced the stub&skeleton classes as the book said):
    java.security.AccessControlException: access denied (java.net.SocketPermission xuke resolve)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:267)
         at java.security.AccessController.checkPermission(AccessController.java:394)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:540)
         at java.lang.SecurityManager.checkConnect(SecurityManager.java:1037)
         at java.net.InetAddress.getAllByName0(InetAddress.java:554)
         at java.net.InetAddress.getAllByName0(InetAddress.java:535)
         at java.net.InetAddress.getByName(InetAddress.java:444)
         at java.net.Socket.<init>(Socket.java:95)
         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:20)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:115)
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:494)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:169)
         at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)
         at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
         at java.rmi.Naming.bind(Naming.java:106)
         at PerfectTime.main(PerfectTime.java:31)
    Exception in thread "main" Process terminated with exit code 1

    Use a policy file, in which you grant acees permissions, when starting your applicaiton:
    grant {
    permission java.net.SocketPermission "*:1024-65535", "connect,resolve";
    permission java.net.SocketPermission "*:80-65535", "connect,accept";
    Here you have more details:
    http://java.sun.com/docs/books/tutorial/rmi/running.html

  • How many of you think that Java 3............

    will be made so that it can still remain portable, but if the creator wants it, they can compile the .class file into a .exe, or something like that? I want to know because I want to create stand alone applications, so after I learn java if I should switch to C++.

    You could also just give people the JRE along with your java as current installable Java programs do.
    There are also many topics in the forums which discuss programs which can make an .exe from Java. The question has been asked so many times, that you will probably find many results on a search.
    I do agree that a simple thing from Sun would be good. If they could make some type of official installer that you could give to people which would look for the JRE and install one if not there along with your program so you could distribute it to people who are not too familiar with installing Java.

  • Bruce Eckel - Thinking in Java - VendingMachine

    Hello,
    I am working through TIJ right now and have reached the Chapter with Enumerations. I try to do all of the exercises but I seem to be stuck at Exercise 10 (Vending Machine).
    He basically shows the state design pattern and gives a Vending Machine as an example. The states are represented by an inner enumeration class and these in turn access static private variables of the Vending Machine. Because of this construction there can only be one VendingMachine. (Actually everything is static, so there is no instance of VendingMachine at all).
    In the respective exercise he says use an EnumMap to have multiple instances of VendingMachine. (the exercise is on page 1047 of the Fourth Edition).
    I have been thinking about this for a couple of hours now and I can't figure out the way he wants me to go. I would really appreciate a hint or two from someone who has the book. Unfortunately there is no Solution Guide available to the forth Ediiton so far.
    Thank you very much.
    Volkmar

    fearme69,
    (Never trust anyone who says "Trust me". Trust me on that.)
    That sounds like an interesting problem, but, like quickmick, I don't really understand what you're trying to do, or which "bit" your stuck on.
    Yeah, Post the exercise question (or maybe find a link to it), and post whatever you've tried.
    Actually everything is static, so there is no
    instance of VendingMachine at all. In the
    respective exercise he says use an EnumMap to
    have multiple instances of VendingMachine.and I just read the intro section of the EnumMAP Tiger API, and had a quick look at this EnumMap example
    When you say "everything is static" I presume you mean that all class variables & methods are static... but that the class is not abstract... so it can actaully be instantiated, but it doesn't make a ship load of sense to do so...
    Hmmm... Except look at the example above... it's not actually instantiating an AntStatus (or any constant values therein), so maybe you just do it the obvious way... suck it and see.
    Other than that just forget it and move on... write it off to the fact that Bruce can afford a better class of drugs than us mere peasants.
    keith.

  • New to Java...Tough program to write I think...

    Alright, I have a problem. I have never coded in java before, but a teacher wants a program written that is too much for html/php/VB to handel, and a friend suggestion I use java.
    my problem is that I have never coded in Java before, but supposidly because its object oriented, the language should make the program easier to write.
    The program is a "Group Generator"
    Anyway, here is what the teacher wants:
    Step 1) Program Asks user how many students are in his class, and how many students he wants in each group
    Step 2) Program Asks user the names of all X students
    Step 3) Program makes a list of every combination of groups that can be made out of these X people (never repeating 2 people in a group)
    Step 4) Program outputs results
    Here is a quick example because I know its confusing
    10 kids in my class, groups of 2
    Group Set 1:
    1: AB
    2: CD
    3: EF
    4: GH
    5: IJ
    Group Set 2:
    1: AC
    2: BD
    3: GF
    4: IH
    5: EJ
    and the program would keep finding sets of unique grounds...but A will never be grouped with B again, or C again...so the ammount of group sets is actually quite low.
    Anway, this isnt for a grade or anything, its just something some teacher wants and I think would help teachers a bit in forming unique grounds of kids....
    Any input or ideas would be GREATLY appriciated :-)

    Alright, I have a problem. I have never coded in java
    before, but a teacher wants a program written that is
    too much for html/php/VB to handel, and a friend
    suggestion I use java.HTML is markup, so it won't be of much use. However, PHP, VB, and a host of other languages can handle this easily. Write it using the language with which you are comfortable.
    If you want to learn Java, however, here are some good resources...
    Your First Cup of Java - http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
    Essentials, Part 1, Lesson 1: Compiling & Running a Simple Program - http://java.sun.com/developer/onlineTraining/Programming/BasicJava1/compile.html
    The Java Tutorial - A practical guide for programmers - http://java.sun.com/docs/books/tutorial/
    New to Java Center - http://java.sun.com/learning/new2java/index.html
    How To Think Like A Computer Scientist - http://www.ibiblio.org/obp/thinkCSjav/
    Introduction to Computer Science using Java - http://chortle.ccsu.ctstateu.edu/CS151/cs151java.html
    The Java Developers Almanac 1.4 - http://javaalmanac.com/
    JavaRanch: a friendly place for Java greenhorns - http://www.javaranch.com/
    jGuru - http://www.jguru.com
    Object-Oriented Programming Concepts - http://java.sun.com/docs/books/tutorial/java/concepts/
    Object-oriented language basics - http://www.javaworld.com/javaworld/jw-04-2001/jw-0406-java101.html
    Don't Fear the OOP - http://sepwww.stanford.edu/sep/josman/oop/oop1.htm
    Books:
    Bert Bates and Kathy Sierra's Head First Java - http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance
    Bruce Eckel's Thinking in Java (Free online) - http://mindview.net/Books/DownloadSites
    Joshua Bloch's Effective Java - http://www.amazon.co.uk/exec/obidos/Author=Bloch,%20Josh
    Java Design: Building Better Apps and Applets (2nd Edition) - http://www.amazon.com/exec/obidos/tg/detail/-/0139111816/qid=1101309882/sr=8-7/ref=sr_8_xs_ap_i7_xgl14/104-6417153-1511164?v=glance&s=books&n=507846

  • OutOfMemory error in java.awt.image.DataBufferInt. init

    We have an applet application that performs Print Preview of the images in the canvas. The images are like a network of entities (it has pictures of the entities involve (let's say Person) and how it links to other entities). We are using IE to launch the applet.
    We set min heap space to 128MB, JVM max heap space to 256MB, java plugin max heap space to 256MB using the Control Panel > Java.
    When the canvas width is about 54860 and height is 1644 and perform Print Preview, it thows an OutOfMemoryError in java.awt.image.DataBufferInt.<int>, hence, the Print Preview page is not shown. The complete stack trace (and logs) is as follows:
    Width: 54860 H: 1644
    Max heap: 254 # using Runtime.getRuntime().maxMemory()
    javaplugin.maxHeapSize: 256M # using System.getProperties("javaplugin.maxHeapSize")
    n page x n page : 1x1
    Exception in thread "AWT-EventQueue-2" java.lang.OutOfMemoryError: Java heap space
         at java.awt.image.DataBufferInt.<init>(Unknown Source)
         at java.awt.image.Raster.createPackedRaster(Unknown Source)
         at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
         at java.awt.image.BufferedImage.<init>(Unknown Source)
         at com.azeus.gdi.chart.GDIChart.preparePreview(GDIChart.java:731)
         at com.azeus.gdi.chart.GDIChart.getPreview(GDIChart.java:893)
         at com.azeus.gdi.ui.GDIUserInterface.printPreviewOp(GDIUserInterface.java:1526)
         at com.azeus.gdi.ui.GDIUserInterface$21.actionPerformed(GDIUserInterface.java:1438)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at javax.swing.JComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Drilling down the cause of the problem. The OutOfMemory occurred in the constructor of DataBufferInt when it tried to create an int array:
    public DataBufferInt(int size) {
    super(STABLE, TYPE_INT, size);
    data = new int[size]; # this part produce out of memory error when size = width X height
    bankdata = new int[1][];
    bankdata[0] = data;
    The OutOfMemory error occurred when size is width * height (54860 X 1644) which is 90,189,840 bytes (~86MB).
    I can replicate the OutOfMemory error when initiating an int array using a test class when it uses the default max heap space but if I increase the heap space to 256MB, it cannot be replicated in the test class.
    Using a smaller width and height with product not exceeding 64MB, the applet can perform Print Preview successfully.
    Given this, I think the java applet is not using the value assigned in javaplugin.maxHeapSize to set the max heap space, hence, it still uses the default max heap size and throws OutOfMemory in int array when size exceeds the default max heap space which is 64MB.
    For additional information, below is some of the java properties (when press S in java applet console):
    browser = sun.plugin
    browser.vendor = Sun Microsystems, Inc.
    browser.version = 1.1
    java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob = sun.awt.windows.WPrinterJob
    java.class.path = C:\PROGRA~1\Java\jre6\classes
    java.class.version = 50.0
    java.class.version.applet = true
    java.runtime.name = Java(TM) SE Runtime Environment
    java.runtime.version = 1.6.0_17-b04
    java.specification.version = 1.6
    java.vendor.applet = true
    java.version = 1.6.0_17
    java.version.applet = true
    javaplugin.maxHeapSpace = 256M
    javaplugin.nodotversion = 160_17
    javaplugin.version = 1.6.0_17
    javaplugin.vm.options = -Xms128M -Djavaplugin.maxHeapSpace=256M -Xmx256m -Xms128M
    javawebstart.version = javaws-1.6.0_17
    Kindly advise if this is a bug in JRE or wrong setting. If wrong setting, please advise on the proper way to set the heap space to prevent OutOfMemory in initializing int array.
    Thanks a lot.
    Edited by: rei_xanther on Jun 28, 2010 12:01 AM
    Edited by: rei_xanther on Jun 28, 2010 12:37 AM

    rei_xanther wrote:
    ..But the maximum value of the int data type is 2,147,483,647. That is the maximum positive integer value that can be stored in (the 4 bytes of) a signed int, but..
    ..The value that I passed in the int array size is only 90,189,840...its only connection with RAM is that each int requires 4 bytes of memory to hold it.
    new int[size] -- size is 90,189,840Sure. So the number of bytes required to hold those 90,189,840 ints is 360,759,360.
    I assumed that one element in the int array is 1 byte. ..Your assumption is wrong. How could it be possible to store 32 bits (4 bytes) in 8 bits (1 byte)? (a)
    a) Short of some clever compression algorithm applied to the data.

  • Im Trying To Learn Java :o(

    Hey All,
    I have decided to get my mind active and randomly learn Java. I say randomly because i am going to be a student again in IT but i like the kinda 3D side and modelling and nice pictures and flash actionscript lol not all this stuff.
    Anways i would just start by saying that Java offends me massivly, i know something happened with M$ and Sun and ever since then all i have had with the sun download is problem after problem and crashing and all iw as tryin to do was play some Jippii games. This aint a recent problem, it always happens and i must have reformatted xp around 7 times. So i stay away from applets!!!
    Anyways in 2002 when i started learning Flash it was because i seen a site i liked and wanted to do that. The equivelent is kinda like me saying "OK GUYS I HAVE JAVA NOW HOW DO I MAKE DOOM" anyways 2 and a half years later im happy with what i can do and have used alot of different apps and learned alot from 3dsmax to aftereffects etc.
    Anyways my goal out of this whole Java thing is to make a game like one i used to play when i was younger on the Amiga 500. No where has this game and a modern one would be great to play. The graphics suck but the physics were really nice.
    So my questions are:
    1) Java. Ok im going to be honest, i know nothing about Java, i dont even know if it can do what i want and what i really dont want is to spend a while learning this to be stuck with no effects for my game, ie are small particle effects possible in Java? I know Java is pretty slow for a proper language compared to C/C++ but how slow? Can you shift a hundred particles around the screen and still add physics in the background?
    2) Java. The whole thing confuses me massivly. Im not a big posting person as i tend to prefer searching but i dont even know where to begin. I will bite the bullet and say i aint going to have alot of problems with the syntax of the language itself. It all looks kinda how i expect it, obviously i dont mean i aint gonna have problems and lot of them but it is not REALLY alien to me to look at a bit code. At the same time it is. I need to know alot of stuff, things that the 2 ebooks i have just ignored. For example, when i compile something, i thought that meant it compiled to the EXE but infact it turned my "heyworld.java" into a "heyworld.class" file. This just makes no sense to me atall because i HATE command line stuff, i see it as reinventing the wheel so im trying to follow through on first of all netbeans (an that went off almost instantly) and a free one that got my hey world to work (well, class). I need to know if a compiler dont make a exe then whats the class for and what exactly is a class file. You know just stuff like that? Does anyone know i kinda dictionary so to speak? baby talk i mean, so far all i seem to get is explainations with words i dont understand.
    3) How difficult is it to make a 2D game in Java? To make this plainer, i aint having an applet run somewhere, i want a nice downloadable exe. Of course i will need to start at the beginning but i mean to get a ship on the screen with keys to move it and a "cave" roof to crash into, is this going to take a long long long time to get to that stage? You see, as i said before unless after a few days i have a object on screen to work with, i just get too bored to continue. for example "the object of this is to make a red circle move across the screen" REALLY interests me where as "today we are going to make a mock system for a small business user" sends me back to 3Dmax and the lighting i was reading about lol I tend to look at a piece of code and be devestated by its complexity then try and make it make sense over time. Is this possible with Java? It does work for me this, i was picking apart a isometric code in actionscript before i knew what a tween was.
    4) Theres so many different J*** J"EE things floating around that i dont actually know what one i am meant to use? I got 1.4.2 i think but thats all i know. Id like any other things that helped yourselfs start off in Java?
    Sorry to go into a bit detail here, its just that with this degree im starting, it soon branches off into 2 groups. Programmers and Designers. I feel i know the design side well enough to make a comparison but it would be rude to leave this side of the things out and write it off without atleast giving it a shot.
    Thank you very much for your time :o)
    Kind regards,
    Clarky.

    If you want an idea of what's possible with Java, do a google search for "java games" or something like that. I've seen occasional postings of what are supposed to be pretty cool games that have been written in Java, but I'm not into games, so I've never bothered to check 'em out personally.
    As to whether you can do it, well, you'll have to figure that out. Learning Java well enough to create a video game is not a trivial task. I don't just mean the syntax of the language, I mean the many APIs you'll be using, concepts like multithreading and exception handling, good OO principles, etc. Without a good handle on that stuff, your code will quickly turn into a morass that will be difficult to enhance, maintain, or debug.
    I suspect that the code to make a particular graphical event occur will be more verbose and complex in Java than in ActionScript, given that Java is a general purpose language and AS is more geared to GUIs. Nonetheless, I'm sure there are APIs out there (some free, some not) that will provide some higher level constructs than the core APIs to make some of that easier. You'll still be operating in the idiom of a general programming language though.
    There may also be a hybrid solution available--where you use Java to express the game logic and another language to express the graphics. I don't know anything about this kind of stuff though, so that's just speculation.
    You may get more precise advice in the GUI Building forums on http://forum.java.sun.com/ than here.
    Here are some resources to get you started on Java in general.
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.

Maybe you are looking for

  • How can I completely wipe the hard drive with out the Mac OS X disc? I don't need any of the info on the computer.

    How can I completely wipe the hard drive with out the Mac OS X disc? I don't need any of the info on the computer.

  • How to use EJB 3.0 in Visual Pack Web ?

    Hello everybody ! is there someone who can explain me how to bind a TABLE component visually with a particular business method of an EJB.3.0 (in Netbeens 5.5 / Visual Web Pack) -Is there a way to do the same thing as we can do it in Sun Java Studio C

  • Adobe Reader X Printing Problem

    I upgraded to 'X', am running Windows XP and have an HP LaserJet 4100N printer. I mostly print out sets of loan documents, average 100 pages per set, mixed legal and letter size pages. When I upgraded to Adobe Reader X, legal size pages were randomly

  • Profile editor out of Beta?

    Hi Question for Chan (please) The Camera Profiles are now out from beta and released with ACR 5.2 and DNG converter 5.2. That's OK! The Profile Editor is out of beta too? I noticed the DNG profiles and editor link is not show on labs site main page l

  • One song, two albums?

    Hi all, Just ran out of space on my iPod. Again. I have countless double-ups in my library though: "Bohemian Rhapsody - Queen" from their compilation album "Absolute Greatest" "Bohemian Rhapsody - Queen" from their album "A Night At The Opera" I was