Results 1 to 3 of 3
- 04-18-2011, 04:37 AM #1
Member
- Join Date
- Apr 2011
- Posts
- 2
- Rep Power
- 0
Java Applet: drawing window bigger than screen
I want to draw a large grid which contains 1000 vertical lines and 200 horizontal line and the gap between then is 50. The coordinate of corner points are (0,0) (0,50000) (10000,0) and (10000,50000). So this will be larger than the window screen. How can I draw this using scrollbars so that I can use the coordinates properly.
-
Draw it in a BufferedImage of the proper size, then add this to an ImageIcon and the icon to a JLabel. Add the JLabel to a JScrollPane and you're all set. You may run out of memory and may need to increase the memory available to Java for this to work.
- 04-18-2011, 04:48 AM #3
Member
- Join Date
- Apr 2011
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
Full Screen window over toolbar
By vmcg in forum AWT / SwingReplies: 3Last Post: 07-10-2010, 03:43 AM -
! sign on my JAVA applet window
By Emaany in forum Java AppletsReplies: 1Last Post: 09-30-2009, 07:48 PM -
drawing window
By BlitzA in forum New To JavaReplies: 1Last Post: 01-15-2009, 12:55 PM -
screen scraper for java applet website
By sheriek in forum Java AppletsReplies: 3Last Post: 09-25-2008, 09:48 AM -
drawing window
By BlitzA in forum Advanced JavaReplies: 0Last Post: 12-30-2007, 05:39 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks