Final int x 6 final int y 3 final WidgetView wigView new
Final int x = 6; final int y = 3; final WidgetView wigView = new WidgetView(); JComponent compX = new JLabel (\"Value of x: \"); compX middot setBounds(50, 50, 150, 20); JComponent compXVal = new JLabel (Integer middot toString (x)); compXVal middot setBound (200, 50, 150, 20);
Solution
try to add the latest library for this.
Sometimes eclipse does that to you. First of all, try to exit out from eclipse and restart it, it should fix your issue. If it doesn\'t try Project->clean project. If it still doesn\'t work, make sure you haven\'t messed up with R.java file. If you are not sure, simply create new project and copy, Paste your code.
