< prev index next >
src/demo/share/jfc/J2Ddemo/java2d/DemoGroup.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:
*
*** 74,84 ****
public int columns = 2;
private static final Font font = new Font(Font.SERIF, Font.PLAIN, 10);
private final EmptyBorder emptyB = new EmptyBorder(5, 5, 5, 5);
private final BevelBorder bevelB = new BevelBorder(BevelBorder.LOWERED);
private String groupName;
! public JPanel clonePanels[];
public JTabbedPane tabbedPane;
public DemoGroup(String name, DemoInstVarsAccessor demoInstVars) {
groupName = name;
--- 74,84 ----
public int columns = 2;
private static final Font font = new Font(Font.SERIF, Font.PLAIN, 10);
private final EmptyBorder emptyB = new EmptyBorder(5, 5, 5, 5);
private final BevelBorder bevelB = new BevelBorder(BevelBorder.LOWERED);
private String groupName;
! public JPanel[] clonePanels;
public JTabbedPane tabbedPane;
public DemoGroup(String name, DemoInstVarsAccessor demoInstVars) {
groupName = name;
*** 232,244 ****
DemoPanel dp = (DemoPanel) p.getComponent(i);
if (dp.surface != null && c != null) {
Tools t = dp.tools;
t.setVisible(isValid());
t.issueRepaint = issueRepaint;
! JToggleButton b[] = { t.toggleB, t.aliasB, t.renderB,
t.textureB, t.compositeB };
! JCheckBox cb[] = { c.toolBarCB, c.aliasCB, c.renderCB,
c.textureCB, c.compositeCB };
for (int j = 0; j < b.length; j++) {
if (c.obj != null && c.obj.equals(cb[j])) {
if (b[j].isSelected() != cb[j].isSelected()) {
b[j].doClick();
--- 232,244 ----
DemoPanel dp = (DemoPanel) p.getComponent(i);
if (dp.surface != null && c != null) {
Tools t = dp.tools;
t.setVisible(isValid());
t.issueRepaint = issueRepaint;
! JToggleButton[] b = { t.toggleB, t.aliasB, t.renderB,
t.textureB, t.compositeB };
! JCheckBox[] cb = { c.toolBarCB, c.aliasCB, c.renderCB,
c.textureCB, c.compositeCB };
for (int j = 0; j < b.length; j++) {
if (c.obj != null && c.obj.equals(cb[j])) {
if (b[j].isSelected() != cb[j].isSelected()) {
b[j].doClick();
*** 332,342 ****
}
panel.repaint();
panel.revalidate();
}
! public static void main(String args[]) {
class DemoInstVarsAccessorImpl extends DemoInstVarsAccessorImplBase {
private volatile JCheckBoxMenuItem ccthreadCB;
public void setCcthreadCB(JCheckBoxMenuItem ccthreadCB) {
this.ccthreadCB = ccthreadCB;
--- 332,342 ----
}
panel.repaint();
panel.revalidate();
}
! public static void main(String[] args) {
class DemoInstVarsAccessorImpl extends DemoInstVarsAccessorImplBase {
private volatile JCheckBoxMenuItem ccthreadCB;
public void setCcthreadCB(JCheckBoxMenuItem ccthreadCB) {
this.ccthreadCB = ccthreadCB;
< prev index next >