Results 1 to 3 of 3
  1. #1
    CapetownSun is offline Member
    Join Date
    May 2011
    Posts
    1
    Rep Power
    0

    Default Help with school task

    Hey guys, Ill be brief.

    Remember those word searches you did on a piece of paper where you find a list of words in a block of 'random' letters? The program's objective is the same.

    I need help with the interface on which this block of letters will be placed on.

    Initially, I thought of a simple borderless table and then you would be able to select(and Highlight) letters. I ran into the wall that JTable doesn't support multiple unrelated cell selection, such as (1;2) and (2;4). What could alternative be?

    It needs to be dynamic as the list of words will be pulled from a file, and then generated by the program, and then the interface from that.

    Any suggestions, comment welcome. Thanks

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,889
    Rep Power
    8

    Default

    I'd probably just extend JPanel and override the paintComponent() method. But there is more than one way to do this.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,184
    Rep Power
    19

    Default

    I ran into the wall that JTable doesn't support multiple unrelated cell selection, such as (1;2) and (2;4). What could alternative be?
    See whether this helps: Java CodeGuru: Selection of any Cell in a JTable

    db

    edit Or http://java.itags.org/java-core-gui-apis/49569/
    Last edited by DarrylBurke; 05-17-2011 at 08:29 PM.

Similar Threads

  1. Creating a TD for school
    By runningonclouds in forum New To Java
    Replies: 2
    Last Post: 03-19-2011, 08:23 AM
  2. Best reason to not go to school ever
    By Zack in forum Forum Lobby
    Replies: 5
    Last Post: 11-28-2010, 04:09 AM
  3. School project help!
    By Addez in forum Advanced Java
    Replies: 5
    Last Post: 09-17-2010, 10:37 PM
  4. Need help with school assignment
    By sljkbn in forum New To Java
    Replies: 6
    Last Post: 10-28-2009, 01:07 PM
  5. Need help with school work
    By ccfdet in forum New To Java
    Replies: 3
    Last Post: 08-29-2009, 07:14 PM

Posting Permissions

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