Go Back   Java Programming Forums > Java Standard Edition Programming Help > AWT / Java Swing > Java Applets


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 23-07-2008, 01:59 AM
Junior Member
 

Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
hanizainol is on a distinguished road
Smile Hi. ItemListener problem with destroying midlet.

hello.

i have an applet which run a midlet. but when i select another background image . the midlet run but not displayed in the applet. Below is the code to call the background image.

Java Code
Image image1 = null;
				try {
					image1 = Toolkit.getDefaultToolkit().getImage(new URL("http://"+server+skins.getSkinFilePath()));
				} catch (MalformedURLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}


				skinPanel.removeAll();
				//System.out.println("image :: "+ image1);

				skinPanel.setMinimumSize(skinPanelSize);
				//System.out.println("image :: "+ image1);
				skinPanel.setImage(image1, skins.getSkinWidth(), skins.getSkinHeight());	
				skinPanel.repaint();
				skinPanel.revalidate();



Reply With Quote Share this thread on Facebook
Sponsored Links
Java Training from DevelopIntelligence
  #2 (permalink)  
Old 07-12-2009, 08:37 PM
Junior Member
 

Join Date: Dec 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
gensrythi is on a distinguished road
Default Re: Hi. ItemListener problem with destroying midlet.

I accept with Java Code:
skinPanel.removeAll();
//System.out.println("image :: "+ image1);

skinPanel.setMinimumSize(skinPanelSize);
//System.out.println("image :: "+ image1);
skinPanel.setImage(image1, skins.getSkinWidth(), skins.getSkinHeight());
skinPanel.repaint();
skinPanel.revalidate();
Reply With Quote
  #3 (permalink)  
Old 10-12-2009, 01:49 AM
Junior Member
 

Join Date: Dec 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
cancunphoto12 is on a distinguished road
Default Re: Hi. ItemListener problem with destroying midlet.

Quote:
Originally Posted by gensrythi View Post
I accept with Java Code:
skinPanel.removeAll();
//System.out.println("image :: "+ image1);

skinPanel.setMinimumSize(skinPanelSize);
//System.out.println("image :: "+ image1);
skinPanel.setImage(image1, skins.getSkinWidth(), skins.getSkinHeight());
skinPanel.repaint();
skinPanel.revalidate();
I am Carl.This is my first visit to site.I love forum discussion.It is one of my hobbies.I can share my thoughts to others and can get plenty of information from others.I just love it.Other then that I like to surf different and new sites.I like the way I am getting plenty of new information from the site.I am very pleased to be part of the site and I am eager to do my first post. Thanks.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




100 most searched terms
Search Cloud
2 dimensional arraylist java 2d arraylist java actionlistener actionlistener in java addactionlistener addactionlistener java convert double to integer java double format java double to integer in java double to integer java drag en drop programmeren java eclipse shortcut keys exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread "main" java.lang.nullpointerexception exception in thread "main" java.lang.outofmemoryerror: java heap space format double in java format double java get mouse position java java 2d arraylist java actionlistener java double format java double formatting java double to int java double to integer java format double java forum java forums java get mouse position java list to map java mouse position java programming forum java programming forums java programming practice problems java send keystrokes to another application java two dimensional arraylist java.io.ioexception: premature eof java.lang.classformaterror: truncated class file java.lang.outofmemoryerror: java heap space java.util.arraylist jbutton action jbutton actionlistener jtextarea font jtextfield font size jxl.read.biff.biffexception: unable to recognize ole stream programming mutators and generics smack api two dimensional arraylist two dimensional arraylist java unable to sendviapost to url what is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?

All times are GMT. The time now is 02:04 AM.
Powered by vBulletin® Copyright ©2000-2009, Jelsoft Enterprises Ltd.