Simple GUI Image Problem

From: Bihal (wmioch_at_hotmail.com)
Date: 01/27/04


Date: Tue, 27 Jan 2004 06:27:15 -0600

Computing student here, haven't used java for a while. Anyways, could someone put some example code as to how to put an image from a file onto a JPanel or JFrame. I just can't remember.



Relevant Pages

  • Re: Manipulating a Third-Party Java Application from another Java Application
    ... Then you can probably locate the JFrame from within ... Based on the configuration file I found on the wrapper, ... own code as you suggest (my Java experience is limited, ... since Swing doesn't use the Win32 API for much. ...
    (comp.lang.java.programmer)
  • Re: OutOfMemoryError with socket communication
    ... If you want a special JFrame-based reusable component it is a good idea to subclass JFrame, and implement your special component in accordance with the JavaBeans specification. ... Always prefer composition over inheritance. ... Don't specialise your code. ... I've been reading "Killer Games Programming (in Java)". ...
    (comp.lang.java.programmer)
  • Re: creating a JFrame via JNI
    ... Am I having a Mac problem? ... jobject jframe; ... Passing to Java. ... Note that the exception was thrown in native code, ...
    (comp.lang.java.programmer)
  • creating a JFrame via JNI
    ... I get an unhandled native exception when trying to create a JFrame from ... The error message is unhelpful and untraceable even on Google. ... Passing to Java. ... An extra oddity is that line 8 in GUIApp.java is indeed the JFrame ...
    (comp.lang.java.programmer)
  • Re: Open new JPanel (JFrame, ...) by clicking JButton
    ... i.e a JFrame. ... you do is that you build both your frames. ... the window) you simply do searchFrame.setVisible; ... This caused me some problem when I was learning java many years ago, ...
    (comp.lang.java.gui)