Nananan nananan nanana (by Ania Kłos)

This commit is contained in:
Tomasz Piechucki 2011-05-04 08:29:37 +00:00
parent 78bea6b3de
commit 1e8867ec9b
3 changed files with 25 additions and 10 deletions

View file

@ -69,7 +69,7 @@
<EmptySpace min="-2" pref="18" max="-2" attributes="0"/> <EmptySpace min="-2" pref="18" max="-2" attributes="0"/>
<Component id="jPanel5" min="-2" max="-2" attributes="0"/> <Component id="jPanel5" min="-2" max="-2" attributes="0"/>
</Group> </Group>
<Component id="jSeparator1" alignment="1" pref="541" max="32767" attributes="0"/> <Component id="jSeparator1" alignment="1" pref="550" max="32767" attributes="0"/>
<Group type="102" alignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" max="-2" attributes="0"/> <EmptySpace min="-2" max="-2" attributes="0"/>
<Component id="jLabel1" min="-2" max="-2" attributes="0"/> <Component id="jLabel1" min="-2" max="-2" attributes="0"/>
@ -94,9 +94,9 @@
<Group type="102" alignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0">
<Component id="label1" min="-2" max="-2" attributes="0"/> <Component id="label1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
<Component id="list1" pref="435" max="32767" attributes="0"/> <Component id="list1" pref="429" max="32767" attributes="0"/>
</Group> </Group>
<Component id="scrollPane1" alignment="1" pref="465" max="32767" attributes="0"/> <Component id="scrollPane1" alignment="1" pref="459" max="32767" attributes="0"/>
</Group> </Group>
<EmptySpace max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="1" attributes="0"> <Group type="103" groupAlignment="1" attributes="0">
@ -107,7 +107,7 @@
</Group> </Group>
</Group> </Group>
</Group> </Group>
<Component id="jSeparator2" alignment="0" pref="498" max="32767" attributes="1"/> <Component id="jSeparator2" alignment="0" pref="492" max="32767" attributes="1"/>
</Group> </Group>
</Group> </Group>
</Group> </Group>
@ -119,6 +119,8 @@
<SubComponents> <SubComponents>
<Component class="javax.swing.JLabel" name="jLabel1"> <Component class="javax.swing.JLabel" name="jLabel1">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" resourceKey="jLabel1.font"/>
<Property name="foreground" type="java.awt.Color" resourceKey="jLabel1.foreground"/>
<Property name="text" type="java.lang.String" resourceKey="jLabel1.text"/> <Property name="text" type="java.lang.String" resourceKey="jLabel1.text"/>
<Property name="name" type="java.lang.String" value="jLabel1" noResource="true"/> <Property name="name" type="java.lang.String" value="jLabel1" noResource="true"/>
</Properties> </Properties>

View file

@ -121,9 +121,16 @@ public class WindaView extends FrameView{
} }
private void addPassangerToList(int start, int stop){ private void addPassangerToList(int start, int stop){
if(this.jCheckBox1.isSelected())
for(int i = 0;i<Integer.parseInt(jSpinner5.getValue().toString());i++){
this.passangers++; this.passangers++;
this.list1.add(this.passangers+". "+start+" => "+stop); this.list1.add(this.passangers+". "+start+" => "+stop);
} }
else{
this.passangers++;
this.list1.add(this.passangers+". "+start+" => "+stop);
}
}
private void removeLastPassangerFromList(){ private void removeLastPassangerFromList(){
this.list1.remove(this.list1.getItemCount()-1); this.list1.remove(this.list1.getItemCount()-1);
@ -256,6 +263,8 @@ public class WindaView extends FrameView{
mainPanel.setName("mainPanel"); // NOI18N mainPanel.setName("mainPanel"); // NOI18N
org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(winda.gui.WindaApp.class).getContext().getResourceMap(WindaView.class); org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(winda.gui.WindaApp.class).getContext().getResourceMap(WindaView.class);
jLabel1.setFont(resourceMap.getFont("jLabel1.font")); // NOI18N
jLabel1.setForeground(resourceMap.getColor("jLabel1.foreground")); // NOI18N
jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
jLabel1.setName("jLabel1"); // NOI18N jLabel1.setName("jLabel1"); // NOI18N
@ -737,7 +746,7 @@ public class WindaView extends FrameView{
.addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18) .addGap(18, 18, 18)
.addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 541, Short.MAX_VALUE) .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 550, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, mainPanelLayout.createSequentialGroup() .addGroup(javax.swing.GroupLayout.Alignment.LEADING, mainPanelLayout.createSequentialGroup()
.addContainerGap() .addContainerGap()
.addComponent(jLabel1) .addComponent(jLabel1)
@ -760,15 +769,15 @@ public class WindaView extends FrameView{
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, mainPanelLayout.createSequentialGroup() .addGroup(javax.swing.GroupLayout.Alignment.LEADING, mainPanelLayout.createSequentialGroup()
.addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(list1, javax.swing.GroupLayout.DEFAULT_SIZE, 435, Short.MAX_VALUE)) .addComponent(list1, javax.swing.GroupLayout.DEFAULT_SIZE, 429, Short.MAX_VALUE))
.addComponent(scrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 465, Short.MAX_VALUE)) .addComponent(scrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 459, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jSlider1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jSlider1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton4) .addComponent(jButton4)
.addComponent(jButton3)))) .addComponent(jButton3))))
.addComponent(jSeparator2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)))) .addComponent(jSeparator2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 492, Short.MAX_VALUE))))
.addContainerGap()) .addContainerGap())
); );

View file

@ -60,3 +60,7 @@ jTextField2.text=
jCheckBox2.text=dwie windy jCheckBox2.text=dwie windy
jLabel15.text=czas / pietro (ms): jLabel15.text=czas / pietro (ms):
label1.text=Pasa\u017cerowie label1.text=Pasa\u017cerowie
#NOI18N
jLabel1.font=Tahoma-Bold-24
#NOI18N
jLabel1.foreground=255, 102, 255