Alice Corman

Greenhorn
+ Follow
since Jun 21, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Alice Corman

Does anyone have any thoughts on this?
14 years ago
I am using a simple LineBreakMeasurer example to wrap text, like the first example here.
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/font/LineBreakMeasurer.html

I noticed some lines, with certain fonts, return a negative getX() value. Is that supposed to happen or is it be a misbehaving font? From what I have read so far, I didn't think that value should be negative. So I am wondering if that is normal behavior.

14 years ago
I am using a simple LineBreakMeasurer example to wrap text, like the first example here.
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/font/LineBreakMeasurer.html

I noticed some lines, with certain fonts, return a negative getX() value. Is that supposed to happen or is it be a misbehaving font? From what I have read so far, I didn't think that value should be negative. So I am wondering if that is normal behavior.

14 years ago
First, I hope this is in the correct area.

I'm trying to interpret a post I found googling (last response).
http://forums.java.net/jive/thread.jspa?messageID=128164

I've worked through most of it. In summary I've passed an image through ColorQuantizer and ErrorDiffusion and now have a 'palette color image'. The part I'm stuck on is this step:

"Determine to what value in the palette color image a zero-valued pixel in the warped image was mapped.".

I'm not sure how to go about this. Sorry if this seems obvious, but I'm struggling with it (and lack of sleep). Can anyone give me a few hints?

TIA
15 years ago
Tony,

Thanks for taking the time to respond. Sorry for the cryptic question. I didn't have much information to go on but after reviewing the code I discovered out those classes were used to handle date and number formatting for a given locale. It took some researching but I figured out the classes I should be using are java.text.* plus java.util.Locale and TimeZone.

Problem solved. Phew ;-)
15 years ago
I've been reviewing some older apps that use sun.text.*, sun.text.resources.* According to the FAQ's sun.* packages should not be used. So what packages/classes should be used instead? I'm thinking java.text.* but its difficult to tell as there is deliberately no documentation on the sun.* packages.

Any help would be appreciated
15 years ago
Literal string values must be enclosed in single quotes. Otherwise, the database may assume the string is a column name. Try

Edit: added code tags


[ August 25, 2007: Message edited by: Alice Corman ]
Some IDE's provide "wizards" to help interationalize entire applications. The results are not always 100% accurate. But it is probably faster than doing it manually. You might check the documentation for your IDE or search for an IDE that includes this kind of tool.
16 years ago
Not sure if this is the right place for this question..

Can anyone recommend some good links detailing how java.net.Authenticator works with IIS? I've searched around and have only found the API and very general tutorials or articles like..
High-Level Network Programming
http://java.sun.com/features/2002/11/hilevel_network.html

and many un-answered questions..
http://forum.java.sun.com/thread.jspa?threadID=764533

Any intermediate level articles on java.net.Authenticator?
16 years ago
Correction: Default port should be 3306
[ September 10, 2006: Message edited by: Alice Corman ]
When you say the mySQL driver, do you mean the MySQL Connector/J jar? Did you first verify that you connect to your database (named: "test") using the mySQL client and the username/password: test/test?


Try supplying the default port number (3306) in the url:



Don't quotes around the variable names here:



Using quotes will pass in the word "url" instead of the url variable ("jdbc:mysql://localhost:3306/test"). Use:


[ September 10, 2006: Message edited by: Alice Corman ]
http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html

"By default, the list of user-choosable filters includes the Accept All filter, which lets the user see all non-hidden files. This example uses the following code to disable the Accept All filter:"

16 years ago
Assuming the images are really included in the jar file, did you try using getResource?



See Loading Images Using getResource
http://java.sun.com/docs/books/tutorial/uiswing/misc/icon.html
16 years ago
Thank you so much! A working example was more than I expected. I know it needs testing but most importantly, the example really helped me understand what I was doing wrong with BufferedImage and Graphics2D. Thanks again.
16 years ago