congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
DateChooserPanel.setDate
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.jfree/com.springsource.org.jfree

setDate(new Date());
final Calendar cal = getFirstVisibleDate();
cal.add(Calendar.DATE, i);
setDate(cal.getTime());
origin: jfree/jcommon

setDate(new Date());
final Calendar cal = getFirstVisibleDate();
cal.add(Calendar.DATE, i);
setDate(cal.getTime());
origin: org.jfree/jcommon

setDate(new Date());
final Calendar cal = getFirstVisibleDate();
cal.add(Calendar.DATE, i);
setDate(cal.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());
}
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());
}
org.jfree.uiDateChooserPanelsetDate

Javadoc

Sets the date chosen in the panel.

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.
  • getCalendarPanel
    Returns a panel of buttons, each button representing a day in the month. This is a sub-component of
  • 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.
  • refreshButtons,
  • refreshYearSelector,
  • <init>

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JTextField (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now