com.monkeycoder.monkeynes.gui
Class GuiHelper
java.lang.Object
|
+--com.monkeycoder.monkeynes.gui.GuiHelper
- public class GuiHelper
- extends Object
This class provides some convenience GUI methods.
Originally part of the MonkeyNES project.
- Author:
- David Stephens
|
Method Summary |
static JPanel |
flowWrapper(Component inComponent)
Creates a JPanel with a FlowLayout wrapped around the desired Component. |
static JPanel |
flowWrapper(int flowAlign,
Component inComponent)
Creates a JPanel with a FlowLayout wrapped around the desired Component. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GuiHelper
public GuiHelper()
flowWrapper
public static JPanel flowWrapper(Component inComponent)
- Creates a JPanel with a FlowLayout wrapped around the desired Component.
- Parameters:
inComponent - The component to wrap in a FlowLayout.
- Returns:
- The new JPanel with nested Component.
flowWrapper
public static JPanel flowWrapper(int flowAlign,
Component inComponent)
- Creates a JPanel with a FlowLayout wrapped around the desired Component.
- Parameters:
flowAlign - The desired alignment for the containing FlowLayout.inComponent - The component to wrap in a FlowLayout.
- Returns:
- The new JPanel with nested Component.