Hos Computerworld it-jobbank er vi stolte af at fortsætte det gode partnerskab med folkene bag IT-DAY – efter vores mening Danmarks bedste karrieremesse for unge og erfarne it-kandidater.
speaker: det er faktisk ikke ligegyldigt, for er det javascript skulle du hoppe over i den gruppe og spørge istedet for at gøre det her i JAVA gruppen.
Men skal det være sådanne en avanceret color selector skal du lave det i JAVA.
så laver man det bare selv. *GGG* Det er nemt at sige for en der kan java, for lang tid tror du at du ville være om at lave en color picker som jeg vil have den? *bare et spørgsmål*
class Palette extends Frame { private Color colour; // indicates current color selected -> used by whiteboard
/* * This class creates the artist palette of color that one * can use on the whiteboard. */ public Palette() { /* * This sets the default color to black and * makes the background color of the frame * to be yellow */
/* * This section declares and creates a button * for each of the colors we are going to * implement */
Button blue_button = new Button(\"Blue\"); Button magenta_button = new Button(\"Magenta\"); Button red_button = new Button(\"Red\"); Button green_button = new Button(\"Green\"); Button black_button = new Button(\"Black\"); Button gray_button = new Button(\"Gray\"); Button yellow_button = new Button(\"Yellow\"); Button orange_button = new Button(\"Orange\"); Button cyan_button = new Button(\"Cyan\"); Button pink_button = new Button(\"Pink\");
/* * use grid layout to force buttons into 2 column * this makes them appear vertical */
setLayout( new GridLayout( 5, 2 ) );
/* this section is to set the buttons to their * respective colors so the button displayed * is the color that the button says it is */
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.