| javax.swing.JComponent org.jdesktop.swing.calendar.JXMonthView
JXMonthView | public class JXMonthView extends JComponent (Code) | | Component that displays a month calendar which can be used to select a day
or range of days. By default the JXMonthView will display a
single calendar using the current month and year, using
Calendar.SUNDAY as the first day of the week.
The JXMonthView can be configured to display more than one
calendar at a time by calling
setPreferredCalCols /setPreferredCalRows . These
methods will set the preferred number of calendars to use in each
column/row. As these values change, the Dimension returned
from getMinimumSize and getPreferredSize will
be updated. The following example shows how to create a 2x2 view which is
contained within a JFrame :
JXMonthView monthView = new JXMonthView();
monthView.setPreferredCols(2);
monthView.setPreferredRows(2);
JFrame frame = new JFrame();
frame.getContentPane().add(monthView);
frame.pack();
frame.setVisible(true);
JXMonthView can be further configured to allow any day of the
week to be considered the first day of the week. Character
representation of those days may also be set by providing an array of
strings.
monthView.setFirstDayOfWeek(Calendar.MONDAY);
monthView.setDaysOfTheWeek(
new String[]{"S", "M", "T", "W", "R", "F", "S"});
This component supports flagging days. These flagged days, which must be
provided in sorted order, are displayed in a bold font. This can be used to
inform the user of such things as scheduled appointment.
// Create some dates that we want to flag as being important.
Calendar cal1 = Calendar.getInstance();
cal1.set(2004, 1, 1);
Calendar cal2 = Calendar.getInstance();
cal2.set(2004, 1, 5);
long[] flaggedDates = new long[] {
cal1.getTimeInMillis(),
cal2.getTimeInMillis(),
System.currentTimeMillis()
};
// Sort them in ascending order.
java.util.Arrays.sort(flaggedDates);
monthView.setFlaggedDates(flaggedDates);
Applications may have the need to allow users to select different ranges of
dates. There are four modes of selection that are supported, single,
multiple, week and no selection. Once a selection is made an action is
fired, with exception of the no selection mode, to inform listeners that
selection has changed.
// Change the selection mode to select full weeks.
monthView.setSelectionMode(JXMonthView.WEEK_SELECTION);
// Add an action listener that will be notified when the user
// changes selection via the mouse.
monthView.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
System.out.println(
((JXMonthView)e.getSource()).getSelectedDateSpan());
}
});
author: Joshua Outwater version: $Revision: 1.1 $ |
Field Summary | |
final public static int | MULTIPLE_SELECTION Mode that allows for selecting of multiple consecutive days. | final public static int | NO_SELECTION Mode that disallows selection of days from the calendar. | final public static int | SINGLE_SELECTION Mode that allows for selection of a single day. | final public static int | WEEK_SELECTION Mode where selections consisting of more than 7 days will
snap to a full week. | protected Insets | _monthStringInsets Insets used in determining the rectangle for the month string
background. |
Constructor Summary | |
public | JXMonthView() Create a new instance of the JXMonthView class using the
month and year of the current day as the first date to display. | public | JXMonthView(long initialTime) Create a new instance of the JXMonthView class using the
month and year from initialTime as the first date to
display. |
Method Summary | |
public void | addActionListener(ActionListener l) Adds an ActionListener.
The ActionListener will receive an ActionEvent when a selection has
been made. | public void | addNotify() | public void | ensureDateVisible(long date) Moves the date into the visible region of the calendar.
If the date is greater than the last visible date it will become the
last visible date. | protected void | fireActionPerformed() Fires an ActionEvent to all listeners. | public String | getActionCommand() Returns the string currently used to identiy fired ActionEvents. | public boolean | getAntialiased() Returns true if anti-aliased text is enabled for this component, false
otherwise. | public int | getBoxPaddingX() Returns the padding used between days in the calendar. | public int | getBoxPaddingY() Returns the padding used above and below days in the calendar. | public long | getDayAt(int x, int y) Return a long representing the date at the specified x/y position.
The date returned will have a valid day, month and year. | public String[] | getDaysOfTheWeek() Returns the single character representation for each day of the
week. | public int | getFirstDayOfWeek() Gets what the first day of the week is; e.g.,
Calendar.SUNDAY in the U.S., Calendar.MONDAY
in France. | public long | getFirstDisplayedDate() Returns the first displayed date. | public long | getLastDisplayedDate() Returns the last date able to be displayed. | public Dimension | getMaximumSize() Returns the maximum size of this component. | public Dimension | getMinimumSize() Returns the minimum size needed to display this component. | public Color | getMonthStringBackground() Returns the color used to paint the month string background. | public Insets | getMonthStringInsets() Returns a copy of the insets used to paint the month string background. | public int | getPreferredCols() Returns the preferred number of columns to paint calendars in. | public int | getPreferredRows() Returns the preferred number of rows to paint calendars in. | public Dimension | getPreferredSize() Returns the preferred size of this component. | public Color | getSelectedBackground() Returns the selected background color. | public DateSpan | getSelectedDateSpan() Returns a date span of the selected dates. | public int | getSelectionMode() Returns the current selection mode for this JXMonthView. | public TimeZone | getTimeZone() Gets the time zone. | public Color | getTodayBackground() Returns the color used when painting the today background. | protected void | paintComponent(Graphics g) | protected void | paintMonthStringBackground(Graphics g, int x, int y, int width, int height) Paints the background of the month string. | protected void | paintSelectedDayBackground(Graphics g, int x, int y, int width, int height) Paint the background for a selected day. | protected void | paintTodayBackground(Graphics g, int x, int y, int width, int height) Paints the background for today. | protected void | processMouseEvent(MouseEvent e) | protected void | processMouseMotionEvent(MouseEvent e) | public void | removeActionListener(ActionListener l) Removes an ActionListener. | public void | removeNotify() | public void | setActionCommand(String actionCommand) Sets the string used to identify fired ActionEvents. | public void | setAntialiased(boolean antiAlias) Turns on/off anti-aliased text for this component. | public void | setBorder(Border border) Sets the border of this component. | public void | setBounds(int x, int y, int width, int height) Moves and resizes this component. | public void | setBounds(Rectangle r) Moves and resizes this component to conform to the new bounding
rectangle r. | public void | setBoxPaddingX(int _boxPaddingX) Sets the number of pixels used to pad the left and right side of a day.
The padding is applied to both sides of the days. | public void | setBoxPaddingY(int _boxPaddingY) Sets the number of pixels used to pad the top and bottom of a day.
The padding is applied to both the top and bottom of a day. | public void | setComponentOrientation(ComponentOrientation o) Sets the language-sensitive orientation that is to be used to order
the elements or text within this component. | public void | setDaysOfTheWeek(String[] days) Sets the single character representation for each day of the
week. | public void | setFirstDayOfWeek(int firstDayOfWeek) Sets what the first day of the week is; e.g.,
Calendar.SUNDAY in US, Calendar.MONDAY
in France. | public void | setFirstDisplayedDate(long date) Set the first displayed date. | public void | setFlaggedDates(long[] flaggedDates) An array of longs defining days that should be flagged. | public void | setFont(Font font) Sets the font of this component. | public void | setMonthStringBackground(Color c) Sets the color used to draw the background of the month string. | public void | setMonthStringInsets(Insets insets) Insets used to modify the width/height when painting the background
of the month string area. | public void | setPreferredCols(int cols) The preferred number of columns to paint calendars. | public void | setPreferredRows(int rows) Sets the preferred number of rows to paint calendars. | public void | setSelectedBackground(Color c) Sets the selected background color to c . | public void | setSelectedDateSpan(DateSpan dateSpan) Selects the dates in the DateSpan. | public void | setSelectionMode(int mode) Set the selection mode for this JXMonthView. | public void | setTimeZone(TimeZone tz) Sets the time zone with the given time zone value. | public void | setTodayBackground(Color c) Sets the color used to draw the bounding box around today. | public void | updateUI() Resets the UI property to a value from the current look and feel. |
MULTIPLE_SELECTION | final public static int MULTIPLE_SELECTION(Code) | | Mode that allows for selecting of multiple consecutive days.
|
NO_SELECTION | final public static int NO_SELECTION(Code) | | Mode that disallows selection of days from the calendar.
|
SINGLE_SELECTION | final public static int SINGLE_SELECTION(Code) | | Mode that allows for selection of a single day.
|
WEEK_SELECTION | final public static int WEEK_SELECTION(Code) | | Mode where selections consisting of more than 7 days will
snap to a full week.
|
_monthStringInsets | protected Insets _monthStringInsets(Code) | | Insets used in determining the rectangle for the month string
background.
|
JXMonthView | public JXMonthView()(Code) | | Create a new instance of the JXMonthView class using the
month and year of the current day as the first date to display.
|
JXMonthView | public JXMonthView(long initialTime)(Code) | | Create a new instance of the JXMonthView class using the
month and year from initialTime as the first date to
display.
Parameters: initialTime - The first month to display. |
addActionListener | public void addActionListener(ActionListener l)(Code) | | Adds an ActionListener.
The ActionListener will receive an ActionEvent when a selection has
been made.
Parameters: l - The ActionListener that is to be notified |
addNotify | public void addNotify()(Code) | | |
ensureDateVisible | public void ensureDateVisible(long date)(Code) | | Moves the date into the visible region of the calendar.
If the date is greater than the last visible date it will become the
last visible date. While if it is less than the first visible date
it will become the first visible date.
Parameters: date - Date to make visible. |
fireActionPerformed | protected void fireActionPerformed()(Code) | | Fires an ActionEvent to all listeners.
|
getActionCommand | public String getActionCommand()(Code) | | Returns the string currently used to identiy fired ActionEvents.
String The string used for identifying ActionEvents. |
getAntialiased | public boolean getAntialiased()(Code) | | Returns true if anti-aliased text is enabled for this component, false
otherwise.
boolean true if anti-aliased text is enabled,false otherwise. |
getBoxPaddingX | public int getBoxPaddingX()(Code) | | Returns the padding used between days in the calendar.
|
getBoxPaddingY | public int getBoxPaddingY()(Code) | | Returns the padding used above and below days in the calendar.
|
getDayAt | public long getDayAt(int x, int y)(Code) | | Return a long representing the date at the specified x/y position.
The date returned will have a valid day, month and year. Other fields
such as hour, minute, second and milli-second will be set to 0.
Parameters: x - X position Parameters: y - Y position long The date, -1 if position does not contain a date. |
getDaysOfTheWeek | public String[] getDaysOfTheWeek()(Code) | | Returns the single character representation for each day of the
week.
Single character representation for the days of the week |
getFirstDayOfWeek | public int getFirstDayOfWeek()(Code) | | Gets what the first day of the week is; e.g.,
Calendar.SUNDAY in the U.S., Calendar.MONDAY
in France.
int The first day of the week. |
getFirstDisplayedDate | public long getFirstDisplayedDate()(Code) | | Returns the first displayed date.
long The first displayed date. |
getLastDisplayedDate | public long getLastDisplayedDate()(Code) | | Returns the last date able to be displayed. For example, if the last
visible month was April the time returned would be April 30, 23:59:59.
long The last displayed date. |
getMaximumSize | public Dimension getMaximumSize()(Code) | | Returns the maximum size of this component.
Dimension Maximum size. |
getMinimumSize | public Dimension getMinimumSize()(Code) | | Returns the minimum size needed to display this component.
Dimension Minimum size. |
getMonthStringBackground | public Color getMonthStringBackground()(Code) | | Returns the color used to paint the month string background.
Color Color. |
getMonthStringInsets | public Insets getMonthStringInsets()(Code) | | Returns a copy of the insets used to paint the month string background.
Insets Month string insets. |
getPreferredCols | public int getPreferredCols()(Code) | | Returns the preferred number of columns to paint calendars in.
int Columns of calendars. |
getPreferredRows | public int getPreferredRows()(Code) | | Returns the preferred number of rows to paint calendars in.
int Rows of calendars. |
getPreferredSize | public Dimension getPreferredSize()(Code) | | Returns the preferred size of this component.
Dimension Preferred size. |
getSelectedBackground | public Color getSelectedBackground()(Code) | | Returns the selected background color.
the selected background color. |
getSelectedDateSpan | public DateSpan getSelectedDateSpan()(Code) | | Returns a date span of the selected dates. The result will be null if
no dates are selected.
|
getSelectionMode | public int getSelectionMode()(Code) | | Returns the current selection mode for this JXMonthView.
int Selection mode. |
getTimeZone | public TimeZone getTimeZone()(Code) | | Gets the time zone.
The TimeZone used by the JXMonthView . |
getTodayBackground | public Color getTodayBackground()(Code) | | Returns the color used when painting the today background.
Color Color |
paintMonthStringBackground | protected void paintMonthStringBackground(Graphics g, int x, int y, int width, int height)(Code) | | Paints the background of the month string. The bounding box for this
background can be modified by setting its insets via
setMonthStringInsets. The color of the background can be set via
setMonthStringBackground.
See Also: JXMonthView.setMonthStringBackground See Also: JXMonthView.setMonthStringInsets Parameters: g - Graphics object to paint to. Parameters: x - x-coordinate of upper left corner. Parameters: y - y-coordinate of upper left corner. Parameters: width - width of the bounding box. Parameters: height - height of the bounding box. |
paintSelectedDayBackground | protected void paintSelectedDayBackground(Graphics g, int x, int y, int width, int height)(Code) | | Paint the background for a selected day. The default is a filled
rectangle in the in the component's background color.
Parameters: g - Graphics object to paint to. Parameters: x - x-coordinate of upper left corner. Parameters: y - y-coordinate of upper left corner. Parameters: width - width of bounding box for the day. Parameters: height - height of bounding box for the day. |
paintTodayBackground | protected void paintTodayBackground(Graphics g, int x, int y, int width, int height)(Code) | | Paints the background for today. The default is a rectangle drawn in
using the color set by setTodayBackground
See Also: JXMonthView.setTodayBackground Parameters: g - Graphics object to paint to. Parameters: x - x-coordinate of upper left corner. Parameters: y - y-coordinate of upper left corner. Parameters: width - width of bounding box for the day. Parameters: height - height of bounding box for the day. |
processMouseMotionEvent | protected void processMouseMotionEvent(MouseEvent e)(Code) | | |
removeActionListener | public void removeActionListener(ActionListener l)(Code) | | Removes an ActionListener.
Parameters: l - The action listener to remove. |
removeNotify | public void removeNotify()(Code) | | |
setActionCommand | public void setActionCommand(String actionCommand)(Code) | | Sets the string used to identify fired ActionEvents.
Parameters: actionCommand - The string used for identifying ActionEvents. |
setAntialiased | public void setAntialiased(boolean antiAlias)(Code) | | Turns on/off anti-aliased text for this component.
Parameters: antiAlias - true for anti-aliased text,false to turn it off. |
setBorder | public void setBorder(Border border)(Code) | | Sets the border of this component. The Border object is responsible
for defining the insets for the component (overriding any insets set
directly on the component) and for optionally rendering any border
decorations within the bounds of those insets. Borders should be used
(rather than insets) for creating both decorative and non-decorative
(such as margins and padding) regions for a swing component. Compound
borders can be used to nest multiple borders within a single component.
As the border may modify the bounds of the component, setting the border
may result in a reduced number of displayed calendars.
Parameters: border - Border. |
setBounds | public void setBounds(int x, int y, int width, int height)(Code) | | Moves and resizes this component. The new location of the top-left
corner is specified by x and y, and the new size is specified by
width and height.
Parameters: x - The new x-coordinate of this component Parameters: y - The new y-coordinate of this component Parameters: width - The new width of this component Parameters: height - The new height of this component |
setBounds | public void setBounds(Rectangle r)(Code) | | Moves and resizes this component to conform to the new bounding
rectangle r. This component's new position is specified by r.x and
r.y, and its new size is specified by r.width and r.height
Parameters: r - The new bounding rectangle for this component |
setBoxPaddingX | public void setBoxPaddingX(int _boxPaddingX)(Code) | | Sets the number of pixels used to pad the left and right side of a day.
The padding is applied to both sides of the days. Therefore, if you
used the padding value of 3, the number of pixels between any two days
would be 6.
|
setBoxPaddingY | public void setBoxPaddingY(int _boxPaddingY)(Code) | | Sets the number of pixels used to pad the top and bottom of a day.
The padding is applied to both the top and bottom of a day. Therefore,
if you used the padding value of 3, the number of pixels between any
two days would be 6.
|
setComponentOrientation | public void setComponentOrientation(ComponentOrientation o)(Code) | | Sets the language-sensitive orientation that is to be used to order
the elements or text within this component. Language-sensitive
LayoutManager and Component subclasses will use this property to
determine how to lay out and draw components.
At construction time, a component's orientation is set to
ComponentOrientation.UNKNOWN, indicating that it has not been
specified explicitly. The UNKNOWN orientation behaves the same as
ComponentOrientation.LEFT_TO_RIGHT.
Parameters: o - The component orientation. |
setFirstDayOfWeek | public void setFirstDayOfWeek(int firstDayOfWeek)(Code) | | Sets what the first day of the week is; e.g.,
Calendar.SUNDAY in US, Calendar.MONDAY
in France.
Parameters: firstDayOfWeek - The first day of the week. See Also: java.util.Calendar |
setFirstDisplayedDate | public void setFirstDisplayedDate(long date)(Code) | | Set the first displayed date. We only use the month and year of
this date. The Calendar.DAY_OF_MONTH field is reset to
1 and all other fields, with exception of the year and month ,
are reset to 0.
Parameters: date - The first displayed date. |
setFlaggedDates | public void setFlaggedDates(long[] flaggedDates)(Code) | | An array of longs defining days that should be flagged. This array is
assumed to be in sorted order from least to greatest.
|
setFont | public void setFont(Font font)(Code) | | Sets the font of this component.
Parameters: font - The font to become this component's font; if this parameteris null then this component will inherit the font of its parent. |
setMonthStringBackground | public void setMonthStringBackground(Color c)(Code) | | Sets the color used to draw the background of the month string. The
default is Color.LIGHT_GRAY .
|
setMonthStringInsets | public void setMonthStringInsets(Insets insets)(Code) | | Insets used to modify the width/height when painting the background
of the month string area.
Parameters: insets - Insets |
setPreferredCols | public void setPreferredCols(int cols)(Code) | | The preferred number of columns to paint calendars.
Parameters: cols - The number of columns of calendars. |
setPreferredRows | public void setPreferredRows(int rows)(Code) | | Sets the preferred number of rows to paint calendars.
Parameters: rows - The number of rows of calendars. |
setSelectedBackground | public void setSelectedBackground(Color c)(Code) | | Sets the selected background color to c . The default color
is Color.LIGHT_GRAY .
Parameters: c - Selected background. |
setSelectedDateSpan | public void setSelectedDateSpan(DateSpan dateSpan)(Code) | | Selects the dates in the DateSpan. This method will not change the
initial date displayed so the caller must update this if necessary.
If we are in SINGLE_SELECTION mode only the start time from the DateSpan
will be used. If we are in WEEK_SELECTION mode the span will be
modified to be valid if necessary.
Parameters: dateSpan - DateSpan defining the selected dates. Passing null will clear the selection. |
setTimeZone | public void setTimeZone(TimeZone tz)(Code) | | Sets the time zone with the given time zone value.
Parameters: tz - The TimeZone . |
setTodayBackground | public void setTodayBackground(Color c)(Code) | | Sets the color used to draw the bounding box around today. The default
is the background of the JXMonthView component.
|
updateUI | public void updateUI()(Code) | | Resets the UI property to a value from the current look and feel.
|
Methods inherited from javax.swing.JComponent | public void addAncestorListener(AncestorListener listener)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) public synchronized void addVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc) public void computeVisibleRect(Rectangle visibleRect)(Code)(Java Doc) public boolean contains(int x, int y)(Code)(Java Doc) public JToolTip createToolTip()(Code)(Java Doc) public void disable()(Code)(Java Doc) public void enable()(Code)(Java Doc) public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, int oldValue, int newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, char oldValue, char newValue)(Code)(Java Doc) protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) throws java.beans.PropertyVetoException(Code)(Java Doc) public AccessibleContext getAccessibleContext()(Code)(Java Doc) public ActionListener getActionForKeyStroke(KeyStroke aKeyStroke)(Code)(Java Doc) final public ActionMap getActionMap()(Code)(Java Doc) public float getAlignmentX()(Code)(Java Doc) public float getAlignmentY()(Code)(Java Doc) public AncestorListener[] getAncestorListeners()(Code)(Java Doc) public boolean getAutoscrolls()(Code)(Java Doc) public int getBaseline(int width, int height)(Code)(Java Doc) public BaselineResizeBehavior getBaselineResizeBehavior()(Code)(Java Doc) public Border getBorder()(Code)(Java Doc) public Rectangle getBounds(Rectangle rv)(Code)(Java Doc) final public Object getClientProperty(Object key)(Code)(Java Doc) protected Graphics getComponentGraphics(Graphics g)(Code)(Java Doc) public JPopupMenu getComponentPopupMenu()(Code)(Java Doc) public int getConditionForKeyStroke(KeyStroke aKeyStroke)(Code)(Java Doc) public int getDebugGraphicsOptions()(Code)(Java Doc) public static Locale getDefaultLocale()(Code)(Java Doc) public FontMetrics getFontMetrics(Font font)(Code)(Java Doc) public Graphics getGraphics()(Code)(Java Doc) public int getHeight()(Code)(Java Doc) public boolean getInheritsPopupMenu()(Code)(Java Doc) final public InputMap getInputMap(int condition)(Code)(Java Doc) final public InputMap getInputMap()(Code)(Java Doc) public InputVerifier getInputVerifier()(Code)(Java Doc) public Insets getInsets()(Code)(Java Doc) public Insets getInsets(Insets insets)(Code)(Java Doc) public T[] getListeners(Class<T> listenerType)(Code)(Java Doc) public Point getLocation(Point rv)(Code)(Java Doc) public Dimension getMaximumSize()(Code)(Java Doc) public Dimension getMinimumSize()(Code)(Java Doc) public Component getNextFocusableComponent()(Code)(Java Doc) public Point getPopupLocation(MouseEvent event)(Code)(Java Doc) public Dimension getPreferredSize()(Code)(Java Doc) public KeyStroke[] getRegisteredKeyStrokes()(Code)(Java Doc) public JRootPane getRootPane()(Code)(Java Doc) public Dimension getSize(Dimension rv)(Code)(Java Doc) public Point getToolTipLocation(MouseEvent event)(Code)(Java Doc) public String getToolTipText()(Code)(Java Doc) public String getToolTipText(MouseEvent event)(Code)(Java Doc) public Container getTopLevelAncestor()(Code)(Java Doc) public TransferHandler getTransferHandler()(Code)(Java Doc) public String getUIClassID()(Code)(Java Doc) public boolean getVerifyInputWhenFocusTarget()(Code)(Java Doc) public synchronized VetoableChangeListener[] getVetoableChangeListeners()(Code)(Java Doc) public Rectangle getVisibleRect()(Code)(Java Doc) public int getWidth()(Code)(Java Doc) public int getX()(Code)(Java Doc) public int getY()(Code)(Java Doc) public void grabFocus()(Code)(Java Doc) public boolean isDoubleBuffered()(Code)(Java Doc) public static boolean isLightweightComponent(Component c)(Code)(Java Doc) public boolean isManagingFocus()(Code)(Java Doc) public boolean isOpaque()(Code)(Java Doc) public boolean isOptimizedDrawingEnabled()(Code)(Java Doc) final public boolean isPaintingForPrint()(Code)(Java Doc) public boolean isPaintingTile()(Code)(Java Doc) public boolean isRequestFocusEnabled()(Code)(Java Doc) public boolean isValidateRoot()(Code)(Java Doc) public void paint(Graphics g)(Code)(Java Doc) protected void paintBorder(Graphics g)(Code)(Java Doc) protected void paintChildren(Graphics g)(Code)(Java Doc) protected void paintComponent(Graphics g)(Code)(Java Doc) public void paintImmediately(int x, int y, int w, int h)(Code)(Java Doc) public void paintImmediately(Rectangle r)(Code)(Java Doc) protected String paramString()(Code)(Java Doc) public void print(Graphics g)(Code)(Java Doc) public void printAll(Graphics g)(Code)(Java Doc) protected void printBorder(Graphics g)(Code)(Java Doc) protected void printChildren(Graphics g)(Code)(Java Doc) protected void printComponent(Graphics g)(Code)(Java Doc) protected void processComponentKeyEvent(KeyEvent e)(Code)(Java Doc) protected boolean processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)(Code)(Java Doc) protected void processKeyEvent(KeyEvent e)(Code)(Java Doc) protected void processMouseEvent(MouseEvent e)(Code)(Java Doc) protected void processMouseMotionEvent(MouseEvent e)(Code)(Java Doc) final public void putClientProperty(Object key, Object value)(Code)(Java Doc) public void registerKeyboardAction(ActionListener anAction, String aCommand, KeyStroke aKeyStroke, int aCondition)(Code)(Java Doc) public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition)(Code)(Java Doc) public void removeAncestorListener(AncestorListener listener)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) public synchronized void removeVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc) public void repaint(long tm, int x, int y, int width, int height)(Code)(Java Doc) public void repaint(Rectangle r)(Code)(Java Doc) public boolean requestDefaultFocus()(Code)(Java Doc) public void requestFocus()(Code)(Java Doc) public boolean requestFocus(boolean temporary)(Code)(Java Doc) public boolean requestFocusInWindow()(Code)(Java Doc) protected boolean requestFocusInWindow(boolean temporary)(Code)(Java Doc) public void resetKeyboardActions()(Code)(Java Doc) public void reshape(int x, int y, int w, int h)(Code)(Java Doc) public void revalidate()(Code)(Java Doc) public void scrollRectToVisible(Rectangle aRect)(Code)(Java Doc) final public void setActionMap(ActionMap am)(Code)(Java Doc) public void setAlignmentX(float alignmentX)(Code)(Java Doc) public void setAlignmentY(float alignmentY)(Code)(Java Doc) public void setAutoscrolls(boolean autoscrolls)(Code)(Java Doc) public void setBackground(Color bg)(Code)(Java Doc) public void setBorder(Border border)(Code)(Java Doc) public void setComponentPopupMenu(JPopupMenu popup)(Code)(Java Doc) public void setDebugGraphicsOptions(int debugOptions)(Code)(Java Doc) public static void setDefaultLocale(Locale l)(Code)(Java Doc) public void setDoubleBuffered(boolean aFlag)(Code)(Java Doc) public void setEnabled(boolean enabled)(Code)(Java Doc) public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)(Java Doc) public void setFont(Font font)(Code)(Java Doc) public void setForeground(Color fg)(Code)(Java Doc) public void setInheritsPopupMenu(boolean value)(Code)(Java Doc) final public void setInputMap(int condition, InputMap map)(Code)(Java Doc) public void setInputVerifier(InputVerifier inputVerifier)(Code)(Java Doc) public void setMaximumSize(Dimension maximumSize)(Code)(Java Doc) public void setMinimumSize(Dimension minimumSize)(Code)(Java Doc) public void setNextFocusableComponent(Component aComponent)(Code)(Java Doc) public void setOpaque(boolean isOpaque)(Code)(Java Doc) public void setPreferredSize(Dimension preferredSize)(Code)(Java Doc) public void setRequestFocusEnabled(boolean requestFocusEnabled)(Code)(Java Doc) public void setToolTipText(String text)(Code)(Java Doc) public void setTransferHandler(TransferHandler newHandler)(Code)(Java Doc) protected void setUI(ComponentUI newUI)(Code)(Java Doc) public void setVerifyInputWhenFocusTarget(boolean verifyInputWhenFocusTarget)(Code)(Java Doc) public void setVisible(boolean aFlag)(Code)(Java Doc) public void unregisterKeyboardAction(KeyStroke aKeyStroke)(Code)(Java Doc) public void update(Graphics g)(Code)(Java Doc) public void updateUI()(Code)(Java Doc)
|
|
|