/** * Creates the peer of the Checkbox. The peer allows you to change the look of the Checkbox * without changing its functionality. * * @see j86.java.awt.Toolkit#createCheckbox(java.awt.Checkbox) * @see j86.java.awt.Component#getToolkit() */ public void addNotify() { synchronized (getTreeLock()) { if (peer == null) peer = getToolkit().createCheckbox(this); super.addNotify(); } }