Results 1 to 6 of 6
Thread: overiew and detail in java
- 08-18-2009, 09:46 AM #1
Member
- Join Date
- Oct 2008
- Posts
- 21
- Rep Power
- 0
overiew and detail in java
Hello,
I am drawing some vertical and horizontal lines in a jpanel. I want to have two jpanels one is an overview and the other one is a detailed view of the graph.
I want to Place the overview of the graphic next to a zoomed "detail view." As the user drags a viewport around the overview, I need to show that part of the graphic in the detail view.
Could someone help me soon. Its very urgent for my course work.
Thanks in advance
Kumar
-
Help you how? What specific question do you have with this? What have you done so far? Do you have code for us to examine and critique?
Best of luck
- 08-18-2009, 07:02 PM #3
Member
- Join Date
- Oct 2008
- Posts
- 21
- Rep Power
- 0
Thank you for your reply. I have just drawn the lines in the panel. I don't have any idea on how to proceed with the code. I have drawn lines using g2d.drawline(x1,y1,x2,y2). Is it possible to draw the same line in both the panels(Overview and Detail view) one with a small screen which has the entire graph and the other one is a zoomed one.
Thanks
-
It would seem to me that you would need a single non-GUI model of the data and then have two JPanel's display the data using the same model, one showing the over-all data, the other using a small subset of the data.
One way to possibly speed up the process is to use a graphics library such as jfreechart or something similar.
- 08-20-2009, 08:37 AM #5
Member
- Join Date
- Oct 2008
- Posts
- 21
- Rep Power
- 0
Thankyou for your reply. Could you explain it with a sample code.
Regards
Kumar
-
That might be asking quite a bit more work than a volunteer should have to do. It ususally works better if you create the code and then ask questions about it. Best of luck.
Similar Threads
-
How to pass mysql string through a url parameter to a detail page query
By kwesiaryee in forum New To JavaReplies: 1Last Post: 08-22-2008, 06:28 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks