wants more options in choosing the name and type of image
- From: bH <bherbst65@xxxxxxxxxxx>
- Date: Fri, 29 Jun 2007 06:08:20 -0700
Hi All,
My present java programming practice is to write a program that
specifies a folderlocation/fileName.jpg within the program, such as
"image/cak.jpg" inside the program. Now I use ...
public ShoImage() {
this.setLayout(new BorderLayout());
imagePanel = new JPanel() {
protected void paintComponent(Graphics g) {
super.paintComponent(g);
ImageIcon myImage = new ImageIcon("image/cak.jpg");
g.drawImage(myImage.getImage(), 0, 0, Color.white,
(java.awt.image.ImageObserver) imagePanel);
}
};
this.add(imagePanel, BorderLayout.CENTER);
}
........
I want the user to have more options to choose the name and type of
image .
TIA
bH
.
- Follow-Ups:
- Re: wants more options in choosing the name and type of image
- From: Roedy Green
- Re: wants more options in choosing the name and type of image
- Prev by Date: test imap and pop3
- Next by Date: Re: test imap and pop3
- Previous by thread: test imap and pop3
- Next by thread: Re: wants more options in choosing the name and type of image
- Index(es):