set default size
This commit is contained in:
parent
82669a1a89
commit
eb2753f23d
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: MspCLI.java,v 1.1 2008/10/13 14:50:50 nifi Exp $
|
* $Id: MspCLI.java,v 1.2 2009/03/21 14:40:22 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja.mspmote.plugins;
|
package se.sics.cooja.mspmote.plugins;
|
||||||
|
@ -97,7 +97,9 @@ public class MspCLI extends VisPlugin {
|
||||||
if (command != null) {
|
if (command != null) {
|
||||||
try {
|
try {
|
||||||
int previous = historyCount - 1;
|
int previous = historyCount - 1;
|
||||||
if (previous < 0) previous += history.length;
|
if (previous < 0) {
|
||||||
|
previous += history.length;
|
||||||
|
}
|
||||||
if (!command.equals(history[previous])) {
|
if (!command.equals(history[previous])) {
|
||||||
history[historyCount] = command;
|
history[historyCount] = command;
|
||||||
historyCount = (historyCount + 1) % history.length;
|
historyCount = (historyCount + 1) % history.length;
|
||||||
|
@ -177,6 +179,7 @@ public class MspCLI extends VisPlugin {
|
||||||
}
|
}
|
||||||
// Tries to select this plugin
|
// Tries to select this plugin
|
||||||
try {
|
try {
|
||||||
|
setSize(400, 200);
|
||||||
setSelected(true);
|
setSelected(true);
|
||||||
} catch (java.beans.PropertyVetoException e) {
|
} catch (java.beans.PropertyVetoException e) {
|
||||||
// Could not select
|
// Could not select
|
||||||
|
|
Loading…
Reference in a new issue