JTextField doesn't cause a validateTree()

Hello,
I've written a new layout manager. If I change the visible state of a component the layout manager should do a new layout. This works for
JLabel, JButton, JRadioButton, JCombobox, JPanel and JCheckbox but not for JTextField.
After debugging I noticed, that JTextField is the only Component witch ovewrites the method isValidateRoot() and so it returns true instead of false. This causes that the RepaintManager.addInvalidComponent() returns before it adds an event to the EventQueue if the JTextfield is changed to visible = false.
Is this a bug, or how can I solv this problem?
Thx
Guido

If somebody has an answer to this question I would still be very interested.
I am also puzzled about the logic inside the method isValidateRoot() inside JTextField:
    public boolean isValidateRoot() {
     Component parent = getParent();
     if (parent instanceof JViewport) {
         return false;
        return true;
    }Meaning the JTextField is itself in charge for handling layout updates inside its own boundaries, but also when calling setVisible(true) on the JTextField. The documentation says that it is for handling calls to revalidate from within the component itself (unless it is contained inside a JViewport). I don't understand this. If anyone can explain this?
At first sight overriding isValidateRoot() always returning true in a subclass of JTextField would also solve the problem. But that could lead to a much heavier revalidation of the internal JTextField mechanisms?
Conclusion (without knowing answers to the questions above) is that when you call setVisible on a JTextField that you have to call revalidate() on its container again in order to see the new layout situation.

Similar Messages

  • JMenuItem and JTextField doesn't look right after upgrading to Java 8

    I just upgraded to JDK 8u25
    I have a legacy Swing application, which makes use of JMenuItem and JTextField
    I realize, after upgrading, there is a bolder grey vertical border at the left side of JMenuItem and JTextField
    JMenuItem
    JTextField
    This only happen, if I were using look n feel com.sun.java.swing.plaf.windows.WindowsLookAndFeel
    Before that, I never have such problem. Anyone know is there any workaround for such problem?
    Here's the code example to demonstrate the problem.
    package javaapplication5;
    * @author yccheok
    public class NewJFrame extends javax.swing.JFrame {
         * Creates new form NewJFrame
        public NewJFrame() {
            initComponents();
         * This method is called from within the constructor to initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is always
         * regenerated by the Form Editor.
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">                         
        private void initComponents() {
            jTextField1 = new javax.swing.JTextField();
            jMenuBar1 = new javax.swing.JMenuBar();
            jMenu1 = new javax.swing.JMenu();
            jMenu2 = new javax.swing.JMenu();
            jMenuItem1 = new javax.swing.JMenuItem();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jMenu1.setText("File");
            jMenuBar1.add(jMenu1);
            jMenu2.setText("Edit");
            jMenuItem1.setText("jMenuItem1");
            jMenu2.add(jMenuItem1);
            jMenuBar1.add(jMenu2);
            setJMenuBar(jMenuBar1);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(21, 21, 21)
                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(232, Short.MAX_VALUE))
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(19, 19, 19)
                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(230, Short.MAX_VALUE))
            pack();
        }// </editor-fold>                       
         * @param args the command line arguments
        public static void main(String args[]) {
            /* Set the Nimbus look and feel */
            //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
            /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
             * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
            try {
                for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                    if ("Windows".equals(info.getName())) {
                        javax.swing.UIManager.setLookAndFeel(info.getClassName());
                        break;
            } catch (ClassNotFoundException ex) {
                java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (InstantiationException ex) {
                java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (IllegalAccessException ex) {
                java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (javax.swing.UnsupportedLookAndFeelException ex) {
                java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            //</editor-fold>
            /* Create and display the form */
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new NewJFrame().setVisible(true);
        // Variables declaration - do not modify                    
        private javax.swing.JMenu jMenu1;
        private javax.swing.JMenu jMenu2;
        private javax.swing.JMenuBar jMenuBar1;
        private javax.swing.JMenuItem jMenuItem1;
        private javax.swing.JTextField jTextField1;
        // End of variables declaration                  
            } catch (ClassNotFoundException ex) {
                java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (InstantiationException ex) {
                java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (IllegalAccessException ex) {
                java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (javax.swing.UnsupportedLookAndFeelException ex) {
                java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            //</editor-fold>
            /* Create and display the form */
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new NewJFrame().setVisible(true);
        // Variables declaration - do not modify                    
        private javax.swing.JMenu jMenu1;
        private javax.swing.JMenu jMenu2;
        private javax.swing.JMenuBar jMenuBar1;
        private javax.swing.JMenuItem jMenuItem1;
        private javax.swing.JTextField jTextField1;
        // End of variables declaration                  

    The site looks OK -- actually quite impressive for what appears to be a from-scratch design.
    In Opera 10 under Snow Leopard 10.6.1, the design doesn't start to explode until the horizontally scrolling marquee comes across. I would strongly recommend just removing that marquee; it is an extremely outdated element of web design. If you do that, the design shouldn't blow up on you in other browsers.

  • I have a bee buzzing sound intermittently, I wonder if it's Firefox as using IE doesn't cause it?

    I have an intermittent sound of a bee buzzing - only happens when using Firefox. I don't like using IE as it's so slow, but it doesn't happen on there. I wonder if it's an add-on that's downloaded?

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    >In Firefox 4 Safe mode also disables plugins (Tools > Add-ons > Plugins) and hardware acceleration (Tools > Options > Advanced > General)

  • Setting colors so JTextField doesn't look like its there

    I have changed the background color of both my panel and JTextField to black and changed the foreground of my JTextField to a diffent color. The desired affect is that the text will appear without seeing the field but there is a white line around the field that will not disappear. Any ideas on how to get rid of the white outline?

    Possibly setOpaque(false), but it sounds to me like you want a JLabel.
    Cheers,
    Radish21

  • How to add a KeyListener for the JFrame (when I'm typing in a JTextField)?

    I have some problem with KeyListener..
    I add a KeyListener (I named it "listener") for my JFrame and it works fine. Then I add JTextField to the JFrame. When I'm typing some text in the JTextField - my "listener" does not work. (cause my JTextField doesn't have a KeyListener).
    I just want to make an ability to process hot keys which user presses in my java program..
    Does anyone know how to do it?

    In future, please ask Swing questions in the [Swing Forum.|http://forums.sun.com/forum.jspa?forumID=57]
    Don't use KeyListener. In fact KeyListener is seldom useful. Use key binding: [http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html]
    Or you can have menu items with accelerators (hot keys).

  • Exporting library assets to frame 1 causes delay

    I'm fairly new to Actionscript 3, just trying to puzzle something out.
    I have several small movie clips saved in the library of myCS4 Flash.fla file, I want to make them available to dynamically add to the display list as children, based on the button clicks of the viewer. I can get it all to work fine via Symbol Properties > Linkage > Export for Actionscript.
    BUT - When the movie clips are set to "export for actionscript" from the  Library, playback seems to hang on frame 1 until all of these  exported assets have downloaded. The big problem is that I have an ultra-simple but totally custom preloader/progress animation coded in a loop in the second and third frames, which kicks out to frame 4 and continues playback as soon as the download is complete.
    Because of this, the preloader has essentially become useless - because all that can be seen is several seconds of empty stage, until the vast majority of the bulky assets have downloaded. Then the preloader flashes onstage for just an instant, and disappears because the content is already up.
    So, my questions are:
    A)  Is there a SIMPLE alternate method to load these library assets in such a way that it doesn't cause this major lag on frame 1?
    B)  Failing that, I suspect I may have to retool my preloader to run as an ENTER_FRAME event in frame 1.  Is this worth the effort (can this potentially resolve the lag issue and allow for a meaningful preload progress animation, despite the lag from the asset export?)
    Any advice, thoughts, ideas (sample code?) would be greatly appreciated!!
    Thanks in advance,
    </a>
    **Edit follows**
    OK, so after a little more research, I have basically answered this question for myself. I'm updating the post for the benefit of others who may find themselves in my shoes somewhere down the road.
    The solution (as far as I can see) is to pretty much just avoid using the "Export for Actionscript" option for exporting assets to the timeline, as much as possible. Maybe it's fine for a few small assets, but not the best choice for large stuff, which in my case was the lions' share of the content!!
    Or at least don't use the default setting of exporting to frame one!!  This will likely foul up ANY preloader, because essentially Flash player will not display any of the content on frame one until ALL of the content on that frame has fully downloaded - You'll be stuck staring at an empty stage for ages, then when the preloader finally does show up on the stage and run, it will zip by in an instant while (probably) doing its job properly, but it's really only updating on the load progress of the balance of the SWF file.
    The info I found suggested one easy method of making the assets available to Actionscript -- simply just place all of the required library assets into some unseen frame in the timeline, shortly AFTER your preloader runs.  Then Flash Player will load them after the preloader has done its thing, and they will be available to be accessed by Actionscript later in the timeline when you really need them.
    Also FYI -- I also tried changing the export settings to have Flash export the assets in question in frame four instead of frame one, with the unfortunate and unexpected result that my published SWF began skipping playback directly to frame four, which also effectively killed my preloader (which was running in frames two and three.) This glitch remained, even after reverting the export setting back to export the assets in frame one!!  It seems like my .FLA file was irreversibly altered (contaminated??) by changing the export frame setting?!?  Yikes!!
    Luckily I had an earlier version saved under a different file name, it was relatively easy to go back to that version and bring it up to date.
    Anyway - that's all for now. Hope this info can help someone else....
    </a>

    See edit at bottom of original post....

  • Why doesn't the following method recurse infinitely?

    The following method opensquare should cause infinite recursion as far as I can see and yet it doesn't cause lockups or error messages of any kind when I run it in my program. Also I can't figure out why showgrid[x+b][x+c] isn't set to true for certain values of b and c between -1 and 1 even on the initial call (opensquare called for 1st time).
    Info about variables, arrays: x,y are always between zero and 9 and are passed to opensquare from a mousepressed method which converts the
    pixel coordinates to minegrid, showgrid etc. coordinates between 0..9.
    and showgrid[x][y] is always true before opensquare is called. For
    recursive calls it looks to me like showgrid[x][y] will always be true.
    showgrid, minegrid are 10 by 10 arrays of type boolean
    number grid is a 10 by 10 array of type int
    b & c are local ints to the method opensquare, specifically the for loops.
    assuming that the if test condition is passed and none of the squares around x,y has numbergrid>0 I would think that the method would call itself infinitely because for b& c=0 from the two for loops would mean the method would call itself for the same element (x+0,y+0)=x,y the same element. Also it would jump to one element and then the method would execute for the element it just jumped from and go back and forth... and yet this method doesn't infinitely recurse. Also, it doesn't seem to call opensquare for some values of b&c even though it passes the test condition.
    I really don't understand this. Could someone explain 1) why it doesn't infinitely recurse and 2) why for a (showgridl[x][y] element that doesn't for -1>b>1 -1>c>1, have any numbergrid[x+b][y+c] elements>0 around it and for -1>b>1 -1>c>1 no minegrid[x+b][y+c] elements that are true around it and meets the condition that [x+b]&[y+c] are both between 0 and 9) that it doesn't make showgrid[x+b][x+c] true for every x+b & y+c. In my program it doesn't make it true for every x+b,y+c assuming the previous conditions. It seems to head off in a direction of openingsquares in a x getting smaller y getting smaller direction and never seems to make showgrid[x+b[y+c] true for b>0&c=0.
    here is the method:
    public void opensquare(int x,int y){   
    int count=0;
    int squarecount=0;
    if (minegrid[x][y])
    { done=true;}
    while (!done) {
    if (showgrid[x][y]) {
    for (int b=-1; b<=1; b++)
    for (int c=-1; c<=1; c++)
    if ((x+b >= 0) && (x+b < XGRID) && (y+c >=0) && (y+c<YGRID) && (minegrid[x+b][y+c] == false ))
    showgrid[x+b][y+c]=true;
    if (numbergrid[x+b][y+c] > 0) {
    done = true;
    x=x+b; y=y+c;
    opensquare(x, y);
    else done=true;

    done is a boolean global variable and is transparent to all methods. The mousepressed method sets done to false every time the left mouse button is pressed. Opensquare is called from the mousepressed method after done is set to false.
    You say it's not recursion, it sure acts like recursion.
    I get elements in showgrid being opened that are as far as 4 elements less in x and y then the element passed to opensquare. I get a max of about 14 elements of showgrid being set to true when they were all false before opensquare was called. Since the for loops only run through 9 elements of showgrid it must be calling opensquare again which then opens more elements, unfortunately it usually only runs in one direction with x and y getting smaller and to a lesser extent x getting bigger and y getting smaller. It almost never sets showgrid[x][y] elements to true with x and y getting bigger. It is recursion ( the method calling itself is what I understand as recursion). I don't understand why it doesn't recurse infinitely as I explained before with adjacent showgrid elements calling opensquare for each other infinitely, or even a showgrid element producing a call to opensquare for itself infinitely. If I take out the else done=true statement I get multiple errors displayed in the applet viewer window coming from opensquare (I can't see the error it goes by too fast). Seems to me if it fails the boundary test done will never be true for every single branch of opensquare called.

  • Dimension Security causing SSAS cube to slow down

    Hi,
    Experiencing problems with with the SSAS cube once its processed. Sometimes takes around 20 mins for the excel to load once you drag down any dimension.The cube has got no calc scripts/named sets etc.It has around 17 dimensions and one dimension(Employer)
    has got 46 attributes and another (member)17.Others are pretty small.The Employer dimension is used twice as role playing and the both employer/member have got dimension security applied to it.There are about 6 roles have been set up to restrict access to
    members in these dimensions.
    The SQL profiler shows multiple "Query Dimension" (mostly for Employer dimension)followed by a lot of "Calculate Non Empty Current"s  .Suspect that the delay is due to the dimension security expression evaluation.This only happens
    during first access of the cube within a role and it's relatively quick when I'm accessing via a role which doesn't have dimension security applied to it.Is there anyway to automatically trigger this process right after the cube has been processed so that
    it doesn't cause agony to the first user?

    You could build a cache warmer that connects with EffectiveUserName=YourDomain\user1 on the connection string and loop through each user. But what is your dimension security expression? Maybe we can speed it up.
    http://artisconsulting.com/Blogs/GregGalloway

  • Opening a video playback app causes a system-wide stutter...

    I've been experiencing a very odd bug, and I can't find anyone else who's had it, let alone had a solution to it.
    When I open any app that plays back video (iTunes, QuickTime, VLC, DVD Player, etc.), it causes the display to hang up every few seconds. The hang-up lasts about a second, and persists even after I've stopped playing video and/or closed whatever app caused the stutter. Audio is unaffected, but the entire video output stutters, so you can see it even when moving the mouse pointer, scrolling up/down in a browser, etc. I have to restart to make it go away.
    Imagine trying to watch a movie or tv show, and the picture pausing every few seconds, and you can maybe understand how infuriating this is. It essentially makes watching video impossible. As a pro video editor, this doesn't really work for me. Launching Final Cut Pro 7 doesn't cause the stutter to start, but if I launch say, iTunes, before FCP, all video output is affected by the stutter, and I have to restart.
    The problem started occurring when I updated Snow Leopard from 10.6.6 to 10.6.7, and has persisted in 10.6.8
    I've tried messing with video card settings, Display settings, updating video card drivers, uninstalling/reinstalling Perian, etc., all to no avail.
    I would really appreciate any help on this. Thanks!

    Anyone?

  • When watching Youtube clips firefox causes windown blue screen - windows 7 on HP8540w

    Hi
    HP8540w laptop with Windows7 professional.
    when watching youtube clips windows crashes - blue screen of death!
    watching the same clips in Internet explorer doesn't cause a crash - isolated to Firefox.

    See below -- the way I asked the question the first time may not be clear. This post was a goof but I can't figure out how to delete it

  • BB Desktop Software causes Blue Screen at Windows XP

    Hi,
    I'm using BB Desktop Software 6.1.0.35 at Windows XP over Lenovo X201 laptop. When I try to sync the adressbook or calendar between my BB(Storm II 9520) and my laptop, it often causes blue screen at my laptop.
    I tried to uninstall and reinstall the desktop software but the blue screen occures again. But, the same version of Desktop Software at Windows VISTA over HP pavillion Desktop doesn't cause similar problem.
    Please kindly let me know how can I fix it or please check if there are any defects at your Desktop Software.
    If you need, I can send the screenshot to you via email.
    Best Regards,

    Just unisntall this version and install the desktop version 5.1. That will not give you blue screen infact it is fully compatible with xp
    Need any help please let me know

  • Underscore causing an exception in a toolbar

    //  I'm using Netbeans 7.4 release candidtate 2
    //  1)  Start the JavaFx Ensemble program - thank you very much.  It has saved me many hours.
    //  2)  In Ensemble Click on "Hidden Split Pane".
    //  3)  Click the "Source Code" tab.
    //  4)  Click the "Save Netbeans project".
    //  5)  Replace HiddenSplitPaneSample.java with this code (see below).
    //  6)  After starting: click the "double arrow" twice (maybe three times) to display the options in the center pane.
    //  7)  The second time you should get the exception.  (See Netbeans output window.)
    //  8)  You get the double arrow because dividerPositions() is set too small; but that may be the way some user
    //      would have things "split".
    //  Why this is important to me.  I included a phony getWord() method (see below).  In my app getWord() will
    //  actually go to disk and get a word, in the human language that the user has selected somewhere else.
    //  Example:    if they have English selected then getWord( "Add_One" ) will return "Add One" and display it as the buttons text.
    //              if they have Chinese selected then getWord( "Add_One" ) will return "Chinese equivalent of Add One" and display it as the buttons text.
    //              If there is no replacement in the file then getWord( "Add_One" ) will return "Add_One".
    //  The question is why does the underscore cause an exception?  I could easily replace the under score with
    //  a dash (see below) because that doesn't cause the exception. But that begs the question what will happen
    //  when I'm using Chinese, Japanese, or Hindi?  Is there a stray character here and there that will cause
    //  this exception?
    //  Notice also that it has removed my underscore: "Add_One" becomes "AddOne".
    * Copyright (c) 2008, 2012 Oracle and/or its affiliates.
    * All rights reserved. Use is subject to license terms.
    import javafx.application.Application;
    import javafx.geometry.HPos;
    import javafx.geometry.VPos;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.ScrollPane;
    import javafx.stage.Stage;
    import javafx.scene.control.SplitPane;
    import javafx.scene.control.SplitPaneBuilder;
    import javafx.scene.control.ToolBar;
    import javafx.scene.control.ToolBarBuilder;
    import javafx.scene.layout.Pane;
    import javafx.scene.layout.RegionBuilder;
    import javafx.scene.layout.VBox;
    public class HiddenSplitPaneSample extends Application {
        ToolBar     standardToolbar     = null;
        ScrollPane  scrollPane          = new ScrollPane    ();
        class MyPane extends Pane   {
            @Override
            protected void layoutChildren() {
                super.layoutChildren   ();
                double  w   = getWidth  ();
                double  h   = getHeight ();
                double  ph  = standardToolbar.getHeight();
                layoutInArea    ( standardToolbar,  0,  0,  w, ph,    0,  HPos.CENTER,    VPos.CENTER );
                layoutInArea    ( scrollPane,       0,  0+ph,   w, h-ph,    0,  HPos.LEFT,    VPos.CENTER );
        private String  getWord ( String wordToGet )    {
            return  wordToGet;
        private void init(Stage primaryStage) {
            MyPane  pane1   = new MyPane    ();
                    pane1   .setPrefWidth   ( 400 );
                    pane1   .setPrefHeight  ( 400 );
            standardToolbar = ToolBarBuilder.create().build();
                standardToolbar     .setPrefHeight      ( 30 );
                standardToolbar     .setMinHeight       ( 30 );
                standardToolbar     .setMaxHeight       ( 30 );
                pane1.getChildren() .add( standardToolbar );
                Button  addOneButton    = new Button    ( getWord( "Add_One"    ) );
                Button  addTwoButton    = new Button    ( getWord( "Add_Two"    ) ); 
                Button  addThreeButton  = new Button    ( getWord( "Add_Three"  ) );
                Button  addFourButton   = new Button    ( getWord( "Add_Four"   ) ); 
                //Button  addOneButton    = new Button    ( getWord( "Add-One"    ) );
                //Button  addTwoButton    = new Button    ( getWord( "Add-Two"    ) ); 
                //Button  addThreeButton  = new Button    ( getWord( "Add-Three"  ) );
                //Button  addFourButton   = new Button    ( getWord( "Add-Four"   ) ); 
                standardToolbar .getItems().add ( addOneButton      );
                standardToolbar .getItems().add ( addTwoButton      );
                standardToolbar .getItems().add ( addThreeButton    );
                standardToolbar .getItems().add ( addFourButton     );
            VBox    vbox    = new VBox  ();
            scrollPane  .setContent     ( vbox );
            scrollPane  .setFitToWidth  ( true );
            pane1   .getChildren().add     ( scrollPane );
            Group root = new Group();
            primaryStage.setScene(new Scene(root));
            String hidingSplitPaneCss = HiddenSplitPaneSample.class.getResource("HiddenSplitPane.css").toExternalForm();
            final SplitPane splitPane = SplitPaneBuilder.create().id("hiddenSplitter").items(
                    RegionBuilder.create().styleClass("rounded").build(),
                    pane1,//RegionBuilder.create().styleClass("rounded").build(),
                    RegionBuilder.create().styleClass("rounded").build()).dividerPositions(new double[]{0.33, 0.50}).build();
            splitPane.getStylesheets().add(hidingSplitPaneCss);
            root.getChildren().add(splitPane);
        @Override public void start(Stage primaryStage) throws Exception {
            primaryStage.setX      ( 0 );
            primaryStage.setY      ( 0 );
            primaryStage.setWidth  ( 500 );
            primaryStage.setHeight ( 500 );
            init(primaryStage);
            primaryStage.show();
        public static void main(String[] args) { launch(args); }

    The underscore is being parsed as an indicator that the next character should be a mnemonic, and the underscore is then stripped. This happens by default on Buttons, but not on Labels.
    See the API in the Labeled class. You can either turn parsing off, or you can use two underscores to represent one underscore.

  • Hyper-V cluster Backup causes virtual machine reboots for common Cluster Shared Volumes members.

    I am having a problem where my VMs are rebooting while other VMs that share the same CSV are being backed up. I have provided all the information that I have gather to this point below. If I have missed anything, please let me know.
    My HyperV Cluster configuration:
    5 Node Cluster running 2008R2 Core DataCenter w/SP1. All updates as released by WSUS that will install on a Core installation
    Each Node has 8 NICs configured as follows:
     NIC1 - Management/Campus access (26.x VLAN)
     NIC2 - iSCSI dedicated (22.x VLAN)
     NIC3 - Live Migration (28.x VLAN)
     NIC4 - Heartbeat (20.x VLAN)
     NIC5 - VSwitch (26.x VLAN)
     NIC6 - VSwitch (18.x VLAN)
     NIC7 - VSwitch (27.x VLAN)
     NIC8 - VSwitch (22.x VLAN)
    Following hotfixes additional installed by MS guidance (either while build or when troubleshooting stability issue in Jan 2013)
     KB2531907 - Was installed during original building of cluster
     KB2705759 - Installed during troubleshooting in early Jan2013
     KB2684681 - Installed during troubleshooting in early Jan2013
     KB2685891 - Installed during troubleshooting in early Jan2013
     KB2639032 - Installed during troubleshooting in early Jan2013
    Original cluster build was two hosts with quorum drive. Initial two hosts were HST1 and HST5
    Next host added was HST3, then HST6 and finally HST2.
    NOTE: HST4 hardware was used in different project and HST6 will eventually become HST4
    Validation of cluster comes with warning for following things:
     Updates inconsistent across hosts
      I have tried to manually install "missing" updates and they were not applicable
      Most likely cause is different build times for each machine in cluster
       HST1 and HST5 are both the same level because they were built at same time
       HST3 was not rebuilt from scratch due to time constraints and it actually goes back to Pre-SP1 and has a larger list of updates that others are lacking and hence the inconsistency
       HST6 was built from scratch but has more updates missing than 1 or 5 (10 missing instead of 7)
       HST2 was most recently built and it has the most missing updates (15)
     Storage - List Potential Cluster Disks
      It says there are Persistent Reservations on all 14 of my CSV volumes and thinks they are from another cluster.
      They are removed from the validation set for this reason. These iSCSI volumes/disks were all created new for
      this cluster and have never been a part of any other cluster.
     When I run the Cluster Validation wizard, I get a slew of Event ID 5120 from FailoverClustering. Wording of error:
      Cluster Shared Volume 'Volume12' ('Cluster Disk 13') is no longer available on this node because of
      'STATUS_MEDIA_WRITE_PROTECTED(c00000a2)'. All I/O will temporarily be queued until a path to the
      volume is reestablished.
     Under Storage and Cluster Shared VOlumes in Failover Cluster Manager, all disks show online and there is no negative effect of the errors.
    Cluster Shared Volumes
     We have 14 CSVs that are all iSCSI attached to all 5 hosts. They are housed on an HP P4500G2 (LeftHand) SAN.
     I have limited the number of VMs to no more than 7 per CSV as per best practices documentation from HP/Lefthand
     VMs in each CSV are spread out amonst all 5 hosts (as you would expect)
    Backup software we use is BackupChain from BackupChain.com.
    Problem we are having:
     When backup kicks off for a VM, all VMs on same CSV reboot without warning. This normally happens within seconds of the backup starting
    What have to done to troubleshoot this:
     We have tried rebalancing our backups
      Originally, I had backup jobs scheduled to kick off on Friday or Saturday evening after 9pm
      2 or 3 hosts would be backing up VMs (Serially; one VM per host at a time) each night.
      I changed my backup scheduled so that of my 90 VMs, only one per CSV is backing up at the same time
       I mapped out my Hosts and CSVs and scheduled my backups to run on week nights where each night, there
       is only one VM backed up per CSV. All VMs can be backed up over 5 nights (there are some VMs that don't
       get backed up). I also staggered the start times for each Host so that only one Host would be starting
       in the same timeframe. There was some overlap for Hosts that had backups that ran longer than 1 hour.
      Testing this new schedule did not fix my problem. It only made it more clear. As each backup timeframe
      started, whichever CSV the first VM to start was on would have all of their VMs reboot and come back up.
     I then thought maybe I was overloading the network still so I decided to disable all of the scheduled backup
     and run it manually. Kicking off a backup on a single VM, in most cases, will cause the reboot of common
     CSV members.
     Ok, maybe there is something wrong with my backup software.
      Downloaded a Demo of Veeam and installed it onto my cluster.
      Did a test backup of one VM and I had not problems.
      Did a test backup of a second VM and I had the same problem. All VMs on same CSV rebooted
     Ok, it is not my backup software. Apparently it is VSS. I have looked through various websites. The best troubleshooting
     site I have found for VSS in one place it on BackupChain.com (http://backupchain.com/hyper-v-backup/Troubleshooting.html)
     I have tested almost every process on there list and I will lay out results below:
      1. I have rebooted HST6 and problems still persist
      2. When I run VSSADMIN delete shadows /all, I have no shadows to delete on any of my 5 nodes
       When I run VSSADMIN list writers, I have no error messages on any writers on any node...
      3. When I check the listed registry key, I only have the build in MS VSS writer listed (I am using software VSS)
      4. When I run VSSADMIN Resize ShadowStorge command, there is no shadow storage on any node
      5. I have completed the registration and service cycling on HST6 as laid out here and most of the stuff "errors"
       Only a few of the DLL's actually register.
      6. HyperV Integration Services were reconciled when I worked with MS in early January and I have no indication of
       further issue here.
      7. I did not complete the step to delete the Subscriptions because, again, I have no error messages when I list writers
      8. I removed the Veeam software that I had installed to test (it hadn't added any VSS Writer anyway though)
      9. I can't realistically uninstall my HyperV and test VSS
      10. Already have latest SPs and Updates
      11. This is part of step 5 so I already did this. This seems to be a rehash of various other stratgies
     I have used the VSS Troubleshooter that is part of BackupChain (Ctrl-T) and I get the following error:
      ERROR: Selected writer 'Microsoft Hyper-V VSS Writer' is in failed state!
      - Status: 8 (VSS_WS_FAILED_AT_PREPARE_SNAPSHOT)
      - Writer Failure code: 0x800423f0 (<Unknown error code>)
      - Writer ID: {66841cd4-6ded-4f4b-8f17-fd23f8ddc3de}
      - Instance ID: {d55b6934-1c8d-46ab-a43f-4f997f18dc71}
      VSS snapshot creation failed with result: 8000FFFF
    VSS errors in event viewer. Below are representative errors I have received from various Nodes of my cluster:
    I have various of the below spread out over all hosts except for HST6
    Source: VolSnap, Event ID 10, The shadow copy of volume took too long to install
    Source: VolSnap, Event ID 16, The shadow copies of volume x were aborted because volume y, which contains shadow copy storage for this shadow copy, wa force dismounted.
    Source: VolSnap, Event ID 27, The shadow copies of volume x were aborted during detection because a critical control file could not be opened.
    I only have one instance of each of these and both of the below are from HST3
    Source: VSS, Event ID 12293, Volume Shadow Copy Service error: Error calling a routine on a Shadow Copy Provider {b5946137-7b9f-4925-af80-51abd60b20d5}. Routine details RevertToSnashot [hr = 0x80042302, A Volume Shadow Copy Service component encountered an
    unexpected error.
    Source: VSS, Event ID 8193, Volume Shadow Copy Service error: Unexpected error calling routine GetOverlappedResult.  hr = 0x80070057, The parameter is incorrect.
    So, basically, everything I have tried has resulted in no success towards solving this problem.
    I would appreciate anything assistance that can be provided.
    Thanks,
    Charles J. Palmer
    Wright Flood

    Tim,
    Thanks for the reply. I ran the first two commands and got this:
    Name                                                            
    Role Metric
    Cluster Network 1                                              
    3  10000
    Cluster Network 2 - HeartBeat                              1   1300
    Cluster Network 3 - iSCSI                                    0  10100
    Cluster Network 4 - LiveMigration                         1   1200
    When you look at the properties of each network, this is how I have it configured:
    Cluster Network 1 - Allow cluster network communications on this network and Allow clients to connect through this network (26.x subnet)
    Cluster Network 2 - Allow cluster network communications on this network. New network added while working with Microsoft support last month. (28.x subnet)
    Cluster Network 3 - Do not allow cluster network communications on this network. (22.x subnet)
    Cluster Network 4 - Allow cluster network communications on this network. Existing but not configured to be used by VMs for Live Migration until MS corrected. (20.x subnet)
    Should I modify my metrics further or are the current values sufficient.
    I worked with an MS support rep because my cluster (once I added the 5th host) stopped being able to live migrate VMs and I had VMs host jumping on startup. It was a mess for a couple of days. They had me add the Heartbeat network as part of the solution
    to my problem. There doesn't seem to be anywhere to configure a network specifically for CSV so I would assume it would use (based on my metrics above) Cluster Network 4 and then Cluster Network 2 for CSV communications and would fail back to the Cluster Network
    1 if both 2 and 4 were down/inaccessible.
    As to the iSCSI getting a second NIC, I would love to but management wants separation of our VMs by subnet and role and hence why I need the 4 VSwitch NICs. I would have to look at adding an additional quad port NIC to my servers and I would be having to
    use half height cards for 2 of my 5 servers for that to work.
    But, on that note, it doesn't appear to actually be a bandwidth issue. I can run a backup for a single VM and get nothing on the network card (It caused the reboots before any real data has even started to pass apparently) and still the problem occurs.
    As to Backup Chain, I have been working with the vendor and they are telling my the issue is with VSS. They also say they support CSV as well. If you go to this page (http://backupchain.com/Hyper-V-Backup-Software.html)
    they say they support CSVs. Their tech support has been very helpful but unfortunately, nothing has fixed the problem.
    What is annoying is that every backup doesn't cause a problem. I have a daily backup of one of our machines that runs fine without initiating any additional reboots. But most every other backup job will trigger the VMs on the common CSV to reboot.
    I understood about the updates but I had to "prove" it to the MS tech I was on the phone with and hence I brought it up. I understand on the storage as well. Why give a warning for something that is working though... I think that is just a poor indicator
    that it doesn't explain that in the report.
    At a loss for what else I can do,
    Charles J. Palmer

  • Acrobat 9 Pro - Closing Causes Extended Hard Drive Activity

    This issue started after a year or more of clean running and automated Adobe updates.  My installation is up to date according to Adobe.
    Dell Precision 4300 laptop, 4 GB RAM, Windows XP Pro, all patches etc. up to date.
    The problem I am seeing only occurs when I attempt to close Acrobat.  Using Windows Task Manager to obtain some of the details, the summary is as follows:
    View a 200 KB single page PDF document.
    Shut down Acrobat (simply closing the document and leaving an empty instance of Acrobat open doesn't cause any trouble).
    Acrobat window remains open for a protracted length of time, hard drive is active constantly.
    At this point, Task Manager shows acrobat.exe using 28 MB of memory and this number remains constant while the window is visible on screen.
    Acrobat disappears from the screen.
    Hard drive activity continues, but now Task Manager shows the 28 MB of memory ramping up.  It eventually peaks and holds at 336 MB!
    During this time, the I/O Read and Write associated with the Acrobat.exe process continues to climb.  In this test, the final number is 1,100 MB and 700 MB respectively. Seems a little extreme for a 200 KB PDF!
    The acrobat.exe process eventually disappears from Task Manager and the hard drive activity ceases.  This takes a couple of minutes and happens every time I close Acrobat!  I have got into the habit of simply leaving an empty window open, or killing the process via Task Manager.
    If I try to do a shut down of the system immediately after closing Acrobat (while the drive is still working hard), I will get a warning that acrobat.exe isn't responding, or sometimes, that font capture isn't responding.  If I wait, the process eventually completes on its own and the computer shuts down.
    I have tried the 'repair installation' option in Acrobat.  No joy.  None of the other CS4 applications seem to have this problem... Photoshop just closes without any drama.
    Ideas?

    I have the same problem of HDD activity after closing any pdf file, whatever the file size.
    I'm done with adobe acrobat..
    This is not only the problem.. I installed the Acrobat 10 and I found that I cannot modify the toolbar by drag and drop and I cannot add the (properties) bar to the main toolbar (or even the buttons of the properties bar), So the properties bar still floating and when i resize the acrobat window or dock the window to the left or to the righ i have to move the properties bar over the screen...
    In Pro9 the properties bar can be a part of the main toolbar, BUT sometimes the properties bar goes disabled and I have to close the Acrobar and reopen it to return the propeties bar enabled again. So, it seems to me adobe acrobat solved the problem in Pro10 by not allowing adding the properties bar to the the main toolbar...
    Recently I solved the annoying options dialog box by renaming some plugin files!!
    Why the Adobe Acrobat takes 2G of HDD space!!!..
    Now I moved to Nitro PDF Professional software and it has all the Acrobat features of editing, viewing, drawing...etc and it takes less than 100M of my HDD...and this what Corel PDF Fusion do as well. The Corel PDF Fusion has the highlight text, editing text and page actions..etc but it doesn't have the drawing feature yet, maybe because it is v1.0 in 2011
    tens of new PDF sofware in the market... Wake Up acrobat team...

  • My search bar (FF 22) has suddenly become inoperable; hitting enter doesn't do anything (am only getting to sites via bookmarks and links now)

    I'm a long-time FF user. Am using version 22 now (which appears to have updated from 18 by itself though I had it set to ask me before updating - but 22 2 worked fine for me once I'd solved the problem of screen being so large it hid my upper menu and tabs). Now suddenly, just in the last week, entering a (valid) url in the search bar and hitting enter doesn't 'do' anything. No search capability at all because hitting enter doesn't cause FF to take any notice of me putting in a URL for a site I want to go to (I use the same sites over and over so not just some new site acting up).
    Not my keyboard or mouse malfunctioning; they function as usual in other programs I use constantly - email, inventory database - and no updates on either program, in Word, Excel, NotePad, my photo program, whatever. Security Essentials updated about a week ago but I can't see inside it to see if it changed anything. Am an XP Pro user and keep it updated (till next year, anyway!). Keyboard is an Elite Real Force, mouse Evoluent (corded). Have used both for a couple of years so not new to me.
    Only way I can use FF 22 in the last few days to get to 'any' site, including my own, is to either go from the sites pinned to my opening screen or from my bookmarks. I tried unpinning some of the sites on my opening screen and then typing in their URL and hitting enter but that didn't change anything - the search bar is still inoperable and hitting 'enter' doesn't do anything at all.
    So why did my search bar quit working? Is there a fix?

    Hi aaabooks, you wrote:
    <blockquote>I did the Help &gt; Troubleshooting Information &gt; "Show Folder" button bit you said to do but is there something I'm supposed to do re the 'switch back to FF' you speak of? Like click on 'Reset FireFox' to Default State first?</blockquote>
    No, do not use the Reset feature. When you click "Show Folder" Windows opens a Windows Explorer window with your personal settings files listed. I want you to delete a file in that folder, but first, I want Firefox to be closed. When I said to switch back to Firefox and exit, I meant to make Firefox the active window, then use File>Exit or Firefox>Exit to close the application.

Maybe you are looking for

  • Relink is not working  ||  Illustrator CC

    Hi, I've placed an img file into the project. I anted to make some change on Photoshop. I did it by clicking icon of pencil in menu Links in Illustrator. I made changes and saved it as .psd file. So i needed to relink image on project with the new .p

  • Lion keeps freezing, computer slower, WiFi problems

    Ever since installing Lion my computer is much slower everything is lagging. My computer never frezes and now it freezes all the time mostly when i am trying to open something in the dock. the Wifi takes forever to conncet. Is Apple going to fix this

  • Connecting electric guitar(no preamp) to Imac for garage band, w/out interf

    Hey now, I was wondering if I can plug my Fender Strat (no pre amp) directly into my Imac W/garage band 08, without an audio interface. I have a 1/4" to 1/8" adaptor, but not getting anything. Is there a preamp built into the imac? HELLPPP!!

  • Another IOS6 blunder or a Virus?

    I am having a weird experience since yesterday, i have to double click on icon on ipad to open it (even to slide to open i have to double click on the slide button on the screen), it looks like i am using a keyboard to operate ipad. is it a virus or

  • BADI's in SD

    Hello All. Does anybody know if there are any BADI;s to work with for SD saving of contracts? Thanks!