public abstract class BasicFrame extends javax.swing.JFrame implements BasicInterface
javax.swing.JFrame.AccessibleJFrame
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
protected java.util.List<javax.swing.JComponent> |
frameComponents
COLLECTION OF VARIOUS COMPONENTS TO ADD TO JPANEL
Itarable to add components to JPanel |
protected javax.swing.JMenuBar |
frameMenuBar
JMENUBAR OBJECT ADDED BY DEFAULT TO THE FRAME
- Hosts JMenu objects - To be populated in the addMenuBarFrameItem method by iterating the frameMenus collection |
protected java.util.List<javax.swing.JMenu> |
frameMenus
COLLECTION OF COMPLETE PRIMARY JMENU TO ADD TO JMENUBAR
- Itarable to add components to JMenuBar |
protected javax.swing.JPanel |
framePanel
JPANEL OBJECT ADDED BY DEFAULT TO THE FRAME
- Hosts various components - To be populated in the addPanelFrameComponents method by iterating the frameComponents collection |
protected javax.swing.JToolBar |
frameToolbar
JTOOLBAR OBJECT ADDED BY DEFAULT TO THE FRAME
- Hosts various components - To be populated in the addToolBarFrameComponents method by iterating the toolBarComponents collection |
protected java.util.List<javax.swing.JComponent> |
toolBarComponents
COLLECTION OF VARIOUS COMPONENTS TO ADD TO JTOOLBAR
Itarable to add components to JToolBar |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
CLOSE_DISPOSE, CLOSE_DO_NOTHING, CLOSE_END, CLOSE_HIDE, CURSOR_CROSSHAIR, CURSOR_DEFAULT, CURSOR_HAND, CURSOR_MOVE, CURSOR_TEXT, CURSOR_WAIT, DATE_FORMAT_DB, DATE_FORMAT_IT, DATE_FORMAT_US, FONT_DIALOG, FONT_DIALOG_INPUT, FONT_MONOSPACED, FONT_SANS_SERIF, FONT_SERIF, FONT_STYLE_BOLD, FONT_STYLE_ITALIC, FONT_STYLE_NORMAL, FORMAT_TEXT_CENTER, FORMAT_TEXT_JUSTIFIED, FORMAT_TEXT_LEFT, FORMAT_TEXT_RIGHT, FRAME_EXTENDED, PRINT_FORMAT_A0, PRINT_FORMAT_A1, PRINT_FORMAT_A2, PRINT_FORMAT_A3, PRINT_FORMAT_A4, PRINT_FORMAT_A5, PRINT_LANDSCAPE, PRINT_PORTRAIT, PRINT_SIZE_A0_HEIGHT, PRINT_SIZE_A0_WIDTH, PRINT_SIZE_A1_HEIGHT, PRINT_SIZE_A1_WIDTH, PRINT_SIZE_A2_HEIGHT, PRINT_SIZE_A2_WIDTH, PRINT_SIZE_A3_HEIGHT, PRINT_SIZE_A3_WIDTH, PRINT_SIZE_A4_HEIGHT, PRINT_SIZE_A4_WIDTH, PRINT_SIZE_A5_HEIGHT, PRINT_SIZE_A5_WIDTH, SELECTION_MONO, SELECTION_MULTI, TEXT_CENTER, TEXT_LEFT, TEXT_RIGHT
Constructor and Description |
---|
BasicFrame(java.lang.StringBuilder frameTitle,
int width,
int height,
javax.swing.JFrame parentFrame,
int closeOperation,
java.awt.Color frameBackground,
java.lang.Object[] args)
CONSTRUCTOR FOR SIZED FRAME WITH DEFAULT JAVA ICON
- Complete non-customizable constructors - Instantiate at center of parent frame (center-screen if parent frame = null) - Not resizable by user |
BasicFrame(java.lang.StringBuilder frameTitle,
javax.swing.JFrame parentFrame,
int closeOperation,
java.awt.Color frameBackground,
java.lang.Object[] args)
CONSTRUCTOR FOR EXTENDED FRAME WITH DEFAULT JAVA ICON
- Complete non-customizable constructors |
BasicFrame(java.lang.StringBuilder frameTitle,
java.lang.String frameIconPath,
int width,
int height,
javax.swing.JFrame parentFrame,
int closeOperation,
java.awt.Color frameBackground,
java.lang.Object[] args)
CONSTRUCTOR FOR SIZED FRAME WITH CUSTOM ICON
- Complete non-customizable constructors - Icon resource file must be located in the project package - Instantiate at center of parent frame (center-screen if parent frame = null) - Not resizable by user |
BasicFrame(java.lang.StringBuilder frameTitle,
java.lang.String frameIconPath,
javax.swing.JFrame parentFrame,
int closeOperation,
java.awt.Color frameBackground,
java.lang.Object[] args)
CONSTRUCTOR FOR EXTENDED FRAME WITH CUSTOM ICON
- Complete non-customizable constructors - Icon resource file must be located in the project package |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
protected abstract void |
addMenuBarFrameItem(java.lang.StringBuilder frameTitle,
javax.swing.JFrame parentFrame,
java.awt.Color frameBackground,
java.lang.Object... args)
METHOD TO INSTANTIATE ALL COMPONENTS OF THE MENUBAR
- Item menu instantiation using methods createOneDimensionalJMenu and/or createTwoDimensionalJMenu - Iteration frameMenus collection for addition to frameMenuBar |
protected abstract void |
addPanelFrameComponents(java.lang.StringBuilder frameTitle,
javax.swing.JFrame parentFrame,
java.awt.Color frameBackground,
java.lang.Object... args)
METHOD TO INSTANTIATE ALL COMPONENTS OF THE PRIMARY PANEL
- Iteration frameComponents collection for addition to framePanel - Any iterations in checkbox and radiobutton collections for addition to framePanel - Manual addition of external components (e.g. |
protected abstract void |
addToolBarFrameComponents(java.lang.StringBuilder frameTitle,
javax.swing.JFrame parentFrame,
java.awt.Color frameBackground,
java.lang.Object... args)
METHOD FOR INSTANTIATE ALL COMPONENTS OF THE TOOLBAR
- Iteration toolBarComponents collection for addition to frameToolbar |
protected abstract void |
afterInstantiateComponentFrameSettings(java.lang.StringBuilder frameTitle,
javax.swing.JFrame parentFrame,
java.lang.Object... args)
METHOD TO MAKE ANY SETTINGS AFTER HAVING INSTANTIATED THE FRAME COMPONENTS
USING THE ARGUMENTS RECEIVED FROM THE CONSTRUCTOR
|
protected abstract void |
beforeInstantiateComponentFrameSettings(java.lang.StringBuilder frameTitle,
javax.swing.JFrame parentFrame,
java.awt.Color frameBackground,
java.lang.Object... args)
METHOD TO MAKE ANY SETTINGS BEFORE INSTANTIATING THE FRAME COMPONENTS USING
THE ARGUMENTS RECEIVED FROM THE CONSTRUCTOR
|
protected javax.swing.ButtonGroup |
createButtonGroup()
METHOD TO INSTANTIATE OBJECT OF TYPE BUTTON GROUP
Necessary for grouping and/or management of JRadioButton |
protected javax.swing.JButton |
createJButton(java.lang.String text,
int posX,
int posY,
int width,
int height,
java.awt.Color background,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isVisible,
boolean isEnabled)
METHOD TO INSTANTIATE BUTTON TO ADD TO PRIMARY CONTAINER
- Automatic addition to frameComponents collection - Recommended invocation in addPanelFrameComponents method - ActionListener ready - ActionCommand ready (by Button text) |
protected javax.swing.JButton |
createJButton(java.lang.String text,
int posX,
int posY,
int width,
int height,
java.awt.Color background,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isVisible,
boolean isEnabled,
java.util.List<javax.swing.JComponent> container)
METHOD TO INSTANTIATE BUTTON TO ADD TO CUSTOM CONTAINER
- Possible automatic addition to custom collection - Recommended invocation in addPanelFrameComponents method - ActionListener ready - ActionCommand ready (by Button text) |
protected javax.swing.JButton |
createJButtonIcon(java.lang.String text,
java.lang.String iconPath,
int posX,
int posY,
int width,
int height,
java.awt.Color background,
int cursorType,
boolean isVisible,
boolean isEnabled)
METHOD TO INSTANTIATE ICON-BUTTON TO ADD TO PRIMARY CONTAINER
- Icon resource file must be located in the project package - Automatic addition to frameComponents collection - Recommended invocation in addPanelFrameComponents method - ActionListener ready - ActionCommand ready (by ToolTipText) |
protected javax.swing.JButton |
createJButtonIcon(java.lang.String text,
java.lang.String iconPath,
int posX,
int posY,
int width,
int height,
java.awt.Color background,
int cursorType,
boolean isVisible,
boolean isEnabled,
java.util.List<javax.swing.JComponent> container)
METHOD TO INSTANTIATE ICON-BUTTON TO ADD TO CUSTOM CONTAINER
- Icon resource file must be located in the project package - Possible automatic addition to custom collection - Recommended invocation in addPanelFrameComponents method - ActionListener ready - ActionCommand ready (by ToolTipText) |
protected java.util.List<javax.swing.JCheckBox> |
createJCheckBoxs(java.lang.String[] items,
boolean isVertical,
int posX,
int posY,
int width,
int height,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isVisible)
METHOD TO INSTANTIATE COLLECTION OF JCHECKBOXES TO ADD TO PRIMARY
CONTAINER
- Collection reference for adding to JPanel and managing components - Recommended invocation in addPanelFrameComponents method - ActionListener ready (by ActionCommand) |
protected javax.swing.JComboBox |
createJComboBox(java.lang.Object[] items,
int posX,
int posY,
int width,
int height,
java.awt.Color background,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isVisible)
METHOD TO INSTANTIATE COMBOBOX TO ADD TO PRIMARY CONTAINER
- Automatic addition to frameComponents collection - Recommended invocation in addPanelFrameComponents method - ActionListener ready |
protected javax.swing.JComboBox |
createJComboBox(java.lang.Object[] items,
int posX,
int posY,
int width,
int height,
java.awt.Color background,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isVisible,
java.util.List<javax.swing.JComponent> container)
METHOD TO INSTANTIATE COMBOBOX TO ADD TO CUSTOM CONTAINER
- Possible automatic addition to custom collection - Recommended invocation in addPanelFrameComponents method - ActionListener ready |
protected javax.swing.JLabel |
createJLabelImage(java.lang.String imagePath,
int posX,
int posY,
int width,
int height,
int cursorType,
boolean isVisible)
METHOD TO INSTANTIATE IMAGE-LABEL TO ADD TO PRIMARY CONTAINER
- Icon resource file must be located in the project package - Automatic addition to frameComponents collection - Recommended invocation in addPanelFrameComponents method - Recommended label size equal to image size - MouseListener ready |
protected javax.swing.JLabel |
createJLabelImage(java.lang.String imagePath,
int posX,
int posY,
int width,
int height,
int cursorType,
boolean isVisible,
java.util.List<javax.swing.JComponent> container)
METHOD TO INSTANTIATE IMAGE-LABEL TO ADD TO CUSTOM CONTAINER
- Icon resource file must be located in the project package - Possible automatic addition to custom collection - Recommended invocation in addPanelFrameComponents method - Recommended label size equal to image size - MouseListener ready |
protected javax.swing.JLabel |
createJLabelText(java.lang.String text,
int textAlign,
int posX,
int posY,
int width,
int height,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
boolean isUnderline,
int cursorType,
boolean isVisible)
METHOD TO INSTANTIATE TEXT-LABEL TO ADD TO PRIMARY CONTAINER
- Automatic addition to frameComponents collection - Recommended invocation in addPanelFrameComponents method - MouseListener ready |
protected javax.swing.JLabel |
createJLabelText(java.lang.String text,
int textAlign,
int posX,
int posY,
int width,
int height,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
boolean isUnderline,
int cursorType,
boolean isVisible,
java.util.List<javax.swing.JComponent> container)
METHOD TO INSTANTIATE TEXT-LABEL TO ADD TO CUSTOM CONTAINER
- Possible automatic addition to custom collection - Recommended invocation in addPanelFrameComponents method - MouseListener ready |
protected javax.swing.JPasswordField |
createJPasswordField(java.lang.String text,
int textAlign,
int posX,
int posY,
int width,
int height,
java.awt.Color background,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isEditable,
boolean isVisible)
METHOD TO INSTANTIATE PASSWORD-FIELD TO ADD TO PRIMARY CONTAINER
- Automatic addition to frameComponents collection - Recommended invocation in addPanelFrameComponents method - ActionListener ready (press ENTER) |
protected javax.swing.JPasswordField |
createJPasswordField(java.lang.String text,
int textAlign,
int posX,
int posY,
int width,
int height,
java.awt.Color background,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isEditable,
boolean isVisible,
java.util.List<javax.swing.JComponent> container)
METHOD TO INSTANTIATE PASSWORD-FIELD TO ADD TO CUSTOM CONTAINER
- Possible automatic addition to custom collection - Recommended invocation in addPanelFrameComponents method - ActionListener ready (press ENTER) |
protected javax.swing.JPopupMenu |
createJPopupMenu(javax.swing.JComponent component,
java.lang.String[] items,
java.awt.Color background,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize)
METHOD TO INSTANTIATE POPUP MENU TO ASSIGN TO COMPONENT
ActionListener ready for JMenuItem (by ActionCommand) |
protected java.util.List<javax.swing.JRadioButton> |
createJRadioButtons(java.lang.String[] items,
boolean isVertical,
int posX,
int posY,
int width,
int height,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isVisible,
javax.swing.ButtonGroup group)
METHOD TO INSTANTIATE COLLECTION OF JRADIOBUTTONS TO ADD TO PRIMARY
CONTAINER
- Collection reference for adding to JPanel and managing components - Recommended invocation in addPanelFrameComponents method - ActionListener ready (by ActionCommand) |
protected javax.swing.JTextField |
createJTextField(java.lang.String text,
int textAlign,
int posX,
int posY,
int width,
int height,
java.awt.Color background,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isEditable,
boolean isVisible)
METHOD TO INSTANTIATE TEXT-FIELD TO ADD TO PRIMARY CONTAINER
- Automatic addition to frameComponents collection - Recommended invocation in addPanelFrameComponents method - ActionListener ready (press ENTER) |
protected javax.swing.JTextField |
createJTextField(java.lang.String text,
int textAlign,
int posX,
int posY,
int width,
int height,
java.awt.Color background,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isEditable,
boolean isVisible,
java.util.List<javax.swing.JComponent> container)
METHOD TO INSTANTIATE TEXT-FIELD TO ADD TO CUSTOM CONTAINER
- Possible automatic addition to custom collection - Recommended invocation in addPanelFrameComponents method - ActionListener ready (press ENTER) |
protected javax.swing.JToggleButton |
createJToggleButton(java.lang.String text,
boolean isSelected,
int posX,
int posY,
int width,
int height,
java.awt.Color background,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isVisible)
METHOD TO INSTANTIATE TOGGLE-BUTTON TO ADD TO PRIMARY CONTAINER
- Automatic addition to frameComponents collection - Recommended invocation in addPanelFrameComponents method - ActionListener ready - ItemListener ready |
protected javax.swing.JToggleButton |
createJToggleButton(java.lang.String text,
boolean isSelected,
int posX,
int posY,
int width,
int height,
java.awt.Color background,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isVisible,
java.util.List<javax.swing.JComponent> container)
METHOD TO INSTANTIATE TOGGLE-BUTTON TO ADD TO CUSTOM CONTAINER
- Possible automatic addition to custom collection - Recommended invocation in addPanelFrameComponents method - ActionListener ready - ItemListener ready |
protected javax.swing.JSpinner |
createNumericJSpinner(int startValue,
int minValue,
int maxValue,
int step,
int posX,
int posY,
int width,
int height,
java.awt.Color background,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isVisible)
METHOD TO INSTANTIATE NUMERIC SPINNER TO ADD TO PRIMARY CONTAINER
- Automatic addition to frameComponents collection - Recommended invocation in addPanelFrameComponents method - ChangeListener ready |
protected javax.swing.JSpinner |
createNumericJSpinner(int startValue,
int minValue,
int maxValue,
int step,
int posX,
int posY,
int width,
int height,
java.awt.Color background,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isVisible,
java.util.List<javax.swing.JComponent> container)
METHOD TO INSTANTIATE NUMERIC SPINNER TO ADD TO CUSTOM CONTAINER
- Possible automatic addition to custom collection - Recommended invocation in addPanelFrameComponents method - ChangeListener ready |
protected void |
createOneDimensionalJMenu(java.lang.String name,
java.lang.String[] items,
java.lang.String[] itemIcons,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize)
METHOD FOR CREATING N.1 ONE-DIMENSIONAL PRIMARY JMENU
- Composed only of JMenuItem - Automatic addition to frameMenus collection - Recommended invocation in addMenuBarFrameItem method - ActionListener ready for JMenuItem (by ActionCommand) - Icon resource file must be located in the project package - Recommended png 16x16 icons |
protected javax.swing.JButton |
createToolBarJButton(java.lang.String text,
int width,
int height,
java.awt.Color background,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isVisible,
boolean isEnabled)
METHOD TO INSTANTIATE BUTTON TO ADD TO JTOOLBAR
- Automatic addition to toolBarComponents collection - Recommended invocation in addToolBarFrameComponents method - ActionListener ready - ActionCommand ready (by Button text) |
protected javax.swing.JButton |
createToolBarJButtonIcon(java.lang.String text,
java.lang.String iconPath,
int width,
int height,
java.awt.Color background,
int cursorType,
boolean isVisible,
boolean isEnabled)
METHOD TO INSTANTIATE ICON-BUTTON TO ADD TO JTOOLBAR
- Icon resource file must be located in the project package - Automatic addition to toolBarComponents collection - Recommended invocation in addToolBarFrameComponents method - ActionListener ready - ActionCommand ready (by ToolTipText) |
protected javax.swing.JComboBox |
createToolBarJComboBox(java.lang.Object[] items,
int width,
int height,
java.awt.Color background,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isVisible)
METHOD TO INSTANTIATE COMBOBOX TO ADD TO JTOOLBAR
- Automatic addition to toolBarComponents collection - Recommended invocation in addToolBarFrameComponents method - ActionListener ready |
protected javax.swing.JLabel |
createToolBarJLabelImage(java.lang.String imagePath,
int width,
int height,
int cursorType,
boolean isVisible)
METHOD TO INSTANTIATE IMAGE-LABEL TO ADD TO JTOOLBAR
- Icon resource file must be located in the project package - Automatic addition to toolBarComponents collection - Recommended invocation in addToolBarFrameComponents method - Recommended label size equal to image size - MouseListener ready |
protected javax.swing.JLabel |
createToolBarJLabelText(java.lang.String text,
int textAlign,
int width,
int height,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
boolean isUnderline,
int cursorType,
boolean isVisible)
METHOD TO INSTANTIATE TEXT-LABEL TO ADD TO JTOOLBAR
- Automatic addition to toolBarComponents collection - Recommended invocation in addToolBarFrameComponents method - MouseListener ready |
protected javax.swing.JPasswordField |
createToolBarJPasswordField(java.lang.String text,
int textAlign,
int width,
int height,
java.awt.Color background,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isEditable,
boolean isVisible)
METHOD TO INSTANTIATE PASSWORD-FIELD TO ADD TO JTOOLBAR
- Automatic addition to toolBarComponents collection - Recommended invocation in addToolBarFrameComponents method - ActionListener ready (press ENTER) |
protected javax.swing.JTextField |
createToolBarJTextField(java.lang.String text,
int textAlign,
int width,
int height,
java.awt.Color background,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isEditable,
boolean isVisible)
METHOD TO INSTANTIATE TEXT-FIELD TO ADD TO JTOOLBAR
- Automatic addition to toolBarComponents collection - Recommended invocation in addToolBarFrameComponents method - ActionListener ready (press ENTER) |
protected javax.swing.JToggleButton |
createToolBarJToggleButton(java.lang.String text,
boolean isSelected,
int width,
int height,
java.awt.Color background,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isVisible)
METHOD TO INSTANTIATE TOGGLE-BUTTON TO ADD TO JTOOLBAR
- Automatic addition to toolBarComponents collection - Recommended invocation in addToolBarFrameComponents method - ActionListener ready - ItemListener ready |
protected javax.swing.JSpinner |
createToolBarNumericJSpinner(int startValue,
int minValue,
int maxValue,
int step,
int width,
int height,
java.awt.Color background,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize,
int cursorType,
boolean isVisible)
METHOD TO INSTANTIATE NUMERIC SPINNER TO ADD TO JTOOLBAR
- Automatic addition to toolBarComponents collection - Recommended invocation in addToolBarFrameComponents method - ChangeListener ready |
protected void |
createTwoDimensionalJMenu(java.lang.String name,
java.lang.String[] itemNames,
java.lang.String[][] items,
java.lang.String[][] itemIcons,
java.awt.Color foreground,
java.lang.String fontType,
int fontStyle,
int fontSize)
METHOD FOR CREATING N.1 TWO-DIMENSIONAL PRIMARY JMENU
- Composed of JMenuItem and/or JMenu with JMenuItem - Automatic addition to frameMenus collection - Recommended invocation in addMenuBarFrameItem method - ActionListener ready for JMenuItem (by ActionCommand) - Icon resource file must be located in the project package - Recommended png 16x16 icons - The primary size of the items matrix must be equal to the size of the itemNames array - The items and itemIcons matrices (if not null) must have the same structure |
protected abstract void |
frameInitialSettings(java.lang.StringBuilder frameTitle,
javax.swing.JFrame parentFrame,
java.awt.Color frameBackground,
java.lang.Object... args)
METHOD TO MAKE ANY SETTINGS BEFORE INSTANTIATING THE FRAME USING THE
ARGUMENTS RECEIVED FROM THE CONSTRUCTOR
|
protected abstract void |
frameSizeAdjustment(int frameWidth,
int frameHeight,
int frameInsetTop,
int frameInsetBottom,
int frameInsetLeft,
int frameInsetRight)
METHOD TO ADJUSTING FINAL FRAME SIZE RELATED BY FRAME COMPONENT
Recommended for adapting the frame size to different operating systems Always consider the height of frameToolbar |
void |
itemStateChanged(java.awt.event.ItemEvent e) |
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
stateChanged(javax.swing.event.ChangeEvent e) |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected javax.swing.JMenuBar frameMenuBar
protected javax.swing.JToolBar frameToolbar
protected javax.swing.JPanel framePanel
protected java.util.List<javax.swing.JMenu> frameMenus
protected java.util.List<javax.swing.JComponent> toolBarComponents
protected java.util.List<javax.swing.JComponent> frameComponents
public BasicFrame(java.lang.StringBuilder frameTitle, java.lang.String frameIconPath, javax.swing.JFrame parentFrame, int closeOperation, java.awt.Color frameBackground, java.lang.Object[] args)
frameTitle
- The title of frameframeIconPath
- Icon resource path (recommended png 512x512)parentFrame
- Parent frame (null if not applicable)closeOperation
- Application behavior at frame closure
(see BasicInterface)frameBackground
- JPanel frame background color
(null if not applicable)args
- Object array for passing arguments to the constructor
(null if not applicable)public BasicFrame(java.lang.StringBuilder frameTitle, javax.swing.JFrame parentFrame, int closeOperation, java.awt.Color frameBackground, java.lang.Object[] args)
frameTitle
- The title of frameparentFrame
- Parent frame (null if not applicable)closeOperation
- Application behavior at frame closure
(see BasicInterface)frameBackground
- JPanel frame background color
(null if not applicable)args
- Object array for passing arguments to the constructor
(null if not applicable)public BasicFrame(java.lang.StringBuilder frameTitle, java.lang.String frameIconPath, int width, int height, javax.swing.JFrame parentFrame, int closeOperation, java.awt.Color frameBackground, java.lang.Object[] args)
frameTitle
- The title of frameframeIconPath
- Icon resource path (recommended png 512x512)width
- The width of frameheight
- The height of frameparentFrame
- Parent frame (null if not applicable)closeOperation
- Application behavior at frame closure
(see BasicInterface)frameBackground
- JPanel frame background color
(null if not applicable)args
- Object array for passing arguments to the constructor
(null if not applicable)public BasicFrame(java.lang.StringBuilder frameTitle, int width, int height, javax.swing.JFrame parentFrame, int closeOperation, java.awt.Color frameBackground, java.lang.Object[] args)
frameTitle
- The title of framewidth
- The width of frameheight
- The height of frameparentFrame
- Parent frame (null if not applicable)closeOperation
- Application behavior at frame closure
(see BasicInterface)frameBackground
- JPanel frame background color
(null if not applicable)args
- Object array for passing arguments to the constructor
(null if not applicable)protected javax.swing.JLabel createJLabelText(java.lang.String text, int textAlign, int posX, int posY, int width, int height, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, boolean isUnderline, int cursorType, boolean isVisible)
text
- The text of labeltextAlign
- Label text horizontal alignmentposX
- X-axis component positionposY
- Y-axis component positionwidth
- The component widthheight
- The component heightforeground
- Label text colorfontType
- Text label font (see BasicInterface)fontStyle
- Text label font style (see BasicInterface)fontSize
- Text label font sizeisUnderline
- Possible underlining textcursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingprotected javax.swing.JLabel createJLabelText(java.lang.String text, int textAlign, int posX, int posY, int width, int height, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, boolean isUnderline, int cursorType, boolean isVisible, java.util.List<javax.swing.JComponent> container)
text
- The text of labeltextAlign
- Label text horizontal alignmentposX
- X-axis component positionposY
- Y-axis component positionwidth
- The component widthheight
- The component heightforeground
- Label text colorfontType
- Text label font (see BasicInterface)fontStyle
- Text label font style (see BasicInterface)fontSize
- Text label font sizeisUnderline
- Possible underlining textcursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingcontainer
- Collection to add component (null if not applicable)protected javax.swing.JLabel createToolBarJLabelText(java.lang.String text, int textAlign, int width, int height, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, boolean isUnderline, int cursorType, boolean isVisible)
text
- The text of labeltextAlign
- Label text horizontal alignmentwidth
- The component widthheight
- The component heightforeground
- Label text colorfontType
- Text label font (see BasicInterface)fontStyle
- Text label font style (see BasicInterface)fontSize
- Text label font sizeisUnderline
- Possible underlining textcursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingprotected javax.swing.JLabel createJLabelImage(java.lang.String imagePath, int posX, int posY, int width, int height, int cursorType, boolean isVisible)
imagePath
- Icon resource pathposX
- X-axis component positionposY
- Y-axis component positionwidth
- The component widthheight
- The component heightcursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingprotected javax.swing.JLabel createJLabelImage(java.lang.String imagePath, int posX, int posY, int width, int height, int cursorType, boolean isVisible, java.util.List<javax.swing.JComponent> container)
imagePath
- Icon resource pathposX
- X-axis component positionposY
- Y-axis component positionwidth
- The component widthheight
- The component heightcursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingcontainer
- Collection to add component (null if not applicable)protected javax.swing.JLabel createToolBarJLabelImage(java.lang.String imagePath, int width, int height, int cursorType, boolean isVisible)
imagePath
- Icon resource pathwidth
- The component widthheight
- The component heightcursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingprotected javax.swing.JTextField createJTextField(java.lang.String text, int textAlign, int posX, int posY, int width, int height, java.awt.Color background, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isEditable, boolean isVisible)
text
- The initial field texttextAlign
- Field text horizontal alignmentposX
- X-axis component positionposY
- Y-axis component positionwidth
- The component widthheight
- The component heightbackground
- Field background colorforeground
- Field text colorfontType
- Text field font (see BasicInterface)fontStyle
- Text field font style (see BasicInterface)fontSize
- Text field font sizecursorType
- Mouse cursor type on component (see BasicInterface)isEditable
- Component editability settingisVisible
- Component visibility settingprotected javax.swing.JTextField createJTextField(java.lang.String text, int textAlign, int posX, int posY, int width, int height, java.awt.Color background, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isEditable, boolean isVisible, java.util.List<javax.swing.JComponent> container)
text
- The initial field texttextAlign
- Field text horizontal alignmentposX
- X-axis component positionposY
- Y-axis component positionwidth
- The component widthheight
- The component heightbackground
- Field background colorforeground
- Field text colorfontType
- Text field font (see BasicInterface)fontStyle
- Text field font style (see BasicInterface)fontSize
- Text field font sizecursorType
- Mouse cursor type on component (see BasicInterface)isEditable
- Component editability settingisVisible
- Component visibility settingcontainer
- Collection to add component (null if not applicable)protected javax.swing.JTextField createToolBarJTextField(java.lang.String text, int textAlign, int width, int height, java.awt.Color background, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isEditable, boolean isVisible)
text
- The initial field texttextAlign
- Field text horizontal alignmentwidth
- The component widthheight
- The component heightbackground
- Field background colorforeground
- Field text colorfontType
- Text field font (see BasicInterface)fontStyle
- Text field font style (see BasicInterface)fontSize
- Text field font sizecursorType
- Mouse cursor type on component (see BasicInterface)isEditable
- Component editability settingisVisible
- Component visibility settingprotected javax.swing.JPasswordField createJPasswordField(java.lang.String text, int textAlign, int posX, int posY, int width, int height, java.awt.Color background, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isEditable, boolean isVisible)
text
- The initial field texttextAlign
- Field text horizontal alignmentposX
- X-axis component positionposY
- Y-axis component positionwidth
- The component widthheight
- The component heightbackground
- Field background colorforeground
- Field text colorfontType
- Text field font (see BasicInterface)fontStyle
- Text field font style (see BasicInterface)fontSize
- Text field font sizecursorType
- Mouse cursor type on component (see BasicInterface)isEditable
- Component editability settingisVisible
- Component visibility settingprotected javax.swing.JPasswordField createJPasswordField(java.lang.String text, int textAlign, int posX, int posY, int width, int height, java.awt.Color background, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isEditable, boolean isVisible, java.util.List<javax.swing.JComponent> container)
text
- The initial field texttextAlign
- Field text horizontal alignmentposX
- X-axis component positionposY
- Y-axis component positionwidth
- The component widthheight
- The component heightbackground
- Field background colorforeground
- Field text colorfontType
- Text field font (see BasicInterface)fontStyle
- Text field font style (see BasicInterface)fontSize
- Text field font sizecursorType
- Mouse cursor type on component (see BasicInterface)isEditable
- Component editability settingisVisible
- Component visibility settingcontainer
- Collection to add component (null if not applicable)protected javax.swing.JPasswordField createToolBarJPasswordField(java.lang.String text, int textAlign, int width, int height, java.awt.Color background, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isEditable, boolean isVisible)
text
- The initial field texttextAlign
- Field text horizontal alignmentwidth
- The component widthheight
- The component heightbackground
- Field background colorforeground
- Field text colorfontType
- Text field font (see BasicInterface)fontStyle
- Text field font style (see BasicInterface)fontSize
- Text field font sizecursorType
- Mouse cursor type on component (see BasicInterface)isEditable
- Component editability settingisVisible
- Component visibility settingprotected java.util.List<javax.swing.JCheckBox> createJCheckBoxs(java.lang.String[] items, boolean isVertical, int posX, int posY, int width, int height, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isVisible)
items
- Array of strings for checkbox itemsisVertical
- Component Arrangement (true=vertical)posX
- X-axis position (auto-increment if horizontal arrangement)posY
- Y-axis position (auto-increment if vertical arrangement)width
- The components widthheight
- The components heightforeground
- Items text colorfontType
- Text items font (see BasicInterface)fontStyle
- Text items font style (see BasicInterface)fontSize
- Text items font sizecursorType
- Mouse cursor type on components (see BasicInterface)isVisible
- Components visibility settingprotected javax.swing.ButtonGroup createButtonGroup()
protected java.util.List<javax.swing.JRadioButton> createJRadioButtons(java.lang.String[] items, boolean isVertical, int posX, int posY, int width, int height, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isVisible, javax.swing.ButtonGroup group)
items
- Array of strings for radiobutton itemsisVertical
- Component Arrangement (true=vertical)posX
- X-axis position (auto-increment if horizontal arrangement)posY
- Y-axis position (auto-increment if vertical arrangement)width
- The components widthheight
- The components heightforeground
- Items text colorfontType
- Text items font (see BasicInterface)fontStyle
- Text items font style (see BasicInterface)fontSize
- Text items font sizecursorType
- Mouse cursor type on components (see BasicInterface)isVisible
- Components visibility settinggroup
- ButtonGroup object for grouping and/or managementprotected javax.swing.JComboBox createJComboBox(java.lang.Object[] items, int posX, int posY, int width, int height, java.awt.Color background, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isVisible)
items
- Array of objects for combobox itemsposX
- X-axis component positionposY
- Y-axis component positionwidth
- The component widthheight
- The component heightbackground
- Component background colorforeground
- Component text colorfontType
- Text items font (see BasicInterface)fontStyle
- Text items font style (see BasicInterface)fontSize
- Text items font sizecursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingprotected javax.swing.JComboBox createJComboBox(java.lang.Object[] items, int posX, int posY, int width, int height, java.awt.Color background, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isVisible, java.util.List<javax.swing.JComponent> container)
items
- Array of objects for combobox itemsposX
- X-axis component positionposY
- Y-axis component positionwidth
- The component widthheight
- The component heightbackground
- Component background colorforeground
- Component text colorfontType
- Text items font (see BasicInterface)fontStyle
- Text items font style (see BasicInterface)fontSize
- Text items font sizecursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingcontainer
- Collection to add component (null if not applicable)protected javax.swing.JComboBox createToolBarJComboBox(java.lang.Object[] items, int width, int height, java.awt.Color background, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isVisible)
items
- Array of objects for combobox itemswidth
- The component widthheight
- The component heightbackground
- Component background colorforeground
- Component text colorfontType
- Text items font (see BasicInterface)fontStyle
- Text items font style (see BasicInterface)fontSize
- Text items font sizecursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingprotected javax.swing.JSpinner createNumericJSpinner(int startValue, int minValue, int maxValue, int step, int posX, int posY, int width, int height, java.awt.Color background, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isVisible)
startValue
- Initial display valueminValue
- Minimum selectable valuemaxValue
- Maximum selectable valuestep
- Increase or decrease stepposX
- X-axis component positionposY
- Y-axis component positionwidth
- The component widthheight
- The component heightbackground
- Component background colorforeground
- Component text colorfontType
- Text items font (see BasicInterface)fontStyle
- Text items font style (see BasicInterface)fontSize
- Text items font sizecursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingprotected javax.swing.JSpinner createNumericJSpinner(int startValue, int minValue, int maxValue, int step, int posX, int posY, int width, int height, java.awt.Color background, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isVisible, java.util.List<javax.swing.JComponent> container)
startValue
- Initial display valueminValue
- Minimum selectable valuemaxValue
- Maximum selectable valuestep
- Increase or decrease stepposX
- X-axis component positionposY
- Y-axis component positionwidth
- The component widthheight
- The component heightbackground
- Component background colorforeground
- Component text colorfontType
- Text items font (see BasicInterface)fontStyle
- Text items font style (see BasicInterface)fontSize
- Text items font sizecursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingcontainer
- Collection to add component (null if not applicable)protected javax.swing.JSpinner createToolBarNumericJSpinner(int startValue, int minValue, int maxValue, int step, int width, int height, java.awt.Color background, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isVisible)
startValue
- Initial display valueminValue
- Minimum selectable valuemaxValue
- Maximum selectable valuestep
- Increase or decrease stepwidth
- The component widthheight
- The component heightbackground
- Component background colorforeground
- Component text colorfontType
- Text items font (see BasicInterface)fontStyle
- Text items font style (see BasicInterface)fontSize
- Text items font sizecursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingprotected javax.swing.JButton createJButton(java.lang.String text, int posX, int posY, int width, int height, java.awt.Color background, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isVisible, boolean isEnabled)
text
- Overlay text on button and ActionCommandposX
- X-axis component positionposY
- Y-axis component positionwidth
- The component widthheight
- The component heightbackground
- Button background color (null if not applicable)foreground
- Button text colorfontType
- Text button font (see BasicInterface)fontStyle
- Text button font style (see BasicInterface)fontSize
- Text button font sizecursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingisEnabled
- Component Enablement Settingprotected javax.swing.JButton createJButton(java.lang.String text, int posX, int posY, int width, int height, java.awt.Color background, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isVisible, boolean isEnabled, java.util.List<javax.swing.JComponent> container)
text
- Overlay text on button and ActionCommandposX
- X-axis component positionposY
- Y-axis component positionwidth
- The component widthheight
- The component heightbackground
- Button background color (null if not applicable)foreground
- Button text colorfontType
- Text button font (see BasicInterface)fontStyle
- Text button font style (see BasicInterface)fontSize
- Text button font sizecursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingisEnabled
- Component Enablement Settingcontainer
- Collection to add component (null if not applicable)protected javax.swing.JButton createToolBarJButton(java.lang.String text, int width, int height, java.awt.Color background, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isVisible, boolean isEnabled)
text
- Overlay text on button and ActionCommandwidth
- The component widthheight
- The component heightbackground
- Button background color (null if not applicable)foreground
- Button text colorfontType
- Text button font (see BasicInterface)fontStyle
- Text button font style (see BasicInterface)fontSize
- Text button font sizecursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingisEnabled
- Component Enablement Settingprotected javax.swing.JButton createJButtonIcon(java.lang.String text, java.lang.String iconPath, int posX, int posY, int width, int height, java.awt.Color background, int cursorType, boolean isVisible, boolean isEnabled)
text
- ToolTipText and ActionCommandiconPath
- Icon resource pathposX
- X-axis component positionposY
- Y-axis component positionwidth
- The component widthheight
- The component heightbackground
- Button background color (null if not applicable)cursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingisEnabled
- Component Enablement Settingprotected javax.swing.JButton createJButtonIcon(java.lang.String text, java.lang.String iconPath, int posX, int posY, int width, int height, java.awt.Color background, int cursorType, boolean isVisible, boolean isEnabled, java.util.List<javax.swing.JComponent> container)
text
- ToolTipText and ActionCommandiconPath
- Icon resource pathposX
- X-axis component positionposY
- Y-axis component positionwidth
- The component widthheight
- The component heightbackground
- Button background color (null if not applicable)cursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingisEnabled
- Component Enablement Settingcontainer
- Collection to add component (null if not applicable)protected javax.swing.JButton createToolBarJButtonIcon(java.lang.String text, java.lang.String iconPath, int width, int height, java.awt.Color background, int cursorType, boolean isVisible, boolean isEnabled)
text
- ToolTipText and ActionCommandiconPath
- Icon resource pathwidth
- The component widthheight
- The component heightbackground
- Button background color (null if not applicable)cursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingisEnabled
- Component Enablement Settingprotected javax.swing.JToggleButton createJToggleButton(java.lang.String text, boolean isSelected, int posX, int posY, int width, int height, java.awt.Color background, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isVisible)
text
- Overlay initial text on buttonisSelected
- Initial button statusposX
- X-axis component positionposY
- Y-axis component positionwidth
- The component widthheight
- The component heightbackground
- Button background color (null if not applicable)foreground
- Button text colorfontType
- Text button font (see BasicInterface)fontStyle
- Text button font style (see BasicInterface)fontSize
- Text button font sizecursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingprotected javax.swing.JToggleButton createJToggleButton(java.lang.String text, boolean isSelected, int posX, int posY, int width, int height, java.awt.Color background, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isVisible, java.util.List<javax.swing.JComponent> container)
text
- Overlay initial text on buttonisSelected
- Initial button statusposX
- X-axis component positionposY
- Y-axis component positionwidth
- The component widthheight
- The component heightbackground
- Button background color (null if not applicable)foreground
- Button text colorfontType
- Text button font (see BasicInterface)fontStyle
- Text button font style (see BasicInterface)fontSize
- Text button font sizecursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingcontainer
- Collection to add component (null if not applicable)protected javax.swing.JToggleButton createToolBarJToggleButton(java.lang.String text, boolean isSelected, int width, int height, java.awt.Color background, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize, int cursorType, boolean isVisible)
text
- Overlay initial text on buttonisSelected
- Initial button statuswidth
- The component widthheight
- The component heightbackground
- Button background color (null if not applicable)foreground
- Button text colorfontType
- Text button font (see BasicInterface)fontStyle
- Text button font style (see BasicInterface)fontSize
- Text button font sizecursorType
- Mouse cursor type on component (see BasicInterface)isVisible
- Component visibility settingprotected void createOneDimensionalJMenu(java.lang.String name, java.lang.String[] items, java.lang.String[] itemIcons, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize)
name
- The name of JMenuitems
- Array of strings for JMenuItem namesitemIcons
- Array of strings paths resources for JMenuItem icons
(null if not applicable)foreground
- JMenu and JMenuItem text colorfontType
- JMenu and JMenuItem font type (see BasicInterface)fontStyle
- JMenu and JMenuItem font style (see BasicInterface)fontSize
- JMenu and JMenuItem font sizeprotected void createTwoDimensionalJMenu(java.lang.String name, java.lang.String[] itemNames, java.lang.String[][] items, java.lang.String[][] itemIcons, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize)
name
- The name of JMenuitemNames
- Array of strings for JMenu or JMenuItem 1st level namesitems
- Matrix of strings for JMenuItem 2nd level namesitemIcons
- Matrix of strings paths resources for JMenuItem 1st and
2nd level icons (null if not applicable)foreground
- JMenu and JMenuItem text colorfontType
- JMenu and JMenuItem font type (see BasicInterface)fontStyle
- JMenu and JMenuItem font style (see BasicInterface)fontSize
- JMenu and JMenuItem font sizeprotected javax.swing.JPopupMenu createJPopupMenu(javax.swing.JComponent component, java.lang.String[] items, java.awt.Color background, java.awt.Color foreground, java.lang.String fontType, int fontStyle, int fontSize)
component
- Component to assign menu toitems
- Array of strings for JMenuItem namesbackground
- Menu area background color (null if not applicable)foreground
- Menu item text colorfontType
- Item menu font type (see BasicInterface)fontStyle
- Item menu font style (see BasicInterface)fontSize
- Menu item font sizeprotected abstract void frameInitialSettings(java.lang.StringBuilder frameTitle, javax.swing.JFrame parentFrame, java.awt.Color frameBackground, java.lang.Object... args)
frameTitle
- The title of frameparentFrame
- Parent frameframeBackground
- Frame Panel Background Colorargs
- Varargs array of Object arguments received by the constructorprotected abstract void beforeInstantiateComponentFrameSettings(java.lang.StringBuilder frameTitle, javax.swing.JFrame parentFrame, java.awt.Color frameBackground, java.lang.Object... args)
frameTitle
- The title of frameparentFrame
- Parent frameframeBackground
- Frame Panel Background Colorargs
- Varargs array of Object arguments received by the constructorprotected abstract void addMenuBarFrameItem(java.lang.StringBuilder frameTitle, javax.swing.JFrame parentFrame, java.awt.Color frameBackground, java.lang.Object... args)
frameTitle
- The title of frameparentFrame
- Parent frameframeBackground
- Frame Panel Background Colorargs
- Varargs array of Object arguments received by the constructorprotected abstract void addToolBarFrameComponents(java.lang.StringBuilder frameTitle, javax.swing.JFrame parentFrame, java.awt.Color frameBackground, java.lang.Object... args)
frameTitle
- The title of frameparentFrame
- Parent frameframeBackground
- Frame Panel Background Colorargs
- Varargs array of Object arguments received by the constructorprotected abstract void addPanelFrameComponents(java.lang.StringBuilder frameTitle, javax.swing.JFrame parentFrame, java.awt.Color frameBackground, java.lang.Object... args)
frameTitle
- The title of frameparentFrame
- Parent frameframeBackground
- Frame Panel Background Colorargs
- Varargs array of Object arguments received by the constructorprotected abstract void afterInstantiateComponentFrameSettings(java.lang.StringBuilder frameTitle, javax.swing.JFrame parentFrame, java.lang.Object... args)
frameTitle
- The title of frameparentFrame
- Parent frameargs
- Varargs array of Object arguments received by the constructorprotected abstract void frameSizeAdjustment(int frameWidth, int frameHeight, int frameInsetTop, int frameInsetBottom, int frameInsetLeft, int frameInsetRight)
frameWidth
- The width of frameframeHeight
- The height of frameframeInsetTop
- The top inset of frameframeInsetBottom
- The bottom inset of frameframeInsetLeft
- The left inset of frameframeInsetRight
- The right inset of framepublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener