Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (623)
Games in Android Showcase (176)
games submitted by our members
Games in WIP (676)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  JFrame Issue  (Read 1884 times)
0 Members and 1 Guest are viewing this topic.
Offline gfadmin

Senior Newbie

« Posted 2010-01-18 18:38:01 »

Im going through a video tutorial on making a simple 2D Game in Java. Im at the point where he want to JFrame but when i go to import it its not there in the list. is something extra i have to download. IM using eclipse as my editor.
Offline Nate

« JGO Bitwise Duke »

Medals: 165
Projects: 4
Exp: 14 years

Esoteric Software

« Reply #1 - Posted 2010-01-18 20:05:23 »

ctr+shift+o should find it.

Offline gfadmin

Senior Newbie

« Reply #2 - Posted 2010-01-18 20:28:11 »

there is an error on the import line. it says Access Restriction. Im running windows vista if that has anything to do with it
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Eli Delventhal

JGO Kernel

Medals: 42
Projects: 11
Exp: 10 years

Game Engineer

« Reply #3 - Posted 2010-01-18 20:32:27 »

import javax.swing.JFrame;

should be fine if it's at the top of your file. I don't know about Vista, but I wouldn't be surprised if it did some crazy access restriction.

See my work:
OTC Software
Offline gfadmin

Senior Newbie

« Reply #4 - Posted 2010-01-18 21:36:49 »

I fixed it kind of. i just changed the rules to ignore those errors.
Offline Mr. Gol

Senior Devvie

Medals: 1

« Reply #5 - Posted 2010-01-18 21:38:04 »

What was the error message you are now ignoring?
Offline gfadmin

Senior Newbie

« Reply #6 - Posted 2010-01-21 00:45:17 »

The error i had to ignore is Forbidden Reference. Its must be a problem with Vista but im not sure
Offline xinaesthetic

Senior Devvie

Medals: 1

« Reply #7 - Posted 2010-01-21 12:52:15 »

When in doubt, blame Vista  Roll Eyes.

I'm running Vista and I certainly don't see any such problems, fwiw... in fact I'd be surprised if Vista had anything to do with it.  I checked and my Eclipse is set up to give errors on forbidden references.

What JRE are you targetting?
Offline JL235

JGO Coder

Medals: 10

« Reply #8 - Posted 2010-01-21 13:28:00 »

I second that I find it very doubtful that Vista is to blame.

Offline gouessej
« Reply #9 - Posted 2010-01-21 15:57:28 »

The error i had to ignore is Forbidden Reference. Its must be a problem with Vista but im not sure
I had the same problem with Mandriva Linux Sad I don't know why... It happened when I switched to Eclipse 3.5.

Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

BurntPizza (22 views)
2015-10-08 03:11:46

BurntPizza (15 views)
2015-10-08 00:30:40

BurntPizza (17 views)
2015-10-07 17:15:53

BurntPizza (32 views)
2015-10-07 02:11:23

KaiHH (37 views)
2015-10-06 20:22:20

KaiHH (16 views)
2015-10-06 19:41:59

BurntPizza (32 views)
2015-10-06 19:04:48

basil_ (46 views)
2015-09-30 17:04:40

shadowstryker (24 views)
2015-09-29 15:55:06

TheSpaceHedgehog (31 views)
2015-09-29 01:58:48
Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!