Results 1 to 3 of 3
  1. #1
    JohnST is offline Member
    Join Date
    Dec 2009
    Posts
    20
    Rep Power
    0

    Question Creating Jbuttons, etc. dynamically

    I'm trying to create an App that parses an xml off of a controller on the LAN
    Depending on what it finds it will create a grid layout and populate it with JButtons and Jsliders. I've already written a parser that can pick out <tags> that I want and print them to the console. I've already written an app has the gridlayout like I want. I'm sure I will have to rewrite the gridlayout app completely but atleast I know how I want it setup. My question is how do I go about parsing the xml to create Jbuttons and Jsliders dynamically at runtime? Anyone have any suggestions or a good book I should read? I am a newbie, I've just started learning Java a few months ago.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    The Sun Swing tutorials are probably the source most of us have used to learn to create Swing components either at the start of a program or "on the fly".

  3. #3
    JohnST is offline Member
    Join Date
    Dec 2009
    Posts
    20
    Rep Power
    0

    Default

    Thanks Fubarable I'll go through the tutorials. Hopefully that will give me an idea of where to begin. :confused::confused:

Similar Threads

  1. JButtons and If statements
    By calculuslord in forum New To Java
    Replies: 6
    Last Post: 10-20-2009, 10:52 PM
  2. Help with JButtons...
    By ashton in forum New To Java
    Replies: 8
    Last Post: 01-26-2009, 09:38 AM
  3. JButtons
    By jadaleus in forum Advanced Java
    Replies: 4
    Last Post: 10-17-2008, 02:49 AM
  4. 2D Array of JButtons
    By stevemcc in forum AWT / Swing
    Replies: 1
    Last Post: 02-16-2008, 11:42 PM
  5. JButtons
    By fgasimzade in forum SWT / JFace
    Replies: 1
    Last Post: 12-25-2007, 05:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •