Skip to main content

show a picture in a form

2 replies [Last post]
simo163
Offline
Joined: 2010-02-07
Points: 0

hello every body, i'm new in the forum..
i wanna show a picture on the scren's phone..

i had created a image by
try{
img = Image.createImage("/alerta.jpg");
}catch(Exception e){
System.out.println(e.getMessage());
}

AND i hav added it to my form by
try{
form.append(img);
}catch(Exception e){}

i have saved the picture in the same directory, that means in the working package.
i don't have any idea to fix this problem because i'm looking every thing is good..
thank you for help me.
Simo

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sfitzjava
Offline
Joined: 2003-06-15
Points: 0

Are you using the WTK to build your app?
Try putting the image into the
/res directory.

=Shawn

loose555
Offline
Joined: 2010-08-16
Points: 0

Plato believed that the Forms were interrelated, and arranged in a hierarchy. The highest Form is the Form of the Good, which is the ultimate principle. Plato developed his Theory of Forms to the point where he divided existence into two realms. There is the world of sense experience (the ‘empirical’ world), where nothing ever stays the same but is always in the process of change. Experience of it gives rise to opinions. There is also a world which is outside space and time, which is not perceived through the senses, and in which everything is permanent and perfect or Ideal - the realm of the Forms
=============
[URL=http://www.guardianinsurance.com.au/Funeral-Insurance.aspx] Funeral Insurance[/URL]|[URL=http://www.guardianinsurance.com.au/Funeral-Insurance.aspx] Funeral Cover[/URL]