File DemoColorComponent.java
{"Image DocumentName": "File DemoColorComponent.java", "Image ImageDescription": "01: import java.awt.Color; 02: import java.awt.Graphics; 03: import java.awt.Graphics2D; 04: import java.awt.Rectangle; 05: import javax.swing.JComponent; 06: 07: /   08: Una componente che include un quadrato colorato. 09:  / 10: class DemoColorComponent extends JComponent. 11: { private Color fillColor; // colore di riempimento. 12: /   13: Costruisce la componente. c il colore di riempimento del quadrato. 15:  / 16: public DemoColorComponent(Color c) Continua\u2026", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}