Results 1 to 2 of 2
  1. #1
    Artemis73 is offline Member
    Join Date
    Dec 2012
    Posts
    2
    Rep Power
    0

    Exclamation SWT - Problem with setTabList

    Hello,

    I've created two Control[]-Arrays, because i have two SWT-Object, which are in a Sashform and i only want One of them in the TabList.
    My Code:
    Java Code:
    Control[] all = New Control[]{compositeSearch, Sashform, compositeHistory};
    Control[] sash = New Control[]{groupSyonym}
    
    Shell.setTabList(all);
    Sashform.setTabList(sash);
    The Content of compositeSearch: 1 label, 1 TextField and 1 Button.
    Sashform: groupSyonym and 1 Browser, which shouldn't be in the tabList
    Compositehistory: two Buttons and One combo
    GroupSyonym: One Label, one List and One Button

    The order of the tabList ist right and Works. My problem is, that it only works One time. It stops St the last Element and if i press Tab, nothing happens. Usually it should Start again. If i Click on an SWT object, i can press Tab again and it works, but it never repeats. What can i do?

  2. #2
    kalata is offline Member
    Join Date
    Aug 2011
    Location
    Bulgaria
    Posts
    29
    Rep Power
    0

    Default Re: SWT - Problem with setTabList

    My knowledge in SWT is bare, but just for the idea try adding key listener to the last element, which set the focus to the first element.

    B.R.,
    Kalata

Similar Threads

  1. Replies: 0
    Last Post: 11-07-2012, 12:44 PM
  2. Small problem with problem with Java, C++ parse program.
    By dragstang86 in forum New To Java
    Replies: 4
    Last Post: 10-30-2011, 03:43 AM
  3. Replies: 9
    Last Post: 09-21-2010, 04:15 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
  •