<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ojwiki.soldin.de/index.php?action=history&amp;feed=atom&amp;title=OpenJUMP_with_Wallpaper</id>
	<title>OpenJUMP with Wallpaper - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ojwiki.soldin.de/index.php?action=history&amp;feed=atom&amp;title=OpenJUMP_with_Wallpaper"/>
	<link rel="alternate" type="text/html" href="https://ojwiki.soldin.de/index.php?title=OpenJUMP_with_Wallpaper&amp;action=history"/>
	<updated>2026-08-26T03:03:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://ojwiki.soldin.de/index.php?title=OpenJUMP_with_Wallpaper&amp;diff=323&amp;oldid=prev</id>
		<title>Mentaer: Created page with &#039;that code adds a wallpaper to workbench&#039;s jdesktoppane.  File:Oj_wallpaper.jpg  # First add the image to &#039;&#039;com.vividsolutions.jump.workbench.ui.images&#039;&#039;, where is the IconLoa…&#039;</title>
		<link rel="alternate" type="text/html" href="https://ojwiki.soldin.de/index.php?title=OpenJUMP_with_Wallpaper&amp;diff=323&amp;oldid=prev"/>
		<updated>2009-10-18T21:41:26Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;that code adds a wallpaper to workbench&amp;#039;s jdesktoppane.  &lt;a href=&quot;/index.php?title=File:Oj_wallpaper.jpg&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;File:Oj wallpaper.jpg (page does not exist)&quot;&gt;File:Oj_wallpaper.jpg&lt;/a&gt;  # First add the image to &amp;#039;&amp;#039;com.vividsolutions.jump.workbench.ui.images&amp;#039;&amp;#039;, where is the IconLoa…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;that code adds a wallpaper to workbench&amp;#039;s jdesktoppane.&lt;br /&gt;
&lt;br /&gt;
[[File:Oj_wallpaper.jpg]]&lt;br /&gt;
&lt;br /&gt;
# First add the image to &amp;#039;&amp;#039;com.vividsolutions.jump.workbench.ui.images&amp;#039;&amp;#039;, where is the IconLoader. you can download one from [http://www.flickr.com/photo_zoom.gne?id=74384421&amp;amp;size=o here]&lt;br /&gt;
# Then modified the Configuration in &amp;#039;&amp;#039;&amp;#039;OpenJUMP&amp;#039;&amp;#039;&amp;#039; the class &amp;#039;&amp;#039;org.openjump.OpenJumpConfiguration&amp;#039;&amp;#039;in &amp;#039;&amp;#039;&amp;#039;JUMP&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;com.vividsolutions.jump.workbench.JUMPConfiguration&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
adding the follow code&lt;br /&gt;
&lt;br /&gt;
first add the next method.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 private static void loadBackground(WorkbenchContext workbenchContext){&lt;br /&gt;
&lt;br /&gt;
     /*setting the border with a image*/&lt;br /&gt;
     workbenchContext.getWorkbench().getFrame()&lt;br /&gt;
     .getDesktopPane().setBorder(new Border() {&lt;br /&gt;
                public void paintBorder(Component c, Graphics g, &lt;br /&gt;
                      int x, int y, int width, int height) {&lt;br /&gt;
&lt;br /&gt;
               //the name of the image is walljump.png in this case            &lt;br /&gt;
               g.drawImage(IconLoader.icon(&amp;quot;walljump.png&amp;quot;).getImage(), &lt;br /&gt;
                      0, 0, null);&lt;br /&gt;
    	        }&lt;br /&gt;
&lt;br /&gt;
    	        public Insets getBorderInsets(Component c) {&lt;br /&gt;
    	            return new Insets(0,0,0,0);&lt;br /&gt;
    	        }&lt;br /&gt;
&lt;br /&gt;
    	        public boolean isBorderOpaque() {&lt;br /&gt;
    	            return true;&lt;br /&gt;
    	        }&lt;br /&gt;
    	    }&lt;br /&gt;
    		);&lt;br /&gt;
&lt;br /&gt;
        /*setting background white*/&lt;br /&gt;
    	workbenchContext.getWorkbench().getFrame()&lt;br /&gt;
		.getDesktopPane().setBackground(Color.WHITE);&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now call the method &amp;#039;&amp;#039;loadBackground&amp;#039;&amp;#039; from OpenJumpConfiguration.java in (JUMP add the line in the method &amp;#039;&amp;#039;setup&amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
	public static void loadOpenJumpPlugIns(final WorkbenchContext workbenchContext) &lt;br /&gt;
            throws Exception {&lt;br /&gt;
&lt;br /&gt;
            .....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
            loadBackground(workbenchContext);&lt;br /&gt;
&lt;br /&gt;
        &lt;br /&gt;
        }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
.. so that&amp;#039;s all..&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>
	</entry>
</feed>