Using opacity correctly
authorJaroslav Tulach <jtulach@netbeans.org>
Mon, 25 May 2009 08:46:19 +0200
changeset 24fdd6c390fa5f
parent 23 d4d8dc9d052b
child 25 f27d4c4cd464
Using opacity correctly
visidor/src/visidor/Viewer.java
     1.1 --- a/visidor/src/visidor/Viewer.java	Sun May 24 16:27:38 2009 +0200
     1.2 +++ b/visidor/src/visidor/Viewer.java	Mon May 25 08:46:19 2009 +0200
     1.3 @@ -87,8 +87,8 @@
     1.4          horizontalWall.setPreferredBounds(new Rectangle(550, 300, 90, 10));
     1.5          horizontalWall.setBackground(Color.BLACK);
     1.6          horizontalWall.getActions().addAction(ActionFactory.createMoveAction(null, new Viewer(true)));
     1.7 -        horizontalWall.setForeground(Color.BLACK);
     1.8          horizontalWall.setBorder(BorderFactory.createLineBorder());
     1.9 +        horizontalWall.setOpaque(true);
    1.10          layerBoard.addChild(horizontalWall);
    1.11  
    1.12          ImageWidget verticalWall = new ImageWidget(scene);
    1.13 @@ -96,6 +96,7 @@
    1.14          verticalWall.setBackground(Color.BLACK);
    1.15          verticalWall.getActions().addAction(ActionFactory.createMoveAction(null, new Viewer(false)));
    1.16          verticalWall.setBorder(BorderFactory.createLineBorder());
    1.17 +        verticalWall.setOpaque(true);
    1.18          layerBoard.addChild(verticalWall);
    1.19  
    1.20          for (Fence f : b.getFences()) {
    1.21 @@ -104,6 +105,7 @@
    1.22              fenceWall.setPreferredBounds(r);
    1.23              fenceWall.setBackground(Color.BLACK);
    1.24              fenceWall.setBorder(BorderFactory.createLineBorder());
    1.25 +            fenceWall.setOpaque(true);
    1.26              layerBoard.addChild(fenceWall);
    1.27          }
    1.28