fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone extends JFrame
  9. {
  10. Ideone(){
  11. setTitle("졸리다..");
  12. setSize(300,400);
  13. Container c=getContentPane();
  14. c.setBackground(color.BLUE);
  15. c.add(new JButton("점심"));
  16. c.add(new JButton("저녁"));
  17. c.add(new JButton("야식"));
  18.  
  19. setVisible(true);
  20. }
  21. public static void main (String[] args) throws java.lang.Exception
  22. {
  23. new Ideone();
  24. // your code goes here
  25. }
  26. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:8: error: cannot find symbol
class Ideone extends JFrame
                     ^
  symbol: class JFrame
Main.java:11: error: cannot find symbol
		setTitle("???..");
		^
  symbol:   method setTitle(String)
  location: class Ideone
Main.java:12: error: cannot find symbol
		setSize(300,400);
		^
  symbol:   method setSize(int,int)
  location: class Ideone
Main.java:13: error: cannot find symbol
		Container c=getContentPane();
		^
  symbol:   class Container
  location: class Ideone
Main.java:13: error: cannot find symbol
		Container c=getContentPane();
		            ^
  symbol:   method getContentPane()
  location: class Ideone
Main.java:14: error: cannot find symbol
		c.setBackground(color.BLUE);
		                ^
  symbol:   variable color
  location: class Ideone
Main.java:15: error: cannot find symbol
		c.add(new JButton("??"));
		          ^
  symbol:   class JButton
  location: class Ideone
Main.java:16: error: cannot find symbol
		c.add(new JButton("??"));
		          ^
  symbol:   class JButton
  location: class Ideone
Main.java:17: error: cannot find symbol
		c.add(new JButton("??"));
		          ^
  symbol:   class JButton
  location: class Ideone
Main.java:19: error: cannot find symbol
		setVisible(true);
		^
  symbol:   method setVisible(boolean)
  location: class Ideone
10 errors
stdout
Standard output is empty