[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug swing/26958] New: paintComponent(Graphics) should allow to cast the
From: |
audriusa at bluewin dot ch |
Subject: |
[Bug swing/26958] New: paintComponent(Graphics) should allow to cast the parameter into Graphics2D |
Date: |
31 Mar 2006 07:02:36 -0000 |
In http://java.sun.com/docs/books/tutorial/uiswing/14painting/practice.html it
is written that implementing the custom component painting it is possible ("you
CAN") to cast the passed parameter into Graphics2D, for getting access to the
Graphics2D features. It is even not written that this is unwanted or
deprecated.
The lack of this feature partially breaks the popular JFreeChart library and,
as a result, may break a number of applications that use this library (like
jMemorize). Probably for the beginning it would be good to pass the Graphics2D
even with some methods not yet working as desired, because the class cast
exception prevents the applications from being started.
--
Summary: paintComponent(Graphics) should allow to cast the
parameter into Graphics2D
Product: classpath
Version: 0.90
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: swing
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: audriusa at bluewin dot ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26958
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug swing/26958] New: paintComponent(Graphics) should allow to cast the parameter into Graphics2D,
audriusa at bluewin dot ch <=