+2011-08-13 Sampo Niskanen
+
+ * [BUG] JDK7 returns null font for TitledBorder
+
2011-08-12 Sampo Niskanen
* Released version 1.1.7
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JDialog;
+import javax.swing.JLabel;
import javax.swing.JRootPane;
import javax.swing.JSlider;
import javax.swing.JSpinner;
*/
public static void changeFontStyle(TitledBorder border, int style) {
/*
- * There's been an NPE caused by the font changing, this is debug for it.
+ * The fix of JRE bug #4129681 causes a TitledBorder occasionally to
+ * return a null font. We try to work around the issue by detecting it
+ * and reverting to the font of a JLabel instead.
*/
- if (border == null) {
- throw new BugException("border is null");
- }
Font font = border.getTitleFont();
if (font == null) {
- throw new BugException("Border font is null");
+ log.error("Border font is null, reverting to JLabel font");
+ font = new JLabel().getFont();
+ if (font == null) {
+ log.error("JLabel font is null, not modifying font");
+ return;
+ }
}
font = font.deriveFont(style);
if (font == null) {
<li><a href="download.html">Download</a></li>
<li><a href="documentation.html">Documentation</a></li>
<li><a href="http://sourceforge.net/apps/mediawiki/openrocket/">Wiki pages</a></li>
+ <li><a href="http://openrocket.trans.free.fr/">Translations</a></li>
<li><a href="getinvolved.html">Get involved!</a></li>
<li><a href="contact.html">
Mailing lists<br/>
Support forums<br/>
Contact info</a></li>
+<!--
<li><a href="report.html">
Report a bug<br/>
Request a feature</a></li>
+-->
<li><a href="license.html">License</a></li>
</ul>
<div class="logo">
<p><strong><em>Support requests</em></strong> should be sent to
the <a href="http://apps.sourceforge.net/phpbb/openrocket/">support
forums</a>.<br/>
- <strong><em>Bug reports and feature requests</em></strong> should
- be <a href="report.html">reported separately</a>.</p>
+<!-- <strong><em>Bug reports and feature requests</em></strong> should
+ be <a href="report.html">reported separately</a>.</p> -->
<p><strong>Email:</strong>
<em>sam<span>po</span>.<span>niskanen</span><span>@i</span>ki.fi</em></p>
<p><strong>WWW:</strong>
<a href="http://www.iki.fi/sampo.niskanen/"
title="Home page of Sampo Niskanen"><em>http://www.iki.fi/sampo.niskanen/</em></a></p>
- <div class="t"></div>
- <div class="r"></div>
- <div class="b"></div>
- <div class="l"></div>
- <div class="tr"></div>
- <div class="tl"></div>
- <div class="br"></div>
- <div class="bl"></div>
</div>
<div class="valid">
<p><a href="http://validator.w3.org/check/referer"><img src="valid-xhtml10.png" alt="Valid XHTML 1.0!" /></a>
<li><a href="download.html">Download</a></li>
<li><a href="documentation.html">Documentation</a></li>
<li><a href="http://sourceforge.net/apps/mediawiki/openrocket/">Wiki pages</a></li>
+ <li><a href="http://openrocket.trans.free.fr/">Translations</a></li>
<li><a href="getinvolved.html">Get involved!</a></li>
<li><a href="contact.html">
Mailing lists<br/>
Support forums<br/>
Contact info</a></li>
+<!--
<li><a href="report.html">
Report a bug<br/>
Request a feature</a></li>
+-->
<li><a href="license.html">License</a></li>
</ul>
<div class="logo">
wiki page</a>, including links to Barrowman's original report and
thesis, extensions for the Barrowman method, experimental rocket
data etc.</p>
- <div class="t"></div>
- <div class="r"></div>
- <div class="b"></div>
- <div class="l"></div>
- <div class="tr"></div>
- <div class="tl"></div>
- <div class="br"></div>
- <div class="bl"></div>
</div>
<div class="valid">
<p><a href="http://validator.w3.org/check/referer"><img src="valid-xhtml10.png" alt="Valid XHTML 1.0!" /></a>
<li><a href="download.html">Download</a></li>
<li><a href="documentation.html">Documentation</a></li>
<li><a href="http://sourceforge.net/apps/mediawiki/openrocket/">Wiki pages</a></li>
+ <li><a href="http://openrocket.trans.free.fr/">Translations</a></li>
<li><a href="getinvolved.html">Get involved!</a></li>
<li><a href="contact.html">
Mailing lists<br/>
Support forums<br/>
Contact info</a></li>
+<!--
<li><a href="report.html">
Report a bug<br/>
Request a feature</a></li>
+-->
<li><a href="license.html">License</a></li>
</ul>
<div class="logo">
<pre class="quote">$ svn co https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk OpenRocket</pre>
<p>The above URL may be used to connect to the repository with
other Subversion clients as well.</p>
- <div class="t"></div>
- <div class="r"></div>
- <div class="b"></div>
- <div class="l"></div>
- <div class="tr"></div>
- <div class="tl"></div>
- <div class="br"></div>
- <div class="bl"></div>
</div>
<div class="valid">
<p><a href="http://validator.w3.org/check/referer"><img src="valid-xhtml10.png" alt="Valid XHTML 1.0!" /></a>
<li><a href="download.html">Download</a></li>
<li><a href="documentation.html">Documentation</a></li>
<li><a href="http://sourceforge.net/apps/mediawiki/openrocket/">Wiki pages</a></li>
+ <li><a href="http://openrocket.trans.free.fr/">Translations</a></li>
<li><a href="getinvolved.html">Get involved!</a></li>
<li><a href="contact.html">
Mailing lists<br/>
Support forums<br/>
Contact info</a></li>
+<!--
<li><a href="report.html">
Report a bug<br/>
Request a feature</a></li>
+-->
<li><a href="license.html">License</a></li>
</ul>
<div class="logo">
<p>If you want to help make OpenRocket the best rocket simulator,
don't hesitate to <a href="getinvolved.html">Get involved!</a></p>
<div class="clear"></div>
- <div class="t"></div>
- <div class="r"></div>
- <div class="b"></div>
- <div class="l"></div>
- <div class="tr"></div>
- <div class="tl"></div>
- <div class="br"></div>
- <div class="bl"></div>
</div>
<div class="valid">
<p><a href="http://validator.w3.org/check/referer"><img src="valid-xhtml10.png" alt="Valid XHTML 1.0!" /></a>
<li><a href="download.html">Download</a></li>
<li><a href="documentation.html">Documentation</a></li>
<li><a href="http://sourceforge.net/apps/mediawiki/openrocket/">Wiki pages</a></li>
+ <li><a href="http://openrocket.trans.free.fr/">Translations</a></li>
<li><a href="getinvolved.html">Get involved!</a></li>
<li><a href="contact.html">
Mailing lists<br/>
Support forums<br/>
Contact info</a></li>
+<!--
<li><a href="report.html">
Report a bug<br/>
Request a feature</a></li>
+-->
<li><a href="license.html">License</a></li>
</ul>
<div class="logo">
</ul>
<h3 id="other">Other</h3>
<ul>
+ <li><a href="http://openrocket.trans.free.fr/">Translating OpenRocket</a> to your language</li>
<li>Creating good and interesting example designs that
demonstrate some OpenRocket features.</li>
<li>Hosting a place to share rocket designs with other
<li>Giving input and suggestions on how to make OpenRocket
better.</li>
</ul>
- <div class="t"></div>
- <div class="r"></div>
- <div class="b"></div>
- <div class="l"></div>
- <div class="tr"></div>
- <div class="tl"></div>
- <div class="br"></div>
- <div class="bl"></div>
</div>
<div class="valid">
<p><a href="http://validator.w3.org/check/referer"><img src="valid-xhtml10.png" alt="Valid XHTML 1.0!" /></a>
<li><a href="download.html">Download</a></li>
<li><a href="documentation.html">Documentation</a></li>
<li><a href="http://sourceforge.net/apps/mediawiki/openrocket/">Wiki pages</a></li>
+ <li><a href="http://openrocket.trans.free.fr/">Translations</a></li>
<li><a href="getinvolved.html">Get involved!</a></li>
<li><a href="contact.html">
Mailing lists<br/>
Support forums<br/>
Contact info</a></li>
+<!--
<li><a href="report.html">
Report a bug<br/>
Request a feature</a></li>
+-->
<li><a href="license.html">License</a></li>
</ul>
<div class="logo">
<p><strong>OpenRocket</strong> is an free, fully featured model
rocket simulator that allows you to design and simulate your
rockets before actually building and flying them.</p>
- <p>OpenRocket features a full six-degree-of-freedom simulation,
- realistic wind modeling, a multitude of different components
- including free-form fins and canted fins, automatic design
- optimization, clustering and staging. Read more about its <a
+ <p>The main features include:</p>
+ <ul>
+ <li>Six-degree-of-freedom flight simulation</li>
+ <li>Automatic design optimization</li>
+ <li>Realtime simulated altitude, velocity and acceleration display</li>
+ <li>Staging and clustering support</li>
+ <li>Cross-platform (Java-based)</li>
+ </ul>
+ <p>Read more about its <a
href="features.html">features and see screenshots</a>.
</p>
<p>OpenRocket is an Open Source project licensed under the
<p><span class="date">24.5.2009:</span> First version 0.9.0
<a href="download.html">released</a>!</p>
</div>
- <div class="t"></div>
- <div class="r"></div>
- <div class="b"></div>
- <div class="l"></div>
- <div class="tr"></div>
- <div class="tl"></div>
- <div class="br"></div>
- <div class="bl"></div>
</div>
<div class="valid">
<p><a href="http://validator.w3.org/check/referer"><img src="valid-xhtml10.png" alt="Valid XHTML 1.0!" /></a>
width: 170px;
margin: 0;
padding: 0 0;
- background: #c1d0db url(menubg.png) repeat-x;
+
+ background: url("menubg.png") repeat-x scroll 0 -35px #C1D0DB;
+
z-index: 200;
border: solid 1px black;
-moz-border-radius: 12px;
-webkit-border-radius: 12px;
-khtml-border-radius: 12px;
border-radius: 12px;
+ -moz-box-shadow: 0px 1px 10px 0px rgba(0,0,0,0.5);
+ -webkit-box-shadow: 0px 1px 10px 0px rgba(0,0,0,0.5);
+ box-shadow: 0px 1px 10px 0px rgba(0,0,0,0.5);
}
div.menu ul {
position: relative;
.content {
margin: 0em 2em 1em 130px;
- padding: 2em 2em 2em 80px;
+ padding: 2em 2em 2em 95px;
min-height: 27em;
background-color: white;
position: relative;
- border: 2px solid #666;
+ *border: 2px solid #666;
min-height: 530px;
-}
-
-
-.content div.tl, .content div.tr, .content div.bl, .content div.br {
- position: absolute;
- width: 10px;
- height: 10px;
- background: url('whitebox.png') no-repeat;
-}
-.content div.tl {
- top: -10px;
- left: -10px;
- background-position: 0px 0px;
-}
-.content div.tr {
- top: -10px;
- right: -10px;
- background-position: -50px 0px;
-}
-.content div.bl {
- bottom: -10px;
- left: -10px;
- background-position: 0px -50px;
-}
-.content div.br {
- bottom: -10px;
- right: -10px;
- background-position: -50px -50px;
-}
-
-.content div.t, .content div.b {
- position: absolute;
- height: 10px;
- left: 0px;
- right: 0px;
- background: url('whitebox-vertical.png') repeat-x;
-}
-.content div.t {
- top: -10px;
-}
-.content div.b {
- bottom: -10px;
- background-position: 0px -50px;
-}
-
-.content div.l, .content div.r {
- position: absolute;
- width: 10px;
- top: 0px;
- bottom: 0px;
- background: url('whitebox-horizontal.png') repeat-y;
-}
-.content div.l {
- left: -10px;
-}
-.content div.r {
- right: -10px;
- background-position: -50px 0px;
+
+ -moz-border-radius: 7px;
+ -webkit-border-radius: 7px;
+ border-radius: 7px;
+
+ -moz-box-shadow: 0px 0px 8px 5px white;
+ -webkit-box-shadow: 0px 0px 8px 5px white;
+ box-shadow: 0px 0px 8px 5px white;
+}
+
+
+.gradientbutton {
+ display: inline-block;
+ width: 200px;
+ height: 100px;
+
+ border-top: 2px solid #6f2;
+ border-left: 1px solid #4c1;
+ border-right: 1px solid #380;
+ border-bottom: 2px solid #360;
+
+ background-color: #5c2;
+
+ -moz-border-radius: 10px;
+ -webkit-border-radius: 10px;
+ border-radius: 10px;
+
+ background-image: -webkit-gradient(
+ linear,
+ left bottom,
+ left top,
+ color-stop(0.08, rgb(55,146,14)),
+ color-stop(0.9, rgb(102,221,17))
+ );
+ background-image: -moz-linear-gradient(
+ center bottom,
+ rgb(55,146,14) 8%,
+ rgb(102,221,17) 90%
+ );
+/*
+ background: -moz-linear-gradient(center bottom , #0B5CE2 30%, #2678FF 65%) repeat scroll 0 0;
+/** */
}
div.downloadbox {
position: relative;
- width: 175px;
+ width: 180px;
height: 80px;
- background: transparent url('greenbox.png') no-repeat;
text-align: left;
+
+ border-top: 2px solid #6e2;
+ border-left: 1px solid #4c1;
+ border-right: 1px solid #380;
+ border-bottom: 2px solid #360;
+
+ -moz-box-shadow: 1px 1px 4px 0px #333;
+ -webkit-box-shadow: 1px 1px 4px 0px #333;
+ box-shadow: 1px 1px 4px 0px #333;
+
+
+ background-color: #5c2;
+
+ -moz-border-radius: 10px;
+ -webkit-border-radius: 10px;
+ border-radius: 10px;
+
+ background-image: -webkit-gradient(
+ linear,
+ left bottom,
+ left top,
+ color-stop(0.08, rgb(55,156,14)),
+ color-stop(0.9, rgb(102,221,17))
+ );
+ background-image: -moz-linear-gradient(
+ center bottom,
+ rgb(55,156,14) 8%,
+ rgb(102,221,17) 90%
+ );
}
div.downloadbox a.main {
color: #a0ff4b;
font-family: Arial, sans-serif;
- padding: 10px 12px;
+ padding: 8px 12px;
text-shadow: #666 1px 1px 1px;
}
div.downloadbox a.main span {
<li><a href="download.html">Download</a></li>
<li><a href="documentation.html">Documentation</a></li>
<li><a href="http://sourceforge.net/apps/mediawiki/openrocket/">Wiki pages</a></li>
+ <li><a href="http://openrocket.trans.free.fr/">Translations</a></li>
<li><a href="getinvolved.html">Get involved!</a></li>
<li><a href="contact.html">
Mailing lists<br/>
Support forums<br/>
Contact info</a></li>
+<!--
<li><a href="report.html">
Report a bug<br/>
Request a feature</a></li>
+-->
<li><a href="license.html">License</a></li>
</ul>
<div class="logo">
<pre class="license">
OpenRocket - A model rocket simulator
-Copyright (C) 2007-2009 Sampo Niskanen
+Copyright (C) 2007-2011 Sampo Niskanen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
</pre>
<hr/>
- <div class="t"></div>
- <div class="r"></div>
- <div class="b"></div>
- <div class="l"></div>
- <div class="tr"></div>
- <div class="tl"></div>
- <div class="br"></div>
- <div class="bl"></div>
</div>
<div class="valid">
<p><a href="http://validator.w3.org/check/referer"><img src="valid-xhtml10.png" alt="Valid XHTML 1.0!" /></a>
<li><a href="download.html">Download</a></li>
<li><a href="documentation.html">Documentation</a></li>
<li><a href="http://sourceforge.net/apps/mediawiki/openrocket/">Wiki pages</a></li>
+ <li><a href="http://openrocket.trans.free.fr/">Translations</a></li>
<li><a href="getinvolved.html">Get involved!</a></li>
<li><a href="contact.html">
Mailing lists<br/>
Support forums<br/>
Contact info</a></li>
+<!--
<li><a href="report.html">
Report a bug<br/>
Request a feature</a></li>
+-->
<li><a href="license.html">License</a></li>
</ul>
<div class="logo">
enhancement request. Please send multiple enhancements as
individual items.</li>
</ul>
- <div class="t"></div>
- <div class="r"></div>
- <div class="b"></div>
- <div class="l"></div>
- <div class="tr"></div>
- <div class="tl"></div>
- <div class="br"></div>
- <div class="bl"></div>
</div>
<div class="valid">
<p><a href="http://validator.w3.org/check/referer"><img src="valid-xhtml10.png" alt="Valid XHTML 1.0!" /></a>
<li><a href="download.html">Download</a></li>
<li><a href="documentation.html">Documentation</a></li>
<li><a href="http://sourceforge.net/apps/mediawiki/openrocket/">Wiki pages</a></li>
+ <li><a href="http://openrocket.trans.free.fr/">Translations</a></li>
<li><a href="getinvolved.html">Get involved!</a></li>
<li><a href="contact.html">
Mailing lists<br/>
Support forums<br/>
Contact info</a></li>
+<!--
<li><a href="report.html">
Report a bug<br/>
Request a feature</a></li>
+-->
<li><a href="license.html">License</a></li>
</ul>
<div class="logo">
<p><strong><em>Support requests</em></strong> should be sent to
the <a href="http://apps.sourceforge.net/phpbb/openrocket/">support
forums</a>.<br/>
- <strong><em>Bug reports and feature requests</em></strong> should
- be <a href="report.html">reported separately</a>.</p>
+<!-- <strong><em>Bug reports and feature requests</em></strong> should
+ be <a href="report.html">reported separately</a>.</p> -->
<p><strong>Email:</strong>
<em>sam<span>po</span>.<span>niskanen</span><span>@i</span>ki.fi</em></p>
<h3 id="other">Other</h3>
<ul>
+ <li><a href="http://openrocket.trans.free.fr/">Translating OpenRocket</a> to your language</li>
<li>Creating good and interesting example designs that
demonstrate some OpenRocket features.</li>
<li>Hosting a place to share rocket designs with other
</def>
<def name="contentbox">
- <div class="t"></div>
- <div class="r"></div>
- <div class="b"></div>
- <div class="l"></div>
- <div class="tr"></div>
- <div class="tl"></div>
- <div class="br"></div>
- <div class="bl"></div>
</def>
</div>
-
<p><strong>OpenRocket</strong> is an free, fully featured model
rocket simulator that allows you to design and simulate your
rockets before actually building and flying them.</p>
- <p>OpenRocket features a full six-degree-of-freedom simulation,
- realistic wind modeling, a multitude of different components
- including free-form fins and canted fins, automatic design
- optimization, clustering and staging. Read more about its <a
+ <p>The main features include:</p>
+
+ <ul>
+ <li>Six-degree-of-freedom flight simulation</li>
+ <li>Automatic design optimization</li>
+ <li>Realtime simulated altitude, velocity and acceleration display</li>
+ <li>Staging and clustering support</li>
+ <li>Cross-platform (Java-based)</li>
+ </ul>
+
+ <p>Read more about its <a
href="features.html">features and see screenshots</a>.
</p>
<p>OpenRocket is an Open Source project licensed under the
<pre class="license">
OpenRocket - A model rocket simulator
-Copyright (C) 2007-2009 Sampo Niskanen
+Copyright (C) 2007-2011 Sampo Niskanen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by