< prev index next >

src/demo/share/jfc/SampleTree/SampleTree.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2015, 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,7 ---- /* ! * Copyright (c) 1997, 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: *
*** 613,623 **** public void stateChanged(ChangeEvent e) { tree.setEditable(((JCheckBox) e.getSource()).isSelected()); } } // End of class SampleTree.TreeEditableChangeListener ! public static void main(String args[]) { try { SwingUtilities.invokeAndWait(new Runnable() { @SuppressWarnings(value = "ResultOfObjectAllocationIgnored") public void run() { --- 613,623 ---- public void stateChanged(ChangeEvent e) { tree.setEditable(((JCheckBox) e.getSource()).isSelected()); } } // End of class SampleTree.TreeEditableChangeListener ! public static void main(String[] args) { try { SwingUtilities.invokeAndWait(new Runnable() { @SuppressWarnings(value = "ResultOfObjectAllocationIgnored") public void run() {
< prev index next >