This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Mac OS and the fly likes Error: import java.awt.*; is never used? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Mac OS
Reply Bookmark "Error: import java.awt.*; is never used?" Watch "Error: import java.awt.*; is never used?" New topic
Author

Error: import java.awt.*; is never used?

Matt Wilcko
Ranch Hand

Joined: Sep 23, 2003
Posts: 65
Hi,
I am using eclipse 2 on my new ibook g4(im new to Mac). I keep getting an error next to my java.awt.*; line. It says "java.awt.* is never used". It seems fine with my "import java.awt.Toolkit;" line. What is going on? Also, how do you view hidden files on a Mac?
Thanks!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56191
    
  13

Your first question seems like more of an Eclipse question than a Mac one, so you might want to mosey on over to the IDEs Forum for that one.
By hidden files, I assume you mean those starting with the "." character? From the command line, just like any other *nix, -a on the ls command will reveal the hidden files. I do not know of any way to make the Finder expose them. Anyone else heard of such a setting?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Craig Sutherland
Greenhorn

Joined: Nov 25, 2003
Posts: 21
Matt,
Here are a few ways to reveal hidden files.
From the Finder enter shift-command-G which opens the Go to Folder input box. Type in the path to the invisible folder and it opens in a Finder window with all files and folders contained revealed.
Download TinkerTool- a wonderful utility written by a person with deep roots in OPENSTEP and NEXTSTEP. I do not like add-on software but this one is bullet proof and uses no resources. I've used it from the OS X Beta days. It scripts various hidden preferences as the one I list below.
From the Terminal, enter the command 'ls -a" which will list all files and folders in your current unix working directory.
From the Terminal, enter 'defaults write com.apple.finder AppleShowAllFiles ON'. Caps are significant. This is the command Tinkertool uses. To hide invisibles again, repeat the command but with OFF (d'oh). There are other hidden prefs- such as double scroll arrows at the top and bottom of windows. Tinkertool gives access to a few.
From OmniWeb, enter a right slash / in the url window at the top of the page, press return. This will list your file tree from the root.
HTH
Craig


When all at once a mighty herd of red eyed cows he saw...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56191
    
  13

Download TinkerTool

Very cool.
Pauline McNamara
Sheriff

Joined: Jan 19, 2001
Posts: 4011
If you're using JEdit too, you can see and open hidden files: Open > Commands > Show Hidden Files
[ January 30, 2004: Message edited by: Pauline McNamara ]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Error: import java.awt.*; is never used?
 
Similar Threads
GUI problems with extending JFrame
Properly setting cursor
Error !!
java program to add digital signature into a pdf file
help~!