aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Graphics Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Graphics Problem" Watch "Graphics Problem" New topic
Author

Graphics Problem

Sunil Kumar Gupta
Ranch Hand

Joined: Aug 26, 2005
Posts: 824
Hi all

I am developing a solution to a small problem .

The problem is , i have to proof the (a+b)^3 using geometrical representation.

Since (a+b)^3 is a cuboid. i searched for java api for created cuboid.

But i did not find . what i did i created a cuboid using a combination of graphics drawLine() and drawRect() method.

But i have to change the shape of my cuboid depending on the values of a and b input by the user.

Since the cuboid is created using drawLine method. It's very difficult for me to change the shape of my cuboid by changing each line of the cuboid to map to a different x,y

Any idea??

Thanks


Lack of will power has caused more failure than lack of intelligence or ability.
My Blog | Red5 Resources | Technology Update | Daily Technology Tips
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Sunil Kumar Gupta
Ranch Hand

Joined: Aug 26, 2005
Posts: 824
Thanks Craig for your Reply.

It really helped me in my problem


Thanks again
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Graphics Problem
 
Similar Threads
I am not getting why abstract classes and interfaces are there
Draw rectangle by dragging mouse
Adding a custom component to a layout?
MouseEvent (mousePressed and mouseReleased) only works from left to right?
algorithm to compute the common space of two cuboid?