Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to fix this?(Browser problem)
How to fix this? [message #1318874] Sun, 27 April 2014 23:20 Go to next message
Daniel Cornejo is currently offline Daniel CornejoFriend
Messages: 1
Registered: April 2014
Junior Member
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method frameHandler() is undefined for the type Browser

at Browser.main(

Here's the code

package Daniel

import java.awt.Container;
import java.awt.Font;
import java.awt.Insets;
import java.awt.TextField;

import javax.swing.JEditorPane;
import javax.swing.JFrame;
import javax.swing.JScrollPane;

public class Browser extends JFrame{

private TextField field = new TextField();
private JEditorPane display = new JEditorPane();
private JScrollPane panee = new JScrollPane(display);

public static void main(String agrs[]){

Browser file = new Browser();

public void framehandler() {

setSize(1280, 880);


public void addComponentsToFrame(Container pane){

Insets insets = getInsets();


Font font = new Font("Menlo", Font.PLAIN, 12);


field.setBounds(8 - insets.left, 30 -, 1268, 20);


Is there any problem with this that I can't run it?
Re: How to fix this? [message #1319148 is a reply to message #1318874] Mon, 28 April 2014 03:02 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4046
Registered: July 2009
Senior Member

This is more of a general Java programming question than one specific to Eclipse. You'd find a wider audience at sites like and In this situation, since Java is a case-sensitive language, you're trying to call #frameHandler() while you actually declared #framehandler().

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: How to fix this? [message #1319902 is a reply to message #1319148] Mon, 28 April 2014 13:06 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3071
Registered: July 2009
Senior Member
Also, you obviously didn't pay attention to the Problems or Markers views in Eclipse, which indicate when you have compilation errors or warnings.
Previous Topic:hudson build wiht parameters
Next Topic:Specifying the JVM
Goto Forum:

Current Time: Tue May 18 08:19:56 GMT 2021

Powered by FUDForum. Page generated in 0.03133 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top