Re: Having trouble with zapf dingbats font
Hi, Since many of us on this list are Java programmers and not Linux experts, it would be helpful to have a few more details. Perhaps these things are obvious to Linux gurus. I went to the www.gimp.org site and downloaded the URW fonts. The only installation instructions seem to relate to updating the "XF86Config" file. Since RedHat 6.0 has changed to a font server approach and my XF86Config file does not have any font pahts, I assume that this part of the instructions should not apply to my setup. So I followed the RedHat instructions and updated the "/etc/X11/fs/config" file using the chkfontpath approach. Although it should not be necessary, I did restart X and even rebooted. This still did not get rid of my errors. The fonts director under "usr/local/jdk1.2/jre" was already world-readable. So there was no reason to change it. So I did some further investigation and noticed that the names in the "font.properties" file did not seem to match the names in the "fonts.dir" file for the URW fonts. I do not see how it will find the fonts if the names do not match and I did not see any fonts.alias file. But again, I do not really understand all the details of the font system under Linux. In any event, I would really like to get rid of these errors because I am teaching a Java 2 class at a local college and would like to demonstrate what a great development platform Linux plus Emacs+JDE makes. Granted everything still works fine, but they are a nuisance. So any help would be greatly appreciated. If you are interested in the notes and sample source code for my class, go to "http://www.ajug.org/JavaCert". Cynthia Jeness Vartan Piroumian wrote: > Hello everyone, > > OK, here's what worked for me. > > I first installed the URW fonts from the www.gimp.org website, as > instructed on the blackdown.org bug report page. > > This eliminated the "zapf dingbats not found" errors. > > Then, all text disappeared from all Swing components. A helpful > gentleman, (I apologize I forgot who it was now!!) suggested that I > change the protection on the fonts directory. > > So, I did > > $ chmod a+r /usr/local/java/jre/lib/fonts > > And now everything works fine. > > I didn't post this to the group earlier so as not to take up > bandwidth. It seemed that I was the only one having this problem -- I > didn't see other such questions until recently! > > Regards, > > Vartan > > Kontorotsui writes: > > > > On 24-Sep-99 Cynthia Jeness wrote: > > > Did you ever get this problem solved? The JDK still cannot find my "zapf > > > dingbats" fonteither. I have tried the > > > following: > > > > [List of attempts] > > > > I've done exatly the same, with SuSE 6.2, and I chose to give up and keep the > > annoying error message, it doesn't harm. > > > > I wish I could remove this error message, but it's not the effort. The last > > attempt did work, the error message disappeared... but also the text > > disappeared from my applications :( > > > > --- > > Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at > > University of Pisa - Italy - E-mail: [EMAIL PROTECTED] > > My home page: http://www.cli.di.unipi.it/~controzz/intro.html > > > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: can't run applets in netscape
Hi,Yohans Mendoza, Here are something which you should check (maybe): 1.If you have made it active--"Enable Java" in the menu: Edit->Preferences->Advanced->Enable Java 2.If you browser support the special version of Java (1.0 ? 1.1 ? 1.2 ? 1.2.2) You can check it just click the menu in your browser: Help->About Plug-ins 3.If you are going to download the correct version of Java Plug-in software from: http://java.sun.com or http://www.netscape.com In my PC, Windows95+Communicator4.61+Java Plug-in Control Panel, run Applet v1.2.2 correctly. [EMAIL PROTECTED] 1999.09.25 Yohans Mendoza wrote: > why I can't run applets in my browser? > I have RH60 and Netscape 4.5.1 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
[OT] Good Java docs
Excuse for the OT, but after using extensively the Sun's documentation (tutorial and API guide) I'm still unsatisfied. Could someone please send me (not on the list, my address is [EMAIL PROTECTED]) a link where I can find a more complete Java guide? Thank you. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
swing and syntax question
Hi,
I was wondering if anyone knows what this following
code means?
public Rectangle getBounds() {
return JFrame.this.getBounds();
}
>From what I can understand it is making an infinate series
of recursive calls. I find this kind of code all over Sun's
source.
Another question:
With Swing classes, at what point is native code actually
called to do drwing . If you could tell me, I am wondering what classes it
happens in and what is specifically happening. In 1.1 it would be
the peer classes.
Thanks in advance,
Berry Crawford
Senior Consultant, Bondi Software
Phone - 336 - 373 - 8200 x302
Email my computer - [EMAIL PROTECTED]
Email my pager - [EMAIL PROTECTED]
Company Web Site - www.bondisoftware.com
SilverStream Journal and Upcoming Book - www.s3journal.com
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: swing and syntax question
berry wrote:
> Hi,
>
> I was wondering if anyone knows what this following
> code means?
>
> public Rectangle getBounds() {
> return JFrame.this.getBounds();
> }
That sort of code is used in inner classes.
One of the swing programmers seems to make a habit of it.
If you have a lot of inner classes I guess its a bit cleaner to qualify this
when you use it. Otherwise it can be confusing if there are several inner
classes
in a Class.
>
>
> >From what I can understand it is making an infinate series
> of recursive calls. I find this kind of code all over Sun's
> source.
Umm no its just a 1.1 qualified this the class qualifier is optional out side
of inner classes.
>
>
> Another question:
>
> With Swing classes, at what point is native code actually
> called to do drwing . If you could tell me, I am wondering what classes it
> happens in and what is specifically happening. In 1.1 it would be
> the peer classes.
I know that one : )
swing uses
Canvas
Frame
Dialog
Window
The native peers are called there.
The native graphics object can draw all over the window.
It's fairly trivial to get a lightweight component to
draw outside of its bounds or over its sub components.
At least is the current JVM. I consider it something of
a security hole.
Mike
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: swing and syntax question
On Sat, 25 Sep 1999, berry wrote:
> Hi,
>
> I was wondering if anyone knows what this following
> code means?
>
> public Rectangle getBounds() {
> return JFrame.this.getBounds();
> }
Hmm... I would say it's getting the bounds of the frame containing the
rectangle. It doesn't look like a recursive call, cause JFrame.this would
not be a reference to Rectangle, but rather a reference to a JFrame.
Might be a more efficient way of getting the parent frame than doing
SwingUtilities.findParent.
> With Swing classes, at what point is native code actually
> called to do drwing . If you could tell me, I am wondering what classes it
> happens in and what is specifically happening. In 1.1 it would be
> the peer classes.
It's in the pluggable look and feel that is registered for the component.
If you want an example, I have written a PLAF modification for tabbed pane
that renders the tabs with verticaly text instead of horizontally. The
algorithm for calculating tabs izes and doing the drawing isn't perfect,
as it was done just ot figure out how to modify swing components ... if
you would like it let me know and I'll post it.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
