Displaying text vertically
Hello everybody, I am using Java2 on RH6.0. I want to display some text using in vertical direction. g.drawstring displays string only in horizontal direction. How can I do that?? There is also one more thing. When I open some text file and after reading display the contents in Java using EditorPane it replaces tab(\t) by a square bracket. How can I do away with this problem? With Regards, Alpesh = KOTHARI ALPESH D. STUDENT M. TECH. CEDT INDIAN INSTITUTE OF SCIENCE BANGALORE-560 012 INDIA __ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one place. Yahoo! Shopping: http://shopping.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Simpliest way to check the file presence.
java.io.File.exists() returns a boolean indicating whether the named file exists. --Jeff Jacob Nikom wrote: > > Hi, > > What is the simplest way to check, whether the file > exist or not on the Linux hard drive? Is there any operation > which delivers binary output whether file exist or not? > > Thank you, > > Jacob Nikom > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- Jeff Galyan http://www.anamorphic.com http://www.sun.com jeffrey dot galyan at sun dot com talisman at anamorphic dot com Sun Certified Java(TM) Programmer == Linus Torvalds on Microsoft and software development: "... if it's a hobby for me and a job for you, why are you doing such a shoddy job of it?" The views expressed herein do not necessarily reflect those of my employer. Sun Microsystems, Inc., has no connection to my involvement with the Mozilla Organization. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Simpliest way to check the file presence.
Hi, What is the simplest way to check, whether the file exist or not on the Linux hard drive? Is there any operation which delivers binary output whether file exist or not? Thank you, Jacob Nikom -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Problem with Swing: can't load LookAndFeel-class
Hi!
I have a problem running Swing-applications with the new Blackdown JDK1.2.2 RC3.
The following program
---
import javax.swing.*;
public class UIManagerDefaults {
public static void main(String[] args) {
System.out.println("Default L&F: " + UIManager.getLookAndFeel().getName());
}
}
-
throws this error:
$ java -verbose UIManager
(... tons of debug info...)
[Loaded javax.swing.UIManager$1 from /home/thomas/bla/jdk1.2.2/jre/lib/rt.jar]
[Loaded javax.swing.plaf.metal.MetalLookAndFeel from
/home/thomas/bla/jdk1.2.2/jre/lib/rt.jar]
[Loaded javax.swing.plaf.basic.BasicLookAndFeel from
/home/thomas/bla/jdk1.2.2/jre/lib/rt.jar]
[Loaded javax.swing.LookAndFeel from /home/thomas/bla/jdk1.2.2/jre/lib/rt.jar]
(... more debug info ...)
[Loaded java.awt.image.PixelInterleavedSampleModel from
/home/thomas/bla/jdk1.2.2/jre/lib/rt.jar]
[Loaded java.lang.IllegalArgumentException from
/home/thomas/bla/jdk1.2.2/jre/lib/rt.jar]
Exception in thread "main" java.lang.Error: can't load
javax.swing.plaf.metal.MetalLookAndFeel
at javax.swing.UIManager.initializeDefaultLAF(UIManager.java, Compiled Code)
at javax.swing.UIManager.initialize(UIManager.java, Compiled Code)
at javax.swing.UIManager.maybeInitialize(UIManager.java, Compiled Code)
at javax.swing.UIManager.getLookAndFeel(UIManager.java, Compiled Code)
at UIManagerDefaults.main(UIManagerDefaults.java, Compiled Code)
So javax.swing.plaf.metal.MetalLookAndFeel is loaded in the first place, but then it
says it isn't?
When I override the default LAF to WindowsLAF the same thing happens.
I also tried the MotifLAF, and it works:
$ java -Dswing.defaultlaf=com.sun.java.swing.plaf.motif.MotifLookAndFeel
UIManagerDefaults
Default L&F: CDE/Motif
A friend of mine, who is using the JDK1.2.2 with the very same linux distribution
(Suse 6.3), has no such problems.
What's wrong with my system?
Any ideas?
Thomas
--
Thomas Förster Mail: [EMAIL PROTECTED]
---
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: invalid method hash with rmi calls
OK that was with the inprise jdk. I had to switch back to blackdown because the Inprise jdk was core dumping on me. Now I'm getting the same 'invalid message hash' ServerException with Blackdown and I can't fix it no matter what I do with my policy file. [EMAIL PROTECTED] wrote: > They were in sync. I discovered I got the same message after I killed the > server! I had been playing with my policy file before, and I had removed > the allpermission that had been granted to jdkhome/lib/ext. When I put > that back all my problems went away. The permission thing seems real > screwy to me. > > On Thu, 16 Dec 1999, Chris Abbey wrote: > > > it means the method you were calling has somehow changed since the > > server's _Skel class was compiled. I know you said they're in sink, > > but verify that the client and server both have the same version of > > the interface, the impl, the _Stub and the _Skel classes... also > > verify that the _Stub and _Skel match the interface and that the > > impl matches the interface. Greping the outputs of -verbose for the > > class is the quickest way to check the first one, the second will > > take some code review. -=Chris > > > > At 19:27 12/16/99 -0500, Joseph Shraibman wrote: > > >What does this exception thrown by my rmi client mean? The client > > >compiles with the latest version of the server. > > > > > >java.rmi.ServerException: RemoteException occurred in server thread; > > >nested exception is: > > >java.rmi.UnmarshalException: invalid method hash > > >java.rmi.UnmarshalException: invalid method hash > > >at > > >sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemote > > Call.java, > > >Compiled Code) > > >at > > >sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java, > > >Compiled Code) > > >at sun.rmi.server.UnicastRef.invoke(UnicastRef.java, Compiled > > >Code) > > > > > > > > > > > >-- > > >To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > >with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > > > > > > > > > cabbey at home dot net <*> http://members.home.net/cabbey > >I want a binary interface to the brain! > > Today's opto-mechanical digital interfaces are just too slow! > > > > > > -- > > 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]
coding question
hi all, How can I enable a textarea component to copy an paste text? TIA --Yohans ~ Yohans Mendoza Unix Administrator [EMAIL PROTECTED]Sirius Images Inc. http://www2.utep.edu/~yohanshttp://www.sirius-images.net ~ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
SIGS Object Expo NY 2000 Conference Announcement
Mark your calendar!! SIGS Object Expo / the expo for Java at http://www.objectexpo.com Conference: February 21-24, 2000 --- Exhibition: February 22-23, 2000 New York Marriott Marquis, New York, NY ENTER TO WIN A FREE VIP PASSPORT (see details below) SIGS Object Expo returns for another high-powered conference providing the most intensive training on object-oriented technology found anywhere. Our faculty of renowned speakers consists of the most sought-after consultants and educators. Choose from 50+ day and evening sessions to catch you up on the latest object technologies. Stay abreast of your competition. Condense months of research, experience, and learning into 4 days. Timing: Strategically scheduled early in the year, you'll come away from the conference better prepared to meet your project deadlines for the rest of the year. Classes: Classes are geared to intermediate to advanced programmers. All sessions are peer reviewed to give you the accelerated learning you need get on board with the latest in object technology. You will go home equipped to improve your software development efforts from top to bottom. Relevant Topics: Under the guidelines of Technical Chair Henry Balen, the conference sessions are divided into five power tracks on the subjects you need. Five Power Tracks (visit http://www.objectexpo.com for details): + Components & Frameworks + Distributed Objects + XML + Advanced Java + Analysis & Design. Value: Visit http://www.objectexpo.com to get details on special attendee packages. Contest Rules: Win a FREE VIP registration. Just visit (http://www.objectexpo.com) and request to be informed of site updates. Use priority code: OBE3001. Winner will be selected on December 28, 1999. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Where is the plugin?
Hello, I've seen references to the Linux version of the Java plugin, but I am unable to find it on www.blackdown.org. Where is it? Thanks! -- / Peter Schuller PGP userID: 0x5584BD98 or 'Peter Schuller <[EMAIL PROTECTED]>' Key retrival: Send an E-Mail to [EMAIL PROTECTED] E-Mail: [EMAIL PROTECTED] Web: http://www.scode.webprovider.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
glibc requirements
Hi I noted in Blackdowns README file that glibc 2.1.2 is required, and read in Sun's README file that glic 2.1 is required for their version. Does anyone know if they mean that any 2.1.x version works? // André -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Where is the plugin?
exactly where it should be... Java-Linux download pick a mirror, any mirror you think is relatively current jdk1.1.8 i386 v1 JavaPlugIn_1.1.2_k-glibc-2.1.2.sh At 22:21 12/20/99 +0100, Peter Schuller wrote: >Hello, > >I've seen references to the Linux version of the Java plugin, but I am >unable to find it on www.blackdown.org. Where is it? cabbey at home dot net <*> http://members.home.net/cabbey I want a binary interface to the brain! Today's opto-mechanical digital interfaces are just too slow! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Blackdown JDK vs Sun/Inprise
Aren't we forgetting something in this discussion? Average PC has 64M, you want to write an application that runs on this PC, your dev environment (JBuilder or whatever) has, in addition to the application, a compiler, the IDE, a debugger... ...your development environment is probably going to need more than 64m. This would be as true of a C/C++ ide. That Java may use more memory than C++ running on the native GUI is a different issue, and has nothing to do with JBuilder. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Using JPDA with Blackdown JDK?
Hello, As my subject line says is that question I would like to ask. Can the JDPA work with Blackdown or does it require us to port it to Linux?? Is the JPDA 100% java or does it require some native calls that need to be rewritten for linux?? Matt brown -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Using JPDA with Blackdown JDK?
Matthew Brown wrote: > > Hello, > As my subject line says is that question I would like to ask. Can the > JDPA work with Blackdown or does it require us to port it to Linux?? Is > the JPDA 100% java or does it require some native calls that need to be > rewritten for linux?? Some porting is required. The Inprise JDK (available from Sun) has JPDA, Blackdown (currently) does not. Nathan > Matt brown > > -- > 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]
