Results 1 to 4 of 4
  1. #1
    zabltn is offline Member
    Join Date
    Mar 2012
    Posts
    11
    Rep Power
    0

    Default How to change jTable and jMenu direction's to right-to-left

    Hi everybody,

    In Netbeans i created a java desktop database application(file menu->new project), then Netbeans generated a jTable and a jMenu which are left-to-right in direction, now i want to make them right-to-left but at the property window i can't see any option to make them it right-to-left. Your help would be appreciated.

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

    Default Re: How to change jTable and jMenu direction's to right-to-left

    Dump the NetBeans visual designer. You lack the fundamental knowledge of Swing that would give you the ability to use it.

    Do you know how to set LTR in code? Do that.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    zabltn is offline Member
    Join Date
    Mar 2012
    Posts
    11
    Rep Power
    0

    Default Re: How to change jTable and jMenu direction's to right-to-left

    I added the following line of codes which for the jMenuBar it is working but with jTable it is not working.

    1. myTable.setComponentOrientation(ComponentOrientati on.RIGHT_TO_LEFT);
    2. myMenuBar.setComponentOrientation(ComponentOrienta tion.RIGHT_TO_LEFT);

    Please help to change the direction for the jTable header and body.
    Last edited by zabltn; 03-10-2012 at 07:28 PM.

  4. #4
    zabltn is offline Member
    Join Date
    Mar 2012
    Posts
    11
    Rep Power
    0

    Default Re: How to change jTable and jMenu direction's to right-to-left

    Please Help..

Similar Threads

  1. Cant change selected/pressed Icon of a JMenu
    By Valhallon in forum AWT / Swing
    Replies: 3
    Last Post: 07-08-2011, 10:16 PM
  2. Reversing dojo slider to make it slide from right to left rather left to right as giv
    By gurpreet.singh in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 05-05-2011, 01:49 PM
  3. square moves left and down but not up or left
    By natdizzle in forum AWT / Swing
    Replies: 3
    Last Post: 02-04-2011, 05:20 PM
  4. Replies: 1
    Last Post: 07-28-2010, 03:46 PM
  5. How to change data in jtable?
    By chandu.v in forum AWT / Swing
    Replies: 2
    Last Post: 07-01-2008, 09:46 AM

Tags for this Thread

Posting Permissions

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