Results 1 to 5 of 5

Thread: GUI problem

  1. #1
    dirtycash is offline Member
    Join Date
    Nov 2007
    Posts
    38
    Rep Power
    0

    Default GUI problem

    Hi basically i want to make a type of grid which has times running down it say from 9 am to 5 pm and then the days ranging from monday to saturday running across, and the user is able to mark what time they want an appointment and on what day.

    I hope that makes sense. Is there a way to do this with Swing?

  2. #2
    Kenan89 is offline Member
    Join Date
    Dec 2009
    Posts
    3
    Rep Power
    0

    Default .

    Look for gridlayout on google and choose the first link i think it will help

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

    Default

    Or consider using a JTable with the body of the table showing JCheckBoxes. The Sun JTable tutorial would show you how to do this.

  4. #4
    dirtycash is offline Member
    Join Date
    Nov 2007
    Posts
    38
    Rep Power
    0

    Default

    So for that to work id have two seperate tables one to deal with days? and another to deal with the different times?

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

    Default

    Quote Originally Posted by dirtycash View Post
    So for that to work id have two seperate tables one to deal with days? and another to deal with the different times?
    No, just a single JTable. the column headings would be Hours, Monday, Tuesday, Wednesday,...

    The first column of data would Strings (for the hours), and the remainder of the data would be Booleans (for the checkboxes).

Similar Threads

  1. simple line problem / for loop problem
    By helpisontheway in forum New To Java
    Replies: 1
    Last Post: 11-17-2009, 07:12 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
  •