Problematic focus traversal (JTextArea)

I have a data entry dialog with several JTextFields and one JTextArea.
Focus traversal (with the tab key) works nicely between instances of JTextField, but it is not possible to tab out of the JTextArea to the next JTextField (as a tab is inserted in the text area instead). I've have looked up swing focus traversal in books, but no cigar when it comes to dealing with JTextAreas
Does anyone know how to fix this? I don't need to enter tabs into the text area.
thanks,
Andy

There is a Swing forum for Swing related questions.
Have you tried searching the forum?. Using keywords "+jtextarea +tab" would be a good place to start. You'll be amazed how many times this question has been asked/answered before.
     This example shows two different approaches for tabbing out of a JTextArea
import java.awt.*;
import java.util.*;
import java.awt.event.*;
import javax.swing.*;
public class TextAreaTab extends JFrame
     public TextAreaTab()
          // Reset the FocusManager
          JTextArea textArea1 = new JTextArea(5, 30);
          textArea1.setText("1\n2\n3\n4\n5\n6\n7\n8\n9");
          JScrollPane scrollPane1 = new JScrollPane( textArea1 );
          getContentPane().add(scrollPane1, BorderLayout.NORTH);
          textArea1.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, null);
          textArea1.setFocusTraversalKeys(KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, null);
          scrollPane1.getVerticalScrollBar().setFocusable(false);
          scrollPane1.getHorizontalScrollBar().setFocusable(false);
          //  Replace the Tab Actions
          JTextArea textArea2 = new JTextArea(5, 30);
          textArea2.setText("1\n2\n3\n4\n5\n6\n7\n8\n9");
          getContentPane().add(new JScrollPane(textArea2), BorderLayout.SOUTH);
          InputMap im = textArea2.getInputMap();
          KeyStroke tab = KeyStroke.getKeyStroke("TAB");
          textArea2.getActionMap().put(im.get(tab), new TabAction(true));
          KeyStroke shiftTab = KeyStroke.getKeyStroke("shift TAB");
          im.put(shiftTab, shiftTab);
          textArea2.getActionMap().put(im.get(shiftTab), new TabAction(false));
     class TabAction extends AbstractAction
          private boolean forward;
          public TabAction(boolean forward)
               this.forward = forward;
          public void actionPerformed(ActionEvent e)
               if (forward)
                    tabForward();
               else
                    tabBackward();
          private void tabForward()
               final KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager();
               manager.focusNextComponent();
               SwingUtilities.invokeLater(new Runnable()
                    public void run()
                         if (manager.getFocusOwner() instanceof JScrollBar)
                              manager.focusNextComponent();
          private void tabBackward()
               final KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager();
               manager.focusPreviousComponent();
               SwingUtilities.invokeLater(new Runnable()
                    public void run()
                         if (manager.getFocusOwner() instanceof JScrollBar)
                              manager.focusPreviousComponent();
     public static void main(String[] args)
          TextAreaTab frame = new TextAreaTab();
          frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
          frame.pack();
          frame.setLocationRelativeTo(null);
          frame.setVisible(true);

Similar Messages

  • Focus in JTextArea (JDK1.4)

    hi,
    I try to tab in a JTextArea when I use JDK 1.4. But new focus traversal policy in JDK 1.4 does not include JTextArea. Anybody has any idea how to do this: the focus should be on the selected line or the first line by default whenever pressing Tab key into a JTextArea? Thanks anyway.

    hi,
    maybe when you reactivate the browser, you reactivate the site(!) and not the applet.
    The applet is only a part of the site and has to be activated, too.
    I guess this is the problem.
    but i got no idea how to fix this.
    sorry.
    cu Errraddicator

  • Focus Traversal Problem

    Hello,
    I implemented my own focus traversal policy provider for a JPanel. It appears to be working fine except for one of my components (a JTextArea contained in a JScrollPane). If I ctrl+tab out of the JTextArea, my custom FTP is never used.
    I am still new to the focus subsystem, so I am not sure how to properly debug the situation. I checked the following properties on the JScrollPane and the JTextArea:
    --Focusable:  True for both
    --FocusCycleRootAncestor:  My JPanel for both
    --getFocusTraversalPolicy:  null for both
    --FocusCycleRoot:  False for both
    Since my Custom FTP is not used when tabbing out of the JTextArea, the focus is sent to the wrong component. This is not the only JTextArea in the JPanel (all of them are in JScrollPanes), but it is the only one that with this problem.
    Is there a way for me to detect which FTP is being used? Any ideas why my FTP is not being used?
    Aaron

    Hello,
    I implemented my own focus traversal policy provider for a JPanel. It appears to be working fine except for one of my components (a JTextArea contained in a JScrollPane). If I ctrl+tab out of the JTextArea, my custom FTP is never used.
    I am still new to the focus subsystem, so I am not sure how to properly debug the situation. I checked the following properties on the JScrollPane and the JTextArea:
    --Focusable:  True for both
    --FocusCycleRootAncestor:  My JPanel for both
    --getFocusTraversalPolicy:  null for both
    --FocusCycleRoot:  False for both
    Since my Custom FTP is not used when tabbing out of the JTextArea, the focus is sent to the wrong component. This is not the only JTextArea in the JPanel (all of them are in JScrollPanes), but it is the only one that with this problem.
    Is there a way for me to detect which FTP is being used? Any ideas why my FTP is not being used?
    Aaron

  • Setting a JTree renderer breaks the focus traversal order

    Hello,
    I am not sure what's wrong, but when I set a customize JTree renderer it breaks the focus traversal order of my UI. Can someone tell me what's wrong and also how to prevent it from changing the order of my components?
    For instance, if I have component order 1, 2, 3, 4, 5 to begin with and after I call JTree.setCellRenderer(new SomeRenderer()), the order would change to something like this 1, 2, 4, 5, 3
    To give you an overview of what I am creating, I am customizing a UI that will be plug into JFileChooser to replace the default UI. I know I can create my own FocusTraversalPolicy, but the thing is that I don't know some of my components ahead of time. As long as I can prevent the order change, I think it would be fixed.
    Regards,
    Soot

    Try creating a Short, Self-Contained, Compileable, Executable
    program which has this problem. Right now it would take a
    mind-reader to solve your problem.

  • JApplet Focus Traversal 1.4

    I am writing a new JApplet and I am having problem with focus traversal.
    Hitting the tab key on Windows 2000 doesn't traverse through the
    components that are on the JApplet's contentpane. It happens with the 1.4
    appletviewer and with IE5.5 and IE6 using the 1.4 plugin. Below is the code and if I change
    it to extend Applet and add Buttons it works fine. Furthermore, if I run
    it as a standalone application (by extending JFrame) OR if I pop up an external JFrame from the applet it works fine. Is there something I missing?
    import javax.swing.*;
    import java.awt.*;
    public class AppletTest extends JApplet {
         public void init() {
              Container c = getContentPane();
              c.setLayout(new FlowLayout());
              c.add(new JButton("button1"));
              c.add(new JButton("button2"));
              c.add(new JButton("button3"));          
         public void start() {
    Anthony

    Try this!
    As I found out that when I used the plugin with the show console option, the focus traversal worked fine. But when I changed this option to hide or don't start up, the focus traversal failed to work.
    So I tried to find out what the differences where. I found this. When the show console option
    is selected, the parent frame (provided by the browser) has a focus traversal policy named:
    javax.swing.LayoutFocusTraversalPolicy
    With both the other options this was the java.awt.DefaultFocusTraversalPolicy.
    This code will set the DefaultFocusTraversalPolicy to the javax.swing.LayoutFocusTraversalPolicy.
    After this everything works normal.
    Place this in the start of the init () method of JApplet
    Container parent = this.getParent ();
    while (!(parent instanceof Window) && parent != null)
    parent= parent.getParent ();
    if (parent != null)
    parent.setFocusTraversalPolicy (new javax.swing.LayoutFocusTraversalPolicy ());

  • Changing the application wide default focus traversal policy

    Hi,
    I have a Swing application built using JDK1.3 where there lots of screens (frames, dialogs with complex screens - panels, tables, tabbed panes etc), in some screens layouts have been used and in other screens instead of any layout, absolute positions and sizes of the controls have been specified.
    In some screens setNextFocusableComponent() methods for some components have been called at some other places default focus traversal is used. (which I think is the order in which the components are placed and their postions etc). Focus traversal in each screen works fine.
    Now I have to migrate to JDK1.4. Problem now is that after migrating to JDK1.4.2, focus traversal has become a headache. In some screens there is no focus traversal and in some there is it is not what I wanted.
    So I thought to replace applicaiton wide default focus traversal policy and I did the following:
    ///////// Replace default focus traversal policy
    java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager().setDefaultFocusTraversalPolicy(new java.awt.ContainerOrderFocusTraversalPolicy());
    But there is no change in the behaviour.
    Then I tried following:
    ///////// Replace default focus traversal policy
    java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager().setDefaultFocusTraversalPolicy(new java.awt.DefaultFocusTraversalPolicy());
    I did all this in the main() method of the application before anything else just to ensure that all the components get added after this policy has been set. But no luck.
    Does someone has any idea what is the problem here ? I do not want to define my own focus traversal policy for each screen that I use (because thats lot of codes).
    Thanks

    not that hard if you only have the one focus cycle ( > 1 cycle and it gets a bit harder, sometimes stranger)
    import javax.swing.*;
    import java.awt.*;
    class Testing
      int focusNumber = 0;
      public void buildGUI()
        JTextField[] tf = new JTextField[10];
        JPanel p = new JPanel(new GridLayout(5,2));
        for(int x = 0, y = tf.length; x < y; x++)
          tf[x] = new JTextField(5);
          p.add(tf[x]);
        final JTextField[] focusList = new JTextField[]{tf[1],tf[0],tf[3],tf[2],tf[5],tf[4],tf[7],tf[6],tf[9],tf[8]};
        JFrame f = new JFrame();
        f.setFocusTraversalPolicy(new FocusTraversalPolicy(){
          public Component getComponentAfter(Container focusCycleRoot,Component aComponent)
            focusNumber = (focusNumber+1) % focusList.length;
            return focusList[focusNumber];
          public Component getComponentBefore(Container focusCycleRoot,Component aComponent)
            focusNumber = (focusList.length+focusNumber-1) % focusList.length;
            return focusList[focusNumber];
          public Component getDefaultComponent(Container focusCycleRoot){return focusList[0];}
          public Component getLastComponent(Container focusCycleRoot){return focusList[focusList.length-1];}
          public Component getFirstComponent(Container focusCycleRoot){return focusList[0];}
        f.getContentPane().add(p);
        f.pack();
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }

  • How to disable the Tab key Focus Traversal

    I have to disable the default focus traversal function of tab key

    The method tht you need to look into is setTraversalPolicy()

  • JavaFx Adding Focus Traversable Keys.  Any Ideas?

    Hallo,
    Since there is currently now way to add other keys to the focus traversable list, I have to create my own method of doing it.  What I want to do is have a single scene, and in that scene I want the enter key to behave  
    the same as a tab key.  But there are a lot of Buttons, TextField, ChoiceBoxes etc.  Therefore Pressing enter key must take me to the next focusable item.  I have really been struggling to find a method that work.  I am really stuck.  Some help would be much appreciated.
    Thank you

    Well there are a few things you can do imo.
    1.  Create KeyEvents for each of your controls.
    2. http://download.java.net/jdk8/jfxdocs/index.html? click Scene, then NODE(for some reason the HTML links do not appear, and the one I had was for "SHAPE 3D").
    focusedpublic final ReadOnlyBooleanProperty focusedPropertyIndicates whether this Node currently has the input focus. To have the input focus, a node must be the Scene's focus owner, and the scene must be in a Stage that is visible and active. See requestFocus() for more information.
    See Also:
    isFocused(), setFocused(boolean)
    Default value:
    false
    focusTraversablepublic final BooleanProperty focusTraversablePropertySpecifies whether this Node should be a part of focus traversal cycle. When this property is true focus can be moved to this Node and from this Node using regular focus traversal keys. On a desktop such keys are usually TAB for moving focus forward andSHIFT+TAB for moving focus backward. When a Scene is created, the system gives focus to a Node whose focusTraversable variable is true and that is eligible to receive the focus, unless the focus had been set explicitly via a call to requestFocus().
    See Also:
    isFocusTraversable(), setFocusTraversable(boolean)
    Default value:
    false
    If you click either property it will brng you to the entire 8000 lines of the code, which I also cannot link for some reason.
    Both will link you to the area of code, and possibly you could edit this yourself.

  • Newbie Focus Traversal Problem

    I'm trying to do the equivalent of checking the "Tab Stop" checkbox in the MS C++ compiler's dialog layout tool. In other words, I want to go from field to field with the tab key. I've cut and pasted some code from another web site into my code but it doesn't do anything. Is this really the right code? I can't help be think I'm way off base here because it can't possibly be this insanely complex to do the equivalent of checking a checkbox in C++. Can it? What am I doing wrong?
    None of the println statements are ever hit.
    --gary
    import javax.swing.JDialog;
    import java.awt.event.ActionListener;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JButton;
    import java.awt.event.ActionEvent;
    import java.awt.Point;
    import java.awt.Dimension;
    import java.awt.*;
    import javax.swing.*;
    import java.net.*;
    import java.io.*;
    import javax.swing.border.*;
    import java.util.Arrays;
    import java.util.List;
    public class LoginDialog extends JDialog implements ActionListener {
        private boolean cancel = false;
        private boolean loggedIn = false;
        private String postUrl;
        private JButton cancelButton;
        private JButton loginButton;
        private JPanel myPanel;
        private JTextArea taLogin;
        private JPasswordField taPassword;
        private JTextArea taAccount;
        private Border outline;
        private Border margins;
        LoginDialog(JFrame frame) {
            super(frame, "Login to Your Account", true);
            myPanel = new JPanel();
            margins = BorderFactory.createEmptyBorder(15, 15, 15, 15);
            myPanel.setBorder(margins);
            getContentPane().add(myPanel);
            myPanel.setMaximumSize(new Dimension(100,100));
            myPanel.setLayout(new GridLayout(4,2));
            outline = BorderFactory.createLineBorder( Color.black );
            myPanel.add(new JLabel("Account Name:  "));
            taAccount = new JTextArea("",1,16);
            myPanel.add(taAccount);
            taAccount.setBorder(outline);
            myPanel.add(new JLabel("Admin ID:"));
            taLogin = new JTextArea("",1,10);
            myPanel.add(taLogin);
            taLogin.setBorder(outline);
            myPanel.add(new JLabel("Admin Acct Password:"));
            taPassword = new JPasswordField("");
            taPassword.setEchoChar('*');
            taPassword.addActionListener(this);
            myPanel.add(taPassword);
            cancelButton = new JButton("Cancel");
            cancelButton.addActionListener(this);
            cancelButton.setBounds(80, 40, 100, 100);
            myPanel.add(cancelButton);       
            loginButton = new JButton("Login");
            loginButton.addActionListener(this);
            myPanel.add(loginButton);
            final Component order[] =
              new Component[] {taAccount, taLogin, taPassword};
            FocusTraversalPolicy policy = new FocusTraversalPolicy() {
              List list = Arrays.asList(order);
              public Component getFirstComponent(Container focusCycleRoot) {
    System.out.println("returning first object");
                return order[0];
              public Component getLastComponent(Container focusCycleRoot) {
    System.out.println("returning last object");
                return order[order.length-1];
              public Component getComponentAfter(Container focusCycleRoot,
                  Component aComponent) {
                int index = list.indexOf(aComponent);
    System.out.println("returning next object");
                return order[(index + 1) % order.length];
              public Component getComponentBefore(Container focusCycleRoot,
                  Component aComponent) {
                int index = list.indexOf(aComponent);
                return order[(index - 1 + order.length) % order.length];
              public Component getDefaultComponent(Container focusCycleRoot) {
    System.out.println("returning default object");
                return order[0];
            setFocusCycleRoot(true);
            myPanel.setFocusTraversalPolicy(policy);
            pack();
            setLocationRelativeTo(frame);
            setVisible(true);
        public void actionPerformed(ActionEvent e) {
            Object source = e.getSource();
            boolean good = false;
            loggedIn = false;
            if(source==cancelButton) {
                cancel = true;
                setVisible(false);
            } else if (source==loginButton) {
                String account = taAccount.getText();
                String login = taLogin.getText();
                String password = new String(taPassword.getPassword());
                String postData = account+")+("+login+")+("+password;
                try {
                    URL my_url = new URL("http://www.--myURL--.com/logger.php");
                    HttpURLConnection connection =  (HttpURLConnection)my_url.openConnection();
                    connection.setDoOutput(true);
                    connection.setUseCaches (false);
                    connection.setRequestMethod("POST");
                    connection.setFollowRedirects(true);
                    connection.setRequestProperty("Content-Length", ""+postData.length());
                    connection.setRequestProperty("Content-Language", "en-US");
                    connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
                    DataOutputStream posted = new DataOutputStream (connection.getOutputStream ());
                    posted.writeBytes(postData);
                    posted.flush ();
                    posted.close ();
                    BufferedReader inStream = new BufferedReader(new InputStreamReader(connection.getInputStream()));
                    String inputLine;
                    good = false;
                    while ((inputLine = inStream.readLine()) != null) {
                        System.out.println("Server response: "+inputLine);
                        if (inputLine.substring(0,4).equals("url=")) {
                            postUrl = inputLine.substring(4);
                            good = true;
                            cancel = false;
                            loggedIn = true;
                        } else if (inputLine.equals("invalid login")) {
                            good = true; // server did respond, but response was "invalid login"
                            loggedIn = false;
                    inStream.close();
                    if (!good) {
                         JOptionPane.showMessageDialog(null, "Unable to contact server.\nTry again later.", "alert", JOptionPane.ERROR_MESSAGE);
                } catch (MalformedURLException me) {
                    System.out.println("MalformedURLException: " + me);
                    JOptionPane.showMessageDialog(null, "Unable to contact server.\nTry again later.", "alert", JOptionPane.ERROR_MESSAGE);
                } catch (IOException ioe) {
                    System.out.println("IOException: " + ioe);
                    JOptionPane.showMessageDialog(null, "Unable to contact server.\nTry again later.", "alert", JOptionPane.ERROR_MESSAGE);
                if (loggedIn) {
                    setVisible(false);
                } else {
                    JOptionPane.showMessageDialog(null, "Login or password not correct.", "alert", JOptionPane.ERROR_MESSAGE);
        public boolean ifCancel() { return cancel; }
        public boolean ifLoggedIn() { return loggedIn; }
        public String getPostUrl() { return postUrl; }
    }

    an example here
    http://forum.java.sun.com/thread.jspa?threadID=738872
    which changes a GridLayout's traversal from left-right to up-down
    basically you put the components (in the order you want) into a Component[],
    which is used by the FocusTraversalPolicy for next/previous etc.
    note: won't work across FocusCycles - needs additional code for that

  • Need focus in JTextArea

    Hai Friends,
    I am on the way of developing a QUERY ANALYSER. Mean while i got a problem. in my product I am using two JTabbedPanes(1 & 2).
    In TabbedPane1 i have a text area (to write the query) and the tabbedpane2 on which two panes( one for dispaying the result on a JTable and other for displaying messages.).
    On running my application I like to see the cursor blinking on the JTextArea.
    How it can be possible?
    Do you like to need some more explanation?
    some one help me.....
    Tino Simon.
    .

    Try this :
    mytextarea.requestFocus();
    to give focus to your textarea called "mytextarea"

  • Component that is focusable, but not focus- traversable

    Hi,
    I have found a tidy solution to this, and posted it in the thread I thought was most appropriate, THEN I found, it was in the REFLECTION forum - duh.
    I won't cross post the whole solution here.
    So if you're interested, bowl over there for the answer
    http://forum.java.sun.com/thread.jspa?messageID=3541807&#3541807
    Cheers
    Bruce

    Answer,
    I have a status field on my dialog that shouldn't be keyboard traversible, but I would like the user to be able to cut the contents (such as an error display), so I need to be able to have it focusable by mouse click.
    I did this by enclosing the component inside a focusCycleRoot container that isn't itself focusable !!
    original code, status widget gets focus when traversing via keyboard.
            JTextField status = new JTextField();
            status.setColumns(40);
            status.setEditable(false);
            status.setFocusable(true); // So user can cut the text with mouse
            status.setBorder(new javax.swing.border.EmptyBorder(status.getInsets()));
            container.add(status, "layout stuff");This is the modified code, which stops status being traversible by keyboard.
            JTextField status = new JTextField();
            status.setColumns(40);
            status.setEditable(false);
            status.setFocusable(true); // So user can cut the text with mouse
            status.setBorder(new javax.swing.border.EmptyBorder(status.getInsets()));
            Container statusTraversalHider = new JPanel();
            statusTraversalHider.add(status);
            statusTraversalHider.setFocusCycleRoot(true);
            statusTraversalHider.setFocusable(false);
            container.add(statusTraversalHider, "layout stuff");

  • Focus traversal issue on a panel

    Hello Everyone,
    I am facing a strange issue. I had a panel (BiggerPanel) that has certain text fields, combo boxes and buttons.
    The tab (focus) order was top to bottom and left to right as it should be.
    Now I replaced a text field, with a panel (SmallerPanel) that has the text field and a button in it.
    After adding the SmallerPanel, the text field in SmallerPanel does not get focus.
    Please suggest what can be the reason.
    thanks

    how you handle it could depend on your java version.
    Focus handling changed around 1.4, and things have worked intermittently since.
    probably best to post a small demo program, along with your version,
    and those with a similar version might be able to test it.

  • Problems with focus traversal after moving to j2sdk_1.4.1_02

    Hi,
    Just moved to j2sdk_1.4.1_02 and we are having problems where
    focus stays on wrong UI component e.g. a user(user2) is taking edit/write permissions from another user(user1) that has write permissions. User1 is told that they will lose write permissions in
    the next 15 minutes ( information dialog displayed on their screen ) while at the same time on user2's window a text label is updated
    every 5 seconds to say how long before they will have write permissions,
    however, the information dialog displayed on user1 hangs and
    the user can't remove this dialog. Control seems to stay with user2.
    This used to work with the previous java version we used.
    Hope someone can help,
    Thanks

    Didn't say what version you came FROM, but I'm guessing if
    you're having focus related problems it was from PRIOR to 1.4
    when focus handling was revamped.
    You probably need to make sure you are using requestFocusInWindow()
    everywhere instead of requestFocus().
    Check here and possibly search for 1.4 and KeyboardFocusManager
    for new focus handling tutorials.

  • Focus traversal of a component and its descendants

    We have a certain panel in our application which is receiving focus, and we don't want it to receive focus. I can call setFocusable(false) on every button in that panel, and that works... but it's incredibly cumbersome.
    Unfortunately, calling setFocusable(false) on the panel itself doesn't stop the focus manager finding the children.
    Is there a "proper" way to do this?
    Also while I'm here, is there a "proper" way to make the Tab key exit a JTable when pressed? There was a previous post about overriding the action on the Tab key, but I'm not impressed by that option at present as it may have wider effects than the table.

    I have a need to produce a list of EBS compnents (Oracle Financial 11i) for audit purpose. We are using Oracle EBS 11i Oracle financial. Is there a way to get this kind of information from the system?Please see these docs.
    How to check if certain Oracle Applications product/module is implemented? [ID 443699.1]
    How to Establish if a Product is Installed in e-Business Suite 11i [ID 420648.1]
    Thanks,
    Hussein

  • Scroll pane - focus traversable

    Hello,
    I use the new Scenebuilder. I made a VBox with an AnchorPane and a ScrollPane as children. When I click the ScrollPane I get the focus border around the ScrollPane. I would like to post the image, unfortunate I have no idea how to.
    I have tried to set the -fx-focus-tarversable propertie for the ScrollPane to false, but no effect. I tried the same thing with the substructure corner. At last I tried to set the border width to zero. All of this had no effect. Has anybody an idea?
    Best regards,
    Luciferius

    Hello,
    I use the new Scenebuilder. I made a VBox with an AnchorPane and a ScrollPane as children. When I click the ScrollPane I get the focus border around the ScrollPane. I would like to post the image, unfortunate I have no idea how to.
    I have tried to set the -fx-focus-tarversable propertie for the ScrollPane to false, but no effect. I tried the same thing with the substructure corner. At last I tried to set the border width to zero. All of this had no effect. Has anybody an idea?
    Best regards,
    Luciferius

Maybe you are looking for