Results 1 to 4 of 4
  1. #1
    sunolinu is offline Member
    Join Date
    Jan 2010
    Posts
    15
    Rep Power
    0

    Default how create array graphically

    ---------------------------
    how create array graphically

    i need to create tape or in another word shape like a table that have
    one row an infinite column (like one array ) .
    in each home of table i have one chare then i should create animation
    that any column can left one home to left or right and its char may
    be exchange to another character

    _____
    ------------ |-----|--------------
    | a | a | | |c | | | b| a | a | b|
    ------------ |-----|--------------
    ------
    _____
    ---------|---- |-------------------
    | a | a | | |c| | | X | a | a | b|
    ---------|---- |-------------------
    ------

    i have shpe like above now i shoulde use what component of awt or swing and have set my character on it

  2. #2
    zweibieren is offline Senior Member
    Join Date
    Aug 2009
    Location
    Pittsburgh, PA
    Posts
    284
    Rep Power
    6

    Default

    You could use a JList with orientation HORIZONTAL_WRAP and a single row.
    See the JList API and How to Use JLists

  3. #3
    sunolinu is offline Member
    Join Date
    Jan 2010
    Posts
    15
    Rep Power
    0

    Default

    Quote Originally Posted by zweibieren View Post
    You could use a JList with orientation HORIZONTAL_WRAP and a single row.
    See the JList API and How to Use JLists
    thanks but this is not help me i want to create tape of turing machin
    graphically i want idea for it i express at above about propertice of
    shape
    thank you

  4. #4
    sathishsengg is offline Member
    Join Date
    Jan 2010
    Posts
    10
    Rep Power
    0

    Default

    Like a typewrite machine ribbon, am i correct?

    Better Create the custom component using JPanel
    and use component JScrollPane, JTextField and Vector.

Similar Threads

  1. How to create an array of objects
    By redmaverick in forum New To Java
    Replies: 7
    Last Post: 10-19-2009, 03:14 AM
  2. [SOLVED] Better way to create an array?
    By dan0 in forum New To Java
    Replies: 7
    Last Post: 03-26-2009, 02:19 AM
  3. Create an array of Vectors
    By nwboy74 in forum Advanced Java
    Replies: 1
    Last Post: 11-12-2008, 09:00 AM
  4. How do I create an array with every cycle of a loop?
    By blackhole8746 in forum New To Java
    Replies: 3
    Last Post: 05-07-2008, 08:49 AM
  5. How do I create an Array of Images
    By wco5002 in forum New To Java
    Replies: 3
    Last Post: 03-21-2008, 04:45 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
  •