< prev index next >
src/demo/share/jfc/J2Ddemo/java2d/DemoPanel.java
Print this page
*** 1,8 ****
/*
*
! * Copyright (c) 2007, 2011, 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:
*
*** 72,83 ****
if (obj instanceof Surface) {
add("South", tools = new Tools(surface = (Surface) obj, demoInstVars));
}
if (obj instanceof CustomControlsContext) {
ccc = (CustomControlsContext) obj;
! Component cmps[] = ccc.getControls();
! String cons[] = ccc.getConstraints();
for (int i = 0; i < cmps.length; i++) {
add(cmps[i], cons[i]);
}
}
} catch (Exception e) {
--- 72,83 ----
if (obj instanceof Surface) {
add("South", tools = new Tools(surface = (Surface) obj, demoInstVars));
}
if (obj instanceof CustomControlsContext) {
ccc = (CustomControlsContext) obj;
! Component[] cmps = ccc.getControls();
! String[] cons = ccc.getConstraints();
for (int i = 0; i < cmps.length; i++) {
add(cmps[i], cons[i]);
}
}
} catch (Exception e) {
< prev index next >