This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Compatibility would be difficult given that there is no published spec,
also the interface is no doubt quite complex. The benefits would be
questionable - it would let us run our peers on Sun's JDK for debugging
purposes, but I don't think that advantage is worth the effort that
would be involved.
I disagree, although undocumented by Sun, Sun's Peer interface is reasonably well structured and intuitive to implement (if somewhat painstaking to understand without docs). And as Dalibor just found, there *is* published documentation for AWT peers, see my footnotes [1.1] and [1.2].
As GNU Classpath already implements big chunks according to this spec there wouldn't be a great deal more 'effort' involved. Any effort required is to keep GNU-isms segregated as much as possible outside of the java* packages (yes, I know that's not feasible for java.awt.Font yet).
I disagree, although undocumented by Sun, Sun's Peer interface is reasonably well structured and intuitive to implement
One problem we've run into has to do with List. With the Gtk peers, and the replace operation implemented as "remove + add", we get flickering. So Fernando's first solution -- entirely reasonable IMO -- was to add a new "replace" method to ListPeer.
What would you suggest for a case like this?
One idea is to somehow suppress Gtk redisplay while some java-side lock is held. We're pretty reluctant to do this, though.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |