Thread View: borland.public.jbuilder.java.swing
2 messages
2 total messages
Started by joehahn
Thu, 15 Jul 2004 19:05
jlabel canvas in applet?
Author: joehahn
Date: Thu, 15 Jul 2004 19:05
Date: Thu, 15 Jul 2004 19:05
5 lines
1129 bytes
1129 bytes
Is there a way to get/set pixels for components? I want to get the pixels for some jlabels and set the pixels onto another jlabel or jpanel , save this as a stream and send it to my server app to create a image. I am using xylayout to move the jlabels to position on a panel.
Re: jlabel canvas in applet?
Author: Tor Iver Wilhelmsen (TeamB)
Date: Thu, 15 Jul 2004 21:32
Date: Thu, 15 Jul 2004 21:32
18 lines
1439 bytes
1439 bytes
On Thu, 15 Jul 2004 15:05:08 -0400, joehahn <josephhahn@nospamhahnovations.com> wrote: > Is there a way to get/set pixels for components? > I want to get the pixels for some jlabels and set the pixels onto another > jlabel or jpanel , save this as a stream and send it to my server app to > create a image. Use a BufferedImage's getGraphics() in combination with JLabel.paintComponent(). > I am using xylayout to move the jlabels to position on a panel. Bad form, in many ways - try using a null layout instead. -- Tor Iver Wilhelmsen TeamB
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads