Package org.japura.gui.calendar

Examples of org.japura.gui.calendar.PropertiesProvider


  setFont(getCalendar().getPropertiesProvider().getDayOfWeekFont());
  addMouseListener(this);
  }

  private Border buildBorder() {
  PropertiesProvider pp = getCalendar().getPropertiesProvider();

  Insets margin = pp.getDayOfWeekMargin();
  int t = margin.top;
  int l = margin.left;
  int b = margin.bottom;
  int r = margin.right;

  Border ini =
    BorderFactory.createMatteBorder(1, 0, 0, 0,
      pp.getTopDayOfWeekSeparatorColor());
  Border outi =
    BorderFactory.createMatteBorder(0, 0, 1, 0,
      pp.getBottomDayOfWeekSeparatorColor());

  Border in = BorderFactory.createEmptyBorder(t, l, b, r);
  Border out = BorderFactory.createCompoundBorder(outi, ini);
  return BorderFactory.createCompoundBorder(out, in);
  }
View Full Code Here

TOP

Related Classes of org.japura.gui.calendar.PropertiesProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.