Re: swings
Sub: 'swings'
Note that the GUI toolkit you are referring to is 'Swing'
(starts with a capital letter - no 's' on the end).
Further 'swings' is a poor title.
I suggest 'background image for Swing panel'
might have been better at getting the attention
of those that might be able to help.
vijji wrote:
....
I am working on swings as a desktop application.
How to implement jpanel on background images of a JFrame?
....
I am not able to get the panel if i got the image and
i am not able to get image if I got the panel.
I am not able to compile that mess of code you posted*
(was it written by you, or your chicken?), however I can
offer a single peice of generic advice.
public class PaneExample extends JFrame {
For Swing components, ..
public void paint(Graphics g) {
...override paintComponent(), rather than paint().
* Problems where compilable code is supplied, are
more likely to get solved.
The code you posted was missing brackets, and
would not compile because of that - further, it was
inconsistently indented, so it was hard to tell what
you meant.
After reformatting the code and inserting the missing
brackets - I got to discover that it referred to a class
that is not in the J2SE - and not included in your post.
...That's it - I'm outta' here!
I suggest in future to post an SSCCE* instead
of these code snippets
* <http://www.physci.org/codes/sscce/>
Andrew T.