de.muntjak.tinylookandfeel
Class TinyMenuBarUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.MenuBarUI
          extended by javax.swing.plaf.basic.BasicMenuBarUI
              extended by de.muntjak.tinylookandfeel.TinyMenuBarUI

public class TinyMenuBarUI
extends javax.swing.plaf.basic.BasicMenuBarUI

TinyMenuBarUI


Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicMenuBarUI
changeListener, containerListener, menuBar
 
Constructor Summary
TinyMenuBarUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Creates the UI delegate for the given component.
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          Paints the menu bar background.
 
Methods inherited from class javax.swing.plaf.basic.BasicMenuBarUI
createChangeListener, createContainerListener, getMaximumSize, getMinimumSize, installDefaults, installKeyboardActions, installListeners, installUI, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getPreferredSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TinyMenuBarUI

public TinyMenuBarUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Creates the UI delegate for the given component. Because in normal application there is usually only one menu bar, the UI delegate isn't cached here.

Parameters:
mainColor - The component to create its UI delegate.
Returns:
The UI delegate for the given component.

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Paints the menu bar background.

Overrides:
paint in class javax.swing.plaf.ComponentUI
Parameters:
g - The graphics context to use.
mainColor - The component to paint.