Petr Vasicek

Greenhorn
+ Follow
since Jan 04, 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 Petr Vasicek

The only thing that compiler knows it's that "ob" is implementation of Jkl. And since there can be implementations of Jkl that will also implement Pkl the compilation succeeds.

The compilation succeeds even in the case your declaration is "InterfaceTest ob". That's because InterfaceTest is not declared final, therefore there can be a class that extends it and that implements Pkl. Therefore there's a chance that an object referenced by InterfaceTest (extending it) will implement Pkl and compiler will not complain.
Thanks Darryl for your reply, it made me try the example from java2s and when I was adding setStroke command I realized that the constructor of BasicStroke can have more parameters, played with it a bit and resolved the issue:
Basically anything apart from BasicStroke.JOIN_MITER as the third parameter will do.
12 years ago
I've followed a tutorial on creating a text with border here: http://java.sun.com/developer/onlineTraining/Media/2DText/style.html, using java.awt.Graphics2D.

It works, but only for thin outlines. If i make the outline thicker, the sharp points in the text (in letters like A, M or W) get overly "stretched". Please see the attached picture, it's hard to describe this effect.

As a workaround, I tried to use transformations and the fill() command to "draw a rectangle" with the text in a for-cycle in black and then fill() the text in white in the middle of it. This approach works great, but is really very slow and I would need to resize the text dynamically in my program

This is the code I'm using with the original method I found in the tutorial:



This is a method in my Text class, so there are variables like color, borderRatio which are available. It seems to me that this is a bug in text outlining which happens with very sharp points in the text. Is there any way around it, some settings that can resolve this issue? Or any workaround (except the one I mentioned)?

Many thanks!
12 years ago
Ok, so I got another response from Oracle:

"We apologize for the confusion caused.
To earn your Oracle Certified Professional, Java SE 6 Programmer you have to pass the Exam Java Standard Edition 6 Programmer Certified Professional Exam (1Z0-851)
The Hands-on course requirement is not applicable for this certification track. Visit our website for more information."


So it seems taking OCPJP in October and later should be fine without the need for the training.
Are you totally sure about it? I'm also going for the OCPJP (1Z0-851) and have been trying to get answer from Oracle on the need of attending a training and the deadline for taking the exam. First I called their helpline, the guy there totally useless, didn't know anything about the change of rules and tried to convince me that I need prior certification to take this one. So the flow of information was more the other way round. Then I'd sent an email to Oracle and they replied that I need to finish essay and assignment before 1st October, so I guess they had confused my certification with the Master one.

After this experience I'm not so sure it will be useful to contact Oracle again, so I better ask here. Is someone 100% sure the 1st October rule does NOT apply to OCPJP and I can schedule my exam for October without worries? Or should I rather take in on 30th September to be on the safe side?