Codota Logo
DateChooserPanel.getCalendarPanel
Code IndexAdd Codota to your IDE (free)

How to use
getCalendarPanel
method
in
org.jfree.ui.DateChooserPanel

Best Java code snippets using org.jfree.ui.DateChooserPanel.getCalendarPanel (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: jfree/jcommon

/**
 * Constructs a new date chooser panel.
 *
 * @param calendar     the calendar controlling the date.
 * @param controlPanel a flag that indicates whether or not the 'today' 
 *                     button should appear on the panel.
 */
public DateChooserPanel(final Calendar calendar, 
            final boolean controlPanel) {
  super(new BorderLayout());
  this.chosenDateButtonColor = UIManager.getColor("textHighlight");
  this.chosenMonthButtonColor = UIManager.getColor("control");
  this.chosenOtherButtonColor = UIManager.getColor("controlShadow");
  // the default date is today...
  this.chosenDate = calendar;
  this.firstDayOfWeek = calendar.getFirstDayOfWeek();
  this.WEEK_DAYS = new int[7];
  for (int i = 0; i < 7; i++) {
    this.WEEK_DAYS[i] = ((this.firstDayOfWeek + i - 1) % 7) + 1;
  }
  add(constructSelectionPanel(), BorderLayout.NORTH);
  add(getCalendarPanel(), BorderLayout.CENTER);
  if (controlPanel) {
    add(constructControlPanel(), BorderLayout.SOUTH);
  }
  setDate(calendar.getTime());
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Constructs a new date chooser panel.
 *
 * @param calendar     the calendar controlling the date.
 * @param controlPanel a flag that indicates whether or not the 'today' 
 *                     button should appear on the panel.
 */
public DateChooserPanel(final Calendar calendar, 
            final boolean controlPanel) {
  super(new BorderLayout());
  this.chosenDateButtonColor = UIManager.getColor("textHighlight");
  this.chosenMonthButtonColor = UIManager.getColor("control");
  this.chosenOtherButtonColor = UIManager.getColor("controlShadow");
  // the default date is today...
  this.chosenDate = calendar;
  this.firstDayOfWeek = calendar.getFirstDayOfWeek();
  this.WEEK_DAYS = new int[7];
  for (int i = 0; i < 7; i++) {
    this.WEEK_DAYS[i] = ((this.firstDayOfWeek + i - 1) % 7) + 1;
  }
  add(constructSelectionPanel(), BorderLayout.NORTH);
  add(getCalendarPanel(), BorderLayout.CENTER);
  if (controlPanel) {
    add(constructControlPanel(), BorderLayout.SOUTH);
  }
  setDate(calendar.getTime());
}
origin: org.jfree/jcommon

/**
 * Constructs a new date chooser panel.
 *
 * @param calendar     the calendar controlling the date.
 * @param controlPanel a flag that indicates whether or not the 'today' 
 *                     button should appear on the panel.
 */
public DateChooserPanel(final Calendar calendar, 
            final boolean controlPanel) {
  super(new BorderLayout());
  this.chosenDateButtonColor = UIManager.getColor("textHighlight");
  this.chosenMonthButtonColor = UIManager.getColor("control");
  this.chosenOtherButtonColor = UIManager.getColor("controlShadow");
  // the default date is today...
  this.chosenDate = calendar;
  this.firstDayOfWeek = calendar.getFirstDayOfWeek();
  this.WEEK_DAYS = new int[7];
  for (int i = 0; i < 7; i++) {
    this.WEEK_DAYS[i] = ((this.firstDayOfWeek + i - 1) % 7) + 1;
  }
  add(constructSelectionPanel(), BorderLayout.NORTH);
  add(getCalendarPanel(), BorderLayout.CENTER);
  if (controlPanel) {
    add(constructControlPanel(), BorderLayout.SOUTH);
  }
  setDate(calendar.getTime());
}
org.jfree.uiDateChooserPanelgetCalendarPanel

Javadoc

Returns a panel of buttons, each button representing a day in the month. This is a sub-component of the DatePanel.

Popular methods of DateChooserPanel

  • add
  • constructControlPanel
    Returns a panel that appears at the bottom of the calendar panel - contains a button for selecting t
  • constructSelectionPanel
    Constructs a panel containing two JComboBoxes (for the month and year) and a button (to reset the da
  • equalDates
    Returns true if the two dates are equal (time of day is ignored).
  • firePropertyChange
  • getButtonColor
    Returns the button color according to the specified date.
  • getFirstDayOfWeek
    Returns the first day of the week (controls the labels in the date panel).
  • getFirstVisibleDate
    Returns the first date that is visible in the grid. This should always be in the month preceding the
  • getYears
    Returns a vector of years preceding and following the specified year. The number of years preceding
  • refreshButtons
    Update the button labels and colors to reflect date selection.
  • refreshYearSelector
    Changes the contents of the year selection JComboBox to reflect the chosen date and the year range.
  • setDate
    Sets the date chosen in the panel.
  • refreshYearSelector,
  • setDate,
  • <init>

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • setContentView (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JButton (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now