Skip to main content

BDJ-Image not getting displayed

4 replies [Last post]
sudha007
Offline
Joined: 2010-08-25
Points: 0

Hi,
I have made a DIscImage and kept the image in the 0000.jar under JAR folder.
When I am trying to display the image by loading it using getClass().getResource()
its taking from /MNT/JAR/0000001/0000/image.jpg and nothing is getting displayed
Mediatracker is not giving any error or exceptions.

its wokring fine in TMT.
Any idea ?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
dekz
Offline
Joined: 2010-07-04
Points: 0

Tried catching just Exception and Throwable? See if that brings up anything

sudha007
Offline
Joined: 2010-08-25
Points: 0

I tried waitForID with try catch block and isAnyError()...
no error or exception came

sudha007
Offline
Joined: 2010-08-25
Points: 0

Image is getting loaded.The statusAll returns 8
I put that image as
private final HIcon hiconWelcome;
this.hiconWelcome = new HIcon(image);
this.hiconWelcome.setSize(this.SIZE_THOU, this.SIZE_EIGHUN);
this.hiconWelcome.setLocation(50, 50);
this.hiconWelcome.setVisible(true);
this.guiContainer.add(this.hiconWelcome);
this.scene.setBackgroundMode(HVisible.BACKGROUND_FILL);
this.scene.setBackground(color);
this.scene.repaint();
WriteLog.logString("aFTR repaint");
this.guiContainer.setSize(SCREEN_WIDTH, SCREEN_HEIGHT);
this.scene.add(this.guiContainer, BorderLayout.CENTER);
this.guiContainer.repaint();
WriteLog.logString("afetr repaint 2");
this.scene.validate();
this.guiContainer.setVisible(true);
this.scene.setVisible(true);

Still its not painting the image in the screen

sudha007
Offline
Joined: 2010-08-25
Points: 0

Hi,
Is it due to any problem in the bdjo file ?
because the discimage works fine in TMT