~ubuntu-branches/ubuntu/trusty/libswingx-java/trusty

« back to all changes in this revision

Viewing changes to src/test/org/jdesktop/swingx/test/CustomMonthViewUI.java

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2011-03-06 00:28:45 UTC
  • mfrom: (4.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110306002845-escned3cbqp5qx0t
Tags: 1:1.6.2-1
* New upstream release.
* Switch to maven as build system:
  - d/control: drop ant, add maven-debian-helper
  - d/rules: use maven.mk
* d/patches/pom.diff: drop, uneeded since upstream fixed its dependencies.
* d/watch: update to use java.net directly.
* d/rules: force debian version for JARs (Closes: #603495).
* d/copyright: Update to lastest DEP-5 r166.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Created on 19.12.2007
3
 
 *
4
 
 */
5
 
package org.jdesktop.swingx.test;
6
 
 
7
 
import java.awt.Color;
8
 
 
9
 
import javax.swing.JComponent;
10
 
import javax.swing.plaf.ColorUIResource;
11
 
import javax.swing.plaf.ComponentUI;
12
 
 
13
 
import org.jdesktop.swingx.plaf.basic.BasicMonthViewUI;
14
 
 
15
 
/**
16
 
 * 
17
 
 * Testing custom ui delegate for JXMonthView.
18
 
 * 
19
 
 * @author Jeanette Winzenburg
20
 
 */
21
 
public class CustomMonthViewUI extends BasicMonthViewUI {
22
 
    @SuppressWarnings({"UnusedDeclaration"})
23
 
    public static ComponentUI createUI(JComponent c) {
24
 
        return new CustomMonthViewUI();
25
 
    }
26
 
 
27
 
    @Override
28
 
    protected void installDefaults() {
29
 
        super.installDefaults();
30
 
        monthView.setSelectionBackground(new ColorUIResource(Color.MAGENTA));
31
 
    }
32
 
    
33
 
    
34
 
}
 
 
b'\\ No newline at end of file'