Best Swing tutorial?

I've always wanted to get into Swing, but I have two left feet.
Okay, so in all seriousness I was wondering what you think the best Swing tutorial is? I'd prefer online to paper, but I'm open to any suggestions. As to what I want to do with Swing, I really can't say other than that I want to learn the basics. I've developed a lot of apps with user interfaces on the web and I want to try developing an app that doesn't require a web server or other overhead for a change.
So, who would you Swing with?

Hi everyone,
If you ask me i would say
If you ask me i would say sun's official swing
tutorial. But if you find a better one let me know as
well
Richard WestNow if only you were smart enough to see that he posted the question in the swing forum (and properly provided a link to it by the way), you would have perhaps been apt to answer him over there instead of here, you idiotic troll you.

Similar Messages

  • How to print the Swing Tutorial

    what's the best practise to print e.g. Creating a GUI With JFC/Swing tutorial ?
    Are the Sun Java Tutorials available in PDF format also ?

    opera02 wrote:
    what's the best practise to print e.g. Creating a GUI With JFC/Swing tutorial ?I think the best practise is to download the entire Java tutorial to your local disks so it can be consulted any time you want, complete with links and the browser ability to 'find' text in the pages.
    Or better still, create a build file that will stamp out the Java Tutorial as a Java Help document set. It is not only viewable, but easily searchable for keywords etc.
    The only thing I can see that makes the tutorial in any way printable, is that it apparently has a print stylesheet attached that hides the links on the left of the the page.
    Why kill more trees, over something that is better viewed using a browser or (the JavaHelp) HelpSet viewer?
    Edit 1:
    BTW - Welcome to the Sun forums.
    Edited by: AndrewThompson64 on Mar 6, 2010 2:30 AM

  • I have trouble with swing tutorial demos

    I 'm trying swing tutorial. I already have downloaded the IconDemo in zip format. Compilation and execution are Ok but the application hasn't show anyimage.
    I have done with other appplication about Icon image, and it occur the same. Can anybody help me?

    in IconDemoApp change this
    private String imagedir = "images/";
    to
    private String imagedir = "../images/";recompile/rerun

  • A question for the copyright for the swing tutorial

    Hello,
    I'm using (verbatim) the http://java.sun.com/docs/books/tutorial/uiswing/components/example-1dot4/ColorEditor.java from the swing tutorial that is from the same named book.
    What should i do in order to not violate the attached copyright?

    Mladen,
    With all due respect, Oracle is providing their software free for evaluation (otherwise playing around at home and letting companies play with it for 30 days to show how it womps on MS SQL et al.) purposes only. Their product is a commercial product and asking you to join OTN to download it, helps them enforce that individuals are using it for only these purposes. Allowing anonymous access means that they have no idea of where there software is going and what it is being used for. I dont know if you have priced out Oracle but if you have, I think you would come to the conclusion that it is a tad expensive to purchase, just for learning and throwing it on a resume. They are asking that you be accountable and responsible for upholding your end of the agreement and not using it in manners other than specified. I think that is a reasonable request for access to software of this caliber. You do not see MS giving away Dev Studio or MS SQL for the price of a little user information now do you.
    null

  • Where can I get the best guide(tutorial) on building a montage

    where can I get the best guide (tutorial)
    on building a montage in elements 10.
    I do not seem to explain myself correctly - sorry.
    My idea of a montage is to overlay one picture (or more) on top of another (background)
    Thanks

    See these Adobe video tutorials:
    http://tv.adobe.com/watch/learn-photoshop-elements-10/easily-create-a-photo-collage-effect /
    http://tv.adobe.com/watch/learn-photoshop-elements-9/creating-a-photo-collage/
    Ken

  • Swing Tutorial - ProgressMonitors

    I was looking at the java examples on the Swing Tutorial examples in regard to using ProgressMonitors, and I was wondering whether the variables that are being modified (i.e. task in this case), whether they should be set as volatile, since wouldn't they be altered in different threads?
    thread 1:
    keeps altering the value of where the progress bar should be.
    thread 2:
    using the cached version of this value (since not volatile), not realising that it is updating, and so the status bar stays in the same location?
    Can anyone clear this up please? Am I just very confused?
    Many thanks,
    Edward

    Looking at the examples (ProgressBarDemo.java) at http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html, it looks like neither ProgressBarDemo.java or LongTask.java are using volatile. They're not even declaring their methods synchronized. I don't think it matters, as long as only one thread will ever be writing the variable value. If the progress bar thread reads it at the wrong time, it will just get the old value of the variable, right before it is updated by the task thread.
    I don't think you need to worry about volatility unless both threads are working on the same variable in the same scope. For instance, if you progress bar thread is calling a getProgressValue() type method on a task object (as in the tutorial code), the value will be returned fresh from the method, and will not be cached. However, if your task thread is writing a progress value directly into the scope of the progress bar thread, your progress bar thread might not get the new value unless the value is declared volatile.
    That's just my take after Googling "java volatile" and reading a bit on it. I've never had to use the volatile keyword before. I think generally it is better to avoid situations where you would have to use it. For instance, make the progress bar thread retrieve the value through a method call from the task object, as in the example.
    Nick

  • What is the best online tutorial to learn about iphone5?

    I'm looking for the best online tutorial to learn my new iphone5.  I've never used a smartphone before.  I don't see an online tutorial on Apple site or Verizon.

    iPhone User Guide (For iOS 6 Software)
    iPhone 5 Finger Tips - Quick Start Guide

  • Code from swing tutorial

    hi this is code from sun's swing tutorial (http://java.sun.com/docs/books/tutorial/uiswing/learn/example1.html )
    import javax.swing.*;       
    public class HelloWorldSwing
    private static void createAndShowGUI()    // why it is private ??
            JFrame.setDefaultLookAndFeelDecorated(true);
            JFrame frame = new JFrame("HelloWorldSwing");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JLabel label = new JLabel("Hello World");
            frame.getContentPane().add(label);
            frame.pack();
            frame.setVisible(true);
       public static void main(String[] args) {
                 javax.swing.SwingUtilities.invokeLater(new Runnable()  // what does this snippet doing ?
                public void run()
                    createAndShowGUI();
    }i have question on this code. i have put my question in the comment . in the tutorial they are advising to " Be thread safe ...what it means ?
    can anybody explain my questions ( commentation + bold letter) ?
    thanks

    i have seen swing codes which dont use threads
    like above . does it mean they are not safe ?
    what do you mean by safe ? ...does it mean program
    can crash at any time if i dont include that
    snippet ? will you be explicit in a simpler way.It is extremely unlikely that doing the following is unsafe:
    //in main thread:
    frame.pack();
    frame.setVisible(true); //unsafe?But there's no guarantee! And by unsafe, the authors mean that undefined behavior can result --
    your GUI could do anything it wanted! That being said, it's extremely unlikely that anything bad
    would result in this example -- it's too simple. I do remember someone posting once that they
    finally tracked an intermittent bug in their app to just this!
    What I do, if I'm being safe/paranoid is call a utility method I've written, instead of calling setVisible
    in the above code:
    public static void postVisible(final JFrame f, final boolean state) {
        Runnable r = new Runnable() {
            public void run() {
                f.setVisible(state);
        SwingUtilities.invokeLater(r);
    }Problem solved!
    >
    second question was why the method was private
    static......why not public static ?(if you really
    want to make it static !!)1. Since they never instantiate HelloWorldSwing, the method had better be static.
    2. Methods should have the most restrictive scope possible. Since this is the "main" class
    that launches its own GUI, no other class needs to see createAndShowGUI, so it is private.

  • What happened to the Swing Tutorial?

    How should one be able to launch the Java Web Start demos, if they require 6 (which is beta...). Should one be forced to install a beta version of software to browse a website? Dude, bring it back to 1.5.x or make the 6 the official (and easily installable) JRE, that is, people should be able to install it @ http://www.java.com (still installing 1.5.07 or something).

    Here is a copy of an email I sent:
    URGENT: A link to the Java Swing Tutorial 1.5 please!!! (and a link to the swing tutorial1.4 too!)
    The only version of the Java Swing Tutorial currently available is 1.6. Do you realise how HUGE a problem this is? I, and most others I assume, refuse to install a beta version of the JRE just to learn swing. This renders the swing tutorial next to USELESS for 99% of the people. Worse than useless, this situation is potentially very damaging to the future of Java as a whole.
    The problem is not simply that the Java Webstart demos will not run, it is that it is far too early to expect developers to be implementing new java 1.6 features, yet newbies will think that these features are the status quo, and in result will produce software that will not run on 99% of machines, at least until java 1.6 becomes an official release (which is when??). Swing is an immensely important part of Java application development and I'd guess that up to half of all Java programmers consult the Swing Tutorial frequently.
    Mac OS still uses JRE 1.4 by default. Macs might be only used by less than 5% of all users, but for certain applications (such as multimedia, music and graphics), Macs have a significant market share.
    I can't imagine this is difficult problem to fix. Simply supply a link to swing tutorials 1.5 and 1.6 at the swing tutorial homepage. I'd also recommend encouraging newbies to use the swing 1.5 tutorial at this stage.
    I have invested a large amount of time and energy using and learning Java in the hope that one day it might become the standard programming language for desktop applications. Oversights like this, make me worry about Java's future and make me consider jumping ship.
    as a side note: do you think you have a better chance of your email being read if the subject is titled 'technical error', 'general message', or 'compliment' ?

  • Free Swing Tutorial available?

    I am looking for a free Swing tutorial or ebook. It should be for offline reading.

    The java tutorial is good. You can also get http://www.spindoczine.com/sbe/ book for free.

  • Swing Tutorial for Java version 1.4.2

    Hi all, where the subject can be found?
    Current tutorial for Swing that is present on site http://java.sun.com/docs/books/tutorial/uiswing/
    is for Java 6 only.
    I am particularly interested in filtering JTable.
    Thanks in advance.

    Here is a link to the 1.5 tutorial which I believe is the same as the 1.4.2 tutorial:
    https://www.cs.auckland.ac.nz/references/java/java1.5/tutorial/uiswing/TOC.html

  • HTML in Swing Tutorial/Help

    I'm looking for a tutorial or just help here on how to display an HTML file in a swing component.

    http://java.sun.com/docs/books/tutorial/uiswing/components/editorpane.html
    These components won't be able to display anything but the most basic HTML page. I've seen better components out there (you will have to search).
    When I needed to do this, I used the browser itself. I had an applet in one frame which sent html to the other frame via javascript.

  • Need a help for finding best online tutorial site

    Could you please post some best PLSQL online tutorial site .
    Advance thanks to all of you.

    Please check this site
    Always good to refer oracle official site for reference.
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/toc.htm
    ~Lokanath

  • What is the "best" swing book or e-book?

    I am looking for a good book that will teach me the basics of creating simple swing GUI's. I want the book to have good examples and not move too fast, as well as give a detailed explanation of what's going on. I am familiar with basic java so I want a book that only covers swing concepts.
    What swing books have you read and were they good? Please suggest any books and why you suggest them.
    Thank You for your time.

    its true that there is nothing better than the JAVA TUTORIALS but for examples
    you can go to [JAVA2s|http://www.java2s.com/Tutorial/Java/0240__Swing/Catalog0240__Swing.htm] swing section which is a good place to have examples that will clear your idea/concepts
    but prefer SUN tutorial as first place to start.

  • What is the best Flash Tutorial?

    I am looking for the best beginning flash tutorial.  Any suggestions?
    Regards, Tom Ashworth
    Tom Ashworth Real Estate

    Hello Tom,
    I find the tutorials at designprovideo.com simply fantastic! It's like having someone there with you, walking you through the software. I started with Photoshop and have since moved on to the beginner tutorial for Flash CS4 101:
    http://designprovideo.com/tutorial/flashcs4101
    I was finding Flash very intimidating. Now I am feeling more comfortable with the basics after watching the first 50 videos. I especially appreciate the way the training is organized into bite sized chunks and the trainers do not assume knowledge like in other tutorials I have seen.
    Best
    Samantha

Maybe you are looking for

  • How can I add a two second pause to the beginning of each slide?

    Hello, I have a project with TTS and perfectly aligned CC notes - 64 slides.  Now the customer would like for there be a two-second pause before the audio begins on each slide in order to allow the user to first become oriented with the slide.  Is th

  • I need to deauthorize all 5 of my authorized computers

    i recently restored my computer and i wanted to connect my ipod touch into it. when i clicked transfer purchases it said you need to authorize it. so when i went to authorize it it said you already authorized 5 out of 5 computers and.. i only have 2

  • Business system not known to SRM

    Hi, We are able to send and xml PO to SRM server, but we are getting ABAP Application error in the pipeline service of the IE of SRM. In SXMB_MONI in SRM: Under Trace: <CONTROLLER /> <FAULT_TEXT>An error occured within an XI interface: SLD system QA2

  • Loader disabling HTML links on page

    I've designed a slide show player using Actionscript 3.0 which loads several external images. While the images are loading, the HTML links on my page (outside of the Flash movie) don't work. As soon as all the images are loaded, the links start worki

  • Emptying a Binary Tree

    Hello, The problem I'm having is how to empty a binary tree. Here is my code for MyBinaryTree: public class MyBinaryTree implements BinaryTree {    private BinaryTreeNode root;    protected static int numNodes;    private static String tree = "";