mirror of
https://github.com/meteoinfo/MeteoInfo.git
synced 2025-12-08 20:36:05 +00:00
accept user input value of wind vector length
This commit is contained in:
parent
8eda81e4af
commit
5a56379596
@ -1935,7 +1935,7 @@ import org.xml.sax.SAXException;
|
|||||||
//VectorBreak vb = (VectorBreak) aCB;
|
//VectorBreak vb = (VectorBreak) aCB;
|
||||||
Object[] lens = {5, 10, 15, 20, 25, 30};
|
Object[] lens = {5, 10, 15, 20, 25, 30};
|
||||||
Object lenObj = JOptionPane.showInputDialog((JFrame) SwingUtilities.getWindowAncestor(this),
|
Object lenObj = JOptionPane.showInputDialog((JFrame) SwingUtilities.getWindowAncestor(this),
|
||||||
"Select wind speed:", "Selection", JOptionPane.PLAIN_MESSAGE, null, lens, (int) wa.length);
|
"Select wind speed:", (int) wa.length);
|
||||||
if (lenObj != null) {
|
if (lenObj != null) {
|
||||||
wa.length = Integer.parseInt(lenObj.toString());
|
wa.length = Integer.parseInt(lenObj.toString());
|
||||||
//this.paintGraphics();
|
//this.paintGraphics();
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<MeteoInfo File="config.xml" Type="configurefile">
|
<MeteoInfo File="config.xml" Type="configurefile">
|
||||||
<Path OpenPath="D:\Temp\Map\乡镇街道"/>
|
<Path OpenPath="D:\Temp\grads"/>
|
||||||
<Font>
|
<Font>
|
||||||
<TextFont FontName="YaHei Consolas Hybrid" FontSize="14"/>
|
<TextFont FontName="YaHei Consolas Hybrid" FontSize="14"/>
|
||||||
<LegendFont FontName="宋体" FontSize="12"/>
|
<LegendFont FontName="宋体" FontSize="12"/>
|
||||||
@ -8,5 +8,5 @@
|
|||||||
<ScriptLanguage Language="Jython"/>
|
<ScriptLanguage Language="Jython"/>
|
||||||
<LookFeel LafDecorated="true" Name="FlatLightLaf"/>
|
<LookFeel LafDecorated="true" Name="FlatLightLaf"/>
|
||||||
<Figure DoubleBuffering="true"/>
|
<Figure DoubleBuffering="true"/>
|
||||||
<Startup MainFormLocation="-7,0" MainFormSize="1319,737" ShowMeteoDataDlg="false"/>
|
<Startup MainFormLocation="-7,0" MainFormSize="1319,737" ShowMeteoDataDlg="true"/>
|
||||||
</MeteoInfo>
|
</MeteoInfo>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user