Skip to main content

Image on HGraphicButton failed to display in TMT

No replies
ashokabk
Offline
Joined: 2008-08-25

Hi,
I am able to display image on HGraphicButton in WinDVD and the same code failed to display the image in Arcsoft's TMT.
Could you plz tell me what is the reason for this and how can i make it to work in TMT
The following is the code.

scene = HSceneFactory.getInstance().getDefaultHScene();
scene.setBackgroundMode(1);
scene.setBackground(Color.LIGHT_GRAY);
HGraphicButton htb=new HGraphicButton();
htb.setBounds(200,200,700,700);
htb.setGraphicContent(Toolkit.getDefaultToolkit().getImage("D:/imgs/img1.jpg"),128);
scene.add(htb);
htb.setVisible(true);
scene.repaint();

Plz suggest some solution

Message was edited by: ashokabk