Re: Set Image in JPanel using NetBeans



Den Wed, 02 Mar 2005 11:28:47 +0000. skrev John McGrath:

> On 3/2/2005 at 4:55:58 AM, Payal Patel via JavaKB.com wrote:
>
>> i m having problem in setting image in JPanel using NetBeans.
>> pls tell me if anyone has any idea about it.
>
> How about posting some code?

That will probably be quite difficult. The problem seems to be the missing
image-component i netbeans (at least in 4.0), so how to generate code?

I too would like to know how netbeans can be used to disply images
(preferably BufferedImage), since I am trying to display images.

Kindest regards

Carsten
.



Relevant Pages

  • Netbeans
    ... I've mounted a filesystem. ... I put all my .java files in ... My images are located in a subdirectory called "images". ... But NetBeans doesn't seem to find these files. ...
    (comp.lang.java)
  • Re: Set Image in JPanel using NetBeans
    ... The original question was about a JPanel, but you seem to be talking some ... If there are components that come bundled with NetBeans, ... since I am trying to display images. ...
    (comp.lang.java.gui)
  • Re: Newbie JAR problem
    ... Image scene = new Image; ... Did not know there was a new version of NetBeans. ... I have created an applet that animates a few images. ... I think you don't load the images from classpath!?! ...
    (comp.lang.java.programmer)
  • Re: Please help the GridLayout problem
    ... I am tring to add several small JPanel to a big JPanel (using ... but I can't get any images displayed. ... The biggest is that the layout manager is setting the size of you JPanel to 0x0. ... While the cognoscenti will wail about not using layout managers, the sad truth is that when you use JPanels with most layout managers you need to specify a preferred size for them or they won't display as you have found out. ...
    (comp.lang.java.gui)
  • Re: Please help the GridLayout problem
    ... of facility group that can hold different level layout. ... of the main form, and display the group two (contains 6 images) at (0, ... For the image group one, I want to display these 4 images in 2 rows ... size of JPanel and size of JPanel before painting. ...
    (comp.lang.java.gui)