Re: Newbie Problem with Java Label
> The problem I'm having is that it won't display an image.
The program has no problem. It does display an image from
images/mapImage1.gif file.
I suspect you are using an IDE, and, the current directory is different
for him and for you.
Beginner never should use IDE. It only brings variety of troubles to
your knee.
Put your source file and images directory under YOUR current directory
and do:
javac SwingLabelDemo.java
java SwingLabelDemo
or,
java -cp . SwingLabelDemo
.
Relevant Pages
- Re: Excel Calculation issues
... Hmmmm. ... VB Format() does the right thing with 40179.00440002. ... I suspect the latter because of the similarities that I see in examples that have different results. ... a number like 30000.098 will display ok. ... (microsoft.public.excel) - Re: does FormClose have some special magic?
... you wind up with code in the main form to delay initialization until after it's had a chance to display and process the password dialog. ... We see problems here all the time with people trying to cancel the initialization of their program from within the OnCreate event. ... Don't worry about indentation of CreateForm lines since the IDE may rewrite thsoe lines when you change your project's form settings. ... Avoid conditional-compilation directives within IDE-managed portions of the DPR, which include the "uses" clause and the main begin-end block. ... (comp.lang.pascal.delphi.misc) - Re: dialog form size different in IDE or exe
... displays exactly the same size that it has been sized to display in the ... But when compiled and run as an EXE the form stretches precisely the ... Unless it's a bug with the video driver on the laptop, ... It looks fine when run in the IDE. ... (microsoft.public.vb.general.discussion) - Re: ACPI Regression in -CURRENT?
... >> your patch, it applied cleanly, and moreover the fix now works to the ... The display back-light stays on. ... I have noticed that when I suspend in XP, there is a delay of about 3 ... I think that this delay needs to be available as I suspect that at ... (freebsd-current) - Re: App with forms as tabs
... convert an application I already coded over to this 'Visual Studio IDE' ... This app has 50 or so already coded forms - I really don't ... Isn't there any way to display an already-created form in a tab? ... (microsoft.public.dotnet.languages.vb) |
|