equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * |
2 * |
3 * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved. |
4 * |
4 * |
5 * Redistribution and use in source and binary forms, with or without |
5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions |
6 * modification, are permitted provided that the following conditions |
7 * are met: |
7 * are met: |
8 * |
8 * |
139 g2.fill(area); |
139 g2.fill(area); |
140 g2.setColor(RED); |
140 g2.setColor(RED); |
141 g2.draw(area); |
141 g2.draw(area); |
142 } |
142 } |
143 |
143 |
144 public static void main(String argv[]) { |
144 public static void main(String[] argv) { |
145 createDemoFrame(new Areas()); |
145 createDemoFrame(new Areas()); |
146 } |
146 } |
147 |
147 |
148 |
148 |
149 static final class DemoControls extends CustomControls implements |
149 static final class DemoControls extends CustomControls implements |