Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding Graphics Context in Diff Browser in remote client

 
suman paul
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
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;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
g2.setColor(Color.black);

..///
g2.draw(curve);
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.
regards
kingshuk

 
Tim Holloway
Saloon Keeper
Posts: 18365
56
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic