If you like the video, share it with your friends on these social sites:

 

Title: Java Programming Tutorial - 71 - JList Program

Added: Oct 5, 2009

Author: thenewboston

Duration: 6:58

Description:
Finally we run this baby

Related Videos:

Videos related to 'Java Programming Tutorial - 71 - JList Program'

Channel: People

Tags: install  download  jdk  se  ee  java  development  kit  new  beginner  tutorials  eclipse  variables  if  while  loop  object  classes 



install  download  jdk  se  ee  java  development  kit  new  beginner  tutorials  eclipse  variables  if  while  loop  object  classes 

Youtube Comments: 76

princekhurana14 Says:

Jan 22, 2012 - getContentPane().setBackground(colors[list.getSelectedIndex()]);this is the line which u " cant see" put this in ;)

TheMathMystic Says:

Feb 16, 2012 - thanks Greg :D

tackorduck Says:

Feb 27, 2012 - list.addListSelectionListener(... is throwing an error.Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous tree type: javax.swing.JList.addListSelectionListener at JavaTutorial.Gui.init(Gui.java:29) at JavaTutorial.Tutorial.main(Tutorial.java:18)Have checked the code and the imports and all looks good. Help?

tackorduck Says:

Feb 27, 2012 - Never mind earlier post. Forgot to import javax.swing.event.*.

rymantas59 Says:

Mar 3, 2012 - He is drop out.

glampkoo Says:

Mar 4, 2012 - Everybody who's getting error 18th line just delete it! Trust me, it will not ruin the program!

Frogfish999 Says:

Mar 10, 2012 - red white and blue represents america, but we have to be politically correct so we add black in.

q2828q Says:

Mar 16, 2012 - I don't know how you do it, but you're so convincing .. if you tell me the moon is a square .. I'd totally believe it ! ..

COD5252 Says:

Mar 24, 2012 - did he taught us how to make a program in just one class already?

idiotrun1997 Says:

Mar 25, 2012 - Why do I keep getting an erro at list.addSelectionListener? I added all the imports, including javax.swing.event.*;

zehawk1 Says:

Mar 26, 2012 - Hey nice video as always! If you have the time, please check out my indie game im currently working on in Java, im working hard on it and need the support i can get! Thanks for your time!

david158ification Says:

Mar 27, 2012 - ctrl+shift+o to get all the imports necessary to run a program in eclipse: my favorite hotkey of all time.

MagicianDP Says:

Mar 29, 2012 - oh thanks, how awesome is that?

invalidsm Says:

Mar 31, 2012 - I experienced the same thing too.u must write exactly 'valueChanged' in the method's name

CloseYourAss Says:

Mar 31, 2012 - Cmd+Shift+O on mac :3

cellfreezer Says:

Apr 14, 2012 - Did you typed it correctly - list.addListSelectionListener() ?

CyanGekko Says:

Apr 16, 2012 - It's nice and easy that you can just call in Color.BLACK, etc to make PURE colors (like, in rgb, (0, 0, 0), (255, 255, 255), (255, 0, 0), (0, 255, 0)), but how would you make the background something like (225, 66, 72)?

miguelaerosmith29 Says:

Apr 29, 2012 - really cool !!!!

Mewigi Says:

May 2, 2012 - If you onto the java.awt.Color Javadocs page, you'll see that there is a variety of constructors to use. One of them is "Color(int r, int g, int b)". So you can just use "new Color(225, 66, 72)". Keep in mind that Color is just a class, and the colors like Color.BLACK are just Color objects that you can access.

MrTimoteo1596 Says:

May 9, 2012 - you have to make a color object Color color1=new Color(225,66,72);then when you want to set the background of something you just do .setBackground(color1);

ExemptFrom Says:

May 9, 2012 - or .setBackgound(new Color(225,66,72)); if just using the colour once.

Guztav1337 Says:

May 28, 2012 - i found a bug if you hold ctrl(control) and click on the same color 2 times or more you get a error

Guztav1337 Says:

May 28, 2012 - good to know!

Shopping | prank calls | Wholesale products | english movies | prank calls | proxy | links | prank call

Topfacebookvideos funny arabic videos

Privacy Policy