KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > terracotta > dso > editors > RootPanel


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package org.terracotta.dso.editors;
5
6 import java.awt.BorderLayout JavaDoc;
7 import java.awt.Graphics JavaDoc;
8 import java.awt.Panel JavaDoc;
9
10 /**
11  * Heavyweight java.awt.Panel that is the root for all our Swing-in-SWT objects.
12  * This is different from its base type in that it doesn't clear the background
13  * before painting.
14  */

15 public class RootPanel extends Panel JavaDoc {
16   public RootPanel() {
17     super(new BorderLayout JavaDoc());
18   }
19
20   public void update(Graphics JavaDoc g) {
21     if(isShowing()) {
22       paint(g);
23     }
24   }
25 }
26
Popular Tags