Advertisement
Guest User

Untitled

a guest
May 20th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. this.topRow = new Panel(new BorderLayout());
  2. this.topRow.setBackground(background);
  3. this.topRow.add(this.header, BorderLayout.PAGE_START);
  4. this.topRow.add(this.playerChoice, BorderLayout.LINE_START);
  5. this.topRow.add(this.algorithmChoice, BorderLayout.CENTER);
  6. this.topRow.add(this.heuristicChoice, BorderLayout.AFTER_LINE_ENDS);
  7. this.topRow.add(this.levelChoice, BorderLayout.PAGE_END);
  8.  
  9. this.timeMeasure = new TextArea("Time: ", 2,5, TextArea.SCROLLBARS_NONE);
  10. this.timeMeasure.setEditable(false);
  11.  
  12. this.stepsMeasure = new TextArea("Steps: ",2,5, TextArea.SCROLLBARS_NONE);
  13. this.stepsMeasure.setEditable(false);
  14.  
  15.  
  16. this.infoArea = new TextArea("",5,30, TextArea.SCROLLBARS_BOTH);
  17. this.infoArea.setEditable(false);
  18. this.infoArea.setForeground(Color.BLUE);
  19.  
  20. super.setLayout(new GridLayout(4,2));
  21. super.add(this.topRow);
  22. super.add(this.timeMeasure,BorderLayout.AFTER_LAST_LINE);
  23. super.add(this.stepsMeasure,BorderLayout.AFTER_LAST_LINE);
  24. super.add(this.infoArea);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement