~ubuntu-branches/ubuntu/saucy/libjgraph-java/saucy

« back to all changes in this revision

Viewing changes to examples/com/jgraph/example/MyPortView.java

  • Committer: Bazaar Package Importer
  • Author(s): gregor herrmann
  • Date: 2011-02-09 18:37:22 UTC
  • mfrom: (1.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20110209183722-9so2kaovf53l6lx4
* New upstream release.
* debian/control: 
  - set Section to java
  - change build dependency from default-jdk-builddep to default-jdk
  - add ${misc:Depends} to Depends:.
* Change source URL in debian/copyright and debian/watch.
* Switch from dh_wraporig to repack.sh for repackaging.
* Switch to source format 3.0 (quilt).
* Set Standards-Version to 3.9.1 (no changes).
* Use debhelper 7 (debian/{rules,compat,control})
* Update patch and patch headers.
* debian/rules: don't build apidocs twice.
* debian/copyright: update years of copyright and formatting.
* Register API specification with doc-base system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
public class MyPortView extends PortView {
28
28
 
29
29
        public static void main(String[] args) {
 
30
                // Switch off D3D because of Sun XOR painting bug
 
31
                // See http://www.jgraph.com/forum/viewtopic.php?t=4066
 
32
                System.setProperty("sun.java2d.d3d", "false");
30
33
                URL portUrl = Main.class.getClassLoader().getResource("org/jgraph/example/resources/port.gif");
31
34
                if (portUrl != null)
32
35
                        portIcon = new ImageIcon(portUrl);