Advertisement
Guest User

Untitled

a guest
May 24th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. private void setCanvas(CargoManifest cargo) {
  2. if (canvas != null) {
  3. pnlDisplay.remove(canvas);
  4. }
  5. if (cargo == null) {
  6. disableButtons();
  7. } else {
  8. canvas = new CargoTextArea(cargo);
  9. //implementation here
  10. canvas.setBackground(Color.DARK_GRAY);
  11. pnlDisplay.add(canvas);
  12. this.add(pnlDisplay, BorderLayout.NORTH);
  13. enableButtons();
  14. }
  15. redraw();
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement