Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Using JFrame on Mac OS X?
Using JFrame on Mac OS X? [message #794671] Thu, 09 February 2012 15:02 Go to next message
Matt Shank is currently offline Matt ShankFriend
Messages: 3
Registered: February 2012
Junior Member
I can't use JFrame on my Eclipse on Mac OS X. I found a download of JFrame online, but I can't figure out how to install it. An help would be appreciated.
Re: Using JFrame on Mac OS X? [message #794738 is a reply to message #794671] Thu, 09 February 2012 16:48 Go to previous messageGo to next message
Nick Clevery is currently offline Nick CleveryFriend
Messages: 50
Registered: January 2012
Member
The JFrame class exists in the javax.swing package, you don't need to download it from anywhere or install it.
Re: Using JFrame on Mac OS X? [message #794745 is a reply to message #794738] Thu, 09 February 2012 16:55 Go to previous message
Matt Shank is currently offline Matt ShankFriend
Messages: 3
Registered: February 2012
Junior Member
Whoops. Forgot to include that info. I import java.swing.*;

import javax.swing.*;

public class JFrame {

	public static void main(String[] args) {

		JFrame window = new JFrame();
		window.setTitle("A Window");	

	}
}


The setTitle() method comes up with an error that says it's undefined for the type JFrame. Must I be doing something wrong?
Previous Topic:Troubleshooting "broken" workspace
Next Topic:Using Eclipse Refactoring API in a wide term
Goto Forum:
  


Current Time: Fri Apr 26 19:42:05 GMT 2024

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

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

Back to the top