Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void setCanvas(CargoManifest cargo) {
- if (canvas != null) {
- pnlDisplay.remove(canvas);
- }
- if (cargo == null) {
- disableButtons();
- } else {
- canvas = new CargoTextArea(cargo);
- //implementation here
- canvas.setBackground(Color.DARK_GRAY);
- pnlDisplay.add(canvas);
- this.add(pnlDisplay, BorderLayout.NORTH);
- enableButtons();
- }
- redraw();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement