Symbol « Development « Java Swing Q&A





1. How do I get this to run. I keep on getting a cannot find symbol    stackoverflow.com

I saw this code on this stackoverflow question at create java console inside the panel Whenever I compile the code though I get an error saying it can't find the ...

3. Cannot resolve symbol....    coderanch.com

Hi, Im having a problem with compiling some code. Could anyone please tell me what the problem is: import java.net.*; import java.io.*; import javax.swing.*; import javax.swing.event.*; import java.awt.*; import java.awt.event.*; import java.util.*; public class EditorPaneFrame extends JFrame { public EditorPaneFrame() { setTitle("Simple Browser"); setSize(600, 400); addWindowListener(new WindowAdaptor() {public void windowClosing(WindowEvent e) {System.exit(0); } }); //set up text field and go button ...

4. cannot resolve symbol    coderanch.com

I see what you are saying. It used to be an array, but I removed the [] and the items that were in the array when I changed it to read from the sequential file. I tried to leave it as an array, but was getting errors that way and by process of elimination and removal I have gotten to where ...

6. Cannot find symbol, char cannot be dereferenced    coderanch.com

char z324 = e.getKeyChar(); boolean question = Character.isDigit(z324); This is solution for Error 1. isDigit() is a static method of Character wrapper class. A char is a primitive and not an object on which you can invoke methods. I am not sure what you are trying to accomplish using Commit(). Thanks Abhishek

8. Cannot find symbol    java-forums.org

import javax.swing.*; import javax.swing.JOptionPane; import java.awt.*; import java.awt.event.*; public class ClickImage extends JFrame implements ActionListener{ final static int FrameWidth = 350; final static int FrameHeight = 200; public ClickImage(){ JFrame FoodLabel = new JFrame("Favourite Food"); setSize(FrameWidth,FrameWidth); setVisible(true); JLabel heading = new JLabel("Please Select Your Favourite Food"); JLabel greeting = new JLabel(""); heading.setFont(new Font("Arial",Font.BOLD, 16)); JTextField answer = new JTextField(10); JButton btn1 ...