congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DateChooserPanel.getFirstVisibleDate
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.jfree/jcommon

/**
 * Update the button labels and colors to reflect date selection.
 */
private void refreshButtons() {
  final Calendar c = getFirstVisibleDate();
  for (int i = 0; i < 42; i++) {
    final JButton b = this.buttons[i];
    b.setText(Integer.toString(c.get(Calendar.DATE)));
    b.setBackground(getButtonColor(c));
    c.add(Calendar.DATE, 1);
  }
}
origin: jfree/jcommon

/**
 * Update the button labels and colors to reflect date selection.
 */
private void refreshButtons() {
  final Calendar c = getFirstVisibleDate();
  for (int i = 0; i < 42; i++) {
    final JButton b = this.buttons[i];
    b.setText(Integer.toString(c.get(Calendar.DATE)));
    b.setBackground(getButtonColor(c));
    c.add(Calendar.DATE, 1);
  }
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Update the button labels and colors to reflect date selection.
 */
private void refreshButtons() {
  final Calendar c = getFirstVisibleDate();
  for (int i = 0; i < 42; i++) {
    final JButton b = this.buttons[i];
    b.setText(Integer.toString(c.get(Calendar.DATE)));
    b.setBackground(getButtonColor(c));
    c.add(Calendar.DATE, 1);
  }
}
origin: org.jfree/com.springsource.org.jfree

final JButton b = (JButton) e.getSource();
final int i = Integer.parseInt(b.getName());
final Calendar cal = getFirstVisibleDate();
cal.add(Calendar.DATE, i);
setDate(cal.getTime());
origin: jfree/jcommon

final JButton b = (JButton) e.getSource();
final int i = Integer.parseInt(b.getName());
final Calendar cal = getFirstVisibleDate();
cal.add(Calendar.DATE, i);
setDate(cal.getTime());
origin: org.jfree/jcommon

final JButton b = (JButton) e.getSource();
final int i = Integer.parseInt(b.getName());
final Calendar cal = getFirstVisibleDate();
cal.add(Calendar.DATE, i);
setDate(cal.getTime());
org.jfree.uiDateChooserPanelgetFirstVisibleDate

Javadoc

Returns the first date that is visible in the grid. This should always be in the month preceding the month of the selected date.

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).
  • 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

  • Reading from database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (Timer)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JFrame (javax.swing)
  • JPanel (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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