Solved

Building Swing GUIs with an IDE

Posted on 2004-10-28
224 Views
Last Modified: 2011-09-20
Hello,

I'm having trouble finding some good tutorials on building GUIs with an IDE; I'm currently using NetBeans but their tutorials are too simple for what I need. I'm not very interested in coding everything, I'd prefer the IDE to do some work for me as I'm only using Java for building the interface for a Prolog program. Can anyone post some good tutorials on, say, building Swing applications with Netbeans/JBuilder/any other?

Thanx in advance! :)
0
Question by:bass20
    13 Comments
     
    LVL 37

    Expert Comment

    by:zzynx
    >> I'm currently using NetBeans but their tutorials are too simple for what I need.
    Nevertheless the tutorial http://www.netbeans.org/kb/articles/form_getstart36.html is all you need. Just extrapolate.
    0
     
    LVL 1

    Author Comment

    by:bass20
    I already went through that tutorial, I wanted something that would cover some more Swing classes...
    0
     
    LVL 37

    Assisted Solution

    by:zzynx
    All the classes you need are available in netBeans From Editor
    Maybe this helps: http://java.sun.com/docs/books/tutorial/uiswing/
    0
     
    LVL 1

    Author Comment

    by:bass20
    I have all the JAva documentation on my computer, that's not what I'm looking for...
    0
     

    Accepted Solution

    by:
    I am unsure of how many Java IDE's you have used, but the most they will generally do for you is let you lay out elements (clearly add the code for them) and create stubs for actions on those elements.   I don't know exactly how much work you would like them to do for you but I don't think you will find what you want.  There is no IDE for Java that I know of that appoaches something like what the IDE for Visual Basic does for you.
    0
     
    LVL 37

    Expert Comment

    by:zzynx
    >> I wanted something that would cover some more Swing classes.
    You do know the netBeans menus
           Window > GUI editing > Palette
    and
           Window > GUI editing > Inspector
    don't you?
    What would you want more?
    0
     
    LVL 1

    Author Comment

    by:bass20
    "What would you want more?"

    What I wanted more is precisely what I asked on this thread...
    0
     
    LVL 1

    Author Comment

    by:bass20
    I agree with you valcar, thank you for your input.
    0
     
    LVL 37

    Expert Comment

    by:zzynx
    :)
    0
     
    LVL 1

    Author Comment

    by:bass20
    I remain with a problem on this; I'm currently using JBuilder and Netbeans (whatever fits better ;P) but I'm not sure I can do what I need with Swing; I need some class that looks like the JTable but that will allow me to select individual cells and set their background to an image - from what I read on the API JTable doesn't do this, is there any other class that does?


    Thanx in advance! :)
    0
     
    LVL 37

    Expert Comment

    by:zzynx
    JTable is able to do that!
    That is: you'll have to write your own table cell renderer. Then you can "render" each cell the way you want.
    0
     
    LVL 1

    Author Comment

    by:bass20
    Hum...I've been through the documentation (http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#renderer) again...have you ever seen it done? Setting an image (some jpeg or gif) as a cell background?
    0
     

    Expert Comment

    by:valcar

    Check out http://javaalmanac.com/egs/javax.swing.table/CustRend.html
     for an example of  a custom CellRenderer.  Where it calls setText(), instead just call setIcon() on the ImageIcon of the Image you want to display.
     
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
    For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

    933 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now