• Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding Graphics Context in Diff Browser in remote client

suman paul
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am facing a problem.I am using JApplet & JPanel (Swing) for dwawing a hyperbolic tree.The JPanel isToolTipManager's share instance.And i am drawing the nodes and poistioning with calulation just like file and folder navigation fn() with
Database access thro' HttpTunneling.
For drawing curves between node rectangles i am using Graphics2D context.So in paint in the m/c where server is running i am getting Graphics2D object and could draw smootly.
But when it goes to remote m/c IE takes the Graphics Base class and not passing Graphics2D context to paint instead IE is taking its own
com.ie....Subclass implementation of Grpahics
So its not drawing Graphic2D curves.QuardCurve.
Could anyone tell me how to work around
with Graphics2D context i internet from remote
client w/c can undestand Graphics2D context.

QuadCurve2D curve = new QuadCurve2D.Double();
if (g instanceof Graphics2D) {
Graphics2D g2 = (Graphics2D)g;

So i need the Graphics2D object in remote IE.Pls
give me the solution w/c is feasible for any common person.Not like downloading plugins and all.

Tim Holloway
Posts: 18472
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure the Java 2D classes are old enough to be part of the least-common-denominator Java applet environment.
Some possibilities are:
1. Buy a third-party 2D class library that provides what's missing from the antique JVMs.
2. Write your own classes to provide what's missing from the antique JVMs.
3. Implement the applet in terms of the Java Plug-In. I know you don't want to do that though.
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!