|
|
|
@ -75,6 +75,10 @@ public class TaskMenu extends javax.swing.JPanel {
|
|
|
|
|
return percentSlider.getValue();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean deleteMe() {
|
|
|
|
|
return delCheck.isSelected();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the name of the task.
|
|
|
|
|
* @return Task name.
|
|
|
|
@ -108,6 +112,7 @@ public class TaskMenu extends javax.swing.JPanel {
|
|
|
|
|
descBox = new javax.swing.JTextArea();
|
|
|
|
|
jLabel3 = new javax.swing.JLabel();
|
|
|
|
|
percentSlider = new javax.swing.JSlider();
|
|
|
|
|
delCheck = new javax.swing.JCheckBox();
|
|
|
|
|
|
|
|
|
|
jLabel1.setText("Task Name:");
|
|
|
|
|
|
|
|
|
@ -126,40 +131,49 @@ public class TaskMenu extends javax.swing.JPanel {
|
|
|
|
|
percentSlider.setSnapToTicks(true);
|
|
|
|
|
percentSlider.setValue(0);
|
|
|
|
|
|
|
|
|
|
delCheck.setText("Delete this task");
|
|
|
|
|
|
|
|
|
|
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
|
|
|
|
|
this.setLayout(layout);
|
|
|
|
|
layout.setHorizontalGroup(
|
|
|
|
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
|
|
|
.addComponent(nameBox)
|
|
|
|
|
.addComponent(jScrollPane1)
|
|
|
|
|
.addComponent(percentSlider, javax.swing.GroupLayout.DEFAULT_SIZE, 375, Short.MAX_VALUE)
|
|
|
|
|
.addGroup(layout.createSequentialGroup()
|
|
|
|
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
|
|
|
.addComponent(jLabel2)
|
|
|
|
|
.addComponent(jLabel3)
|
|
|
|
|
.addComponent(jLabel1))
|
|
|
|
|
.addComponent(jLabel1)
|
|
|
|
|
.addComponent(jLabel3))
|
|
|
|
|
.addGap(0, 0, Short.MAX_VALUE))
|
|
|
|
|
.addComponent(percentSlider, javax.swing.GroupLayout.DEFAULT_SIZE, 375, Short.MAX_VALUE)
|
|
|
|
|
.addGroup(layout.createSequentialGroup()
|
|
|
|
|
.addContainerGap()
|
|
|
|
|
.addComponent(delCheck)
|
|
|
|
|
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
|
|
|
|
);
|
|
|
|
|
layout.setVerticalGroup(
|
|
|
|
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
|
|
|
.addGroup(layout.createSequentialGroup()
|
|
|
|
|
.addComponent(jLabel3)
|
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
|
|
.addComponent(percentSlider, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
|
|
|
.addComponent(jLabel1)
|
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
|
|
.addComponent(nameBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
|
|
.addComponent(jLabel2)
|
|
|
|
|
.addGap(7, 7, 7)
|
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
|
|
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
|
|
|
.addGap(0, 0, 0))
|
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
|
|
.addComponent(jLabel3)
|
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
|
|
.addComponent(percentSlider, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
|
|
|
.addGap(18, 18, 18)
|
|
|
|
|
.addComponent(delCheck)
|
|
|
|
|
.addContainerGap(16, Short.MAX_VALUE))
|
|
|
|
|
);
|
|
|
|
|
}// </editor-fold>//GEN-END:initComponents
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
|
|
|
|
private javax.swing.JCheckBox delCheck;
|
|
|
|
|
private javax.swing.JTextArea descBox;
|
|
|
|
|
private javax.swing.JLabel jLabel1;
|
|
|
|
|
private javax.swing.JLabel jLabel2;
|
|
|
|
|