21. April 2007 um 19:56 #1 Ich zeichne über ein Graphics-Objekt mit drawOval eine Ellipse. Wie kann ich die Linienstärke ändern?
22. April 2007 um 10:08 #2 Problem: How do I paint thick lines? patterns?The JavaTM 2D API provides extensive support for implementing line widths and styles, as well as patterns for use in filling and stroking shapes. See the 2D Graphics trail for more information on using the Java 2D API. (quelle)Das heisst du aenderstpublic void paint(Graphics gfx){...}in public void paint(Graphics2D gfx){...}und zeichnest dann mit den 2D bibliotheken:http://java.sun.com/docs/books/tut…okeandfill.html
Maximilian Rupp 27. Dezember 2024 um 12:05 Hat das Thema aus dem Forum Programmieren nach Entwicklung verschoben.