Ejemplo n.º 1
0
 public void doLayout() {
   if (view != null) {
     view.setSize(view.getPreferredSize());
     visibleRect = getVisibleRect();
     view.setLocation(visibleRect.x, visibleRect.y);
   }
   glassPane.setLocation(0, 0);
   glassPane.setSize(getWidth(), getHeight());
 }
Ejemplo n.º 2
0
 // not used
 public Component add(Component c) {
   // System.out.println("Add " + c);
   if (c instanceof AbstractButton) {
     // System.out.println("Add to button group " + c);
     c.setVisible(true);
     bg.add((AbstractButton) c);
   }
   if (c instanceof Anchorable && ((Anchorable) c).isAnchored()) {
     c.setSize(c.getPreferredSize());
   }
   return super.add(c);
 }
Ejemplo n.º 3
0
// ----------------------------------------------------------------------------