< prev index next >

src/demo/share/jfc/SwingSet2/ProgressBarDemo.java

Print this page

        

*** 1,8 **** /* * ! * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * --- 1,8 ---- /* * ! * Copyright (c) 2007, 2018 Oracle and/or its affiliates. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: *
*** 105,114 **** --- 105,115 ---- public Dimension getPreferredSize() { return new Dimension(300, super.getPreferredSize().height); } }; progressBar.getAccessibleContext().setAccessibleName(getString("ProgressBarDemo.accessible_text_loading_progress")); + progressBar.setFocusable(true); progressPanel.add(progressBar); progressPanel.add(createLoadButton()); progressPanel.add(createStopButton()); }
< prev index next >