- 4
Posted a new cod try catch
java
9 Réponses
+ 10
Type in English, please😄
+ 8
يا محمد اكتب بالإنجليزية لازم تاخذ دروس الجافا كامل
+ 4
Translation ↓
I want to explain how the program works
+ 4
@swati in Q/A Discussions encountering Questions with different languages is common so I would like to suggest you to install G-Board... It has built in Translation feature (Google Translate) + Google search ! 😃
+ 3
Translation ↓
How to make a Java program for Android
Action programs
+ 1
Thank you my friends. I wanted to know how the program works
+ 1
But I knew that the program is broken, but after downloading the environment
+ 1
yes
0
I want the output of this code. import java.awt.Grapics;
import java.awt.color;
import java.swing.jpanel;
public void color jpanel extends jpanel
{
public void paintcomponent (Grapics g){
}
super.paintcomponent (g);
this.setbackground (color.white);
g.setcolor( new color(255,0,0));
g.fillrect(15,25,100,20);
g.drawstring("current RGB: " + g.getcolor(),130,40);
g.setcolor(new color (0.50f,0.75f,0.0f));
g.fillrect (15,50,100,20);
g.drawstring ( "current RGB: " + g.getcolor(),130,65);
g.setcolor(color blue);
g.fillrect (15,75,100,20);
g.drawstring ( "current RGB: " + g.getcolor(),130,90);
color color = color.magenta;
g.setcolor(color);
g.fillrect (15,100,100,20);
g.drawstring ( " RGB values: " + g.getred() + " , "+
color.getGreen () + " , " + color.getblue (),130,115);
}
}