custom Font?

121 byte By perfectlifepan at 2007-9-30 21:40:18
hi~~ I want to make some text with custom Font and display it on Applet?what class/method can I use?

Few general questions and j2sdk 5 questions

345 byte By Java_scientist at 2007-9-30 21:40:52
Hello guysI hope the new java development kit have some way to deal with scanner's TWAIN. Does it?What is the new Each-for loop used for?I googled the internet and not find any site that provides me with final reports to Seniors presented by Computer Science Students, is there any?With ...

a panel can't appear!

423 byte By Java_scientist at 2007-9-30 21:40:58
I have three java files scanAndCorrect.java, panel.java, Senior.java. [code:]in scanAndCorrect.javapublic scanAndCorrect(JPanel pane);// in panel.java: scanAndCorrect scanandCorrect = new scanAndCorrect(panel);// in Senior.javapanel s_pane = new panel();[/code]my problem is that the panel ...

Using J2EE 1.4 SDK

543 byte By Frames_ at 2007-9-30 21:42:15
I'm a uni student and just started studying java. At uni we don't use a package like J2EE yet, we just use notepad then complie and run the .java program in a terminal. On my home computer i've installed this J2EE 1.4 SDK program. but i can't find a program within the J2EE that allows you ...

Converting values

149 byte By maazevedo at 2007-9-30 21:46:14
Hi Is there any way to verify if a string value in a string variable can be converted into a integer variable ?Thank you

a 2D char array from a text file?

2569 byte By Zebediah at 2007-9-30 21:46:24
How could I make an array of characters be entered from a text file. At the moment it has the numbers and space in a 100*100 grid (map.txt, seperated by enters for each line), although I would like to make a 1000*1000 grid using all the alpha-numeric characters later(maby symbols too).But ...

Convert Documents to Image

132 byte By mvnveera at 2007-9-30 21:47:00
Hi,Is there any API available in Java to convert Documents like Word, PDF, Excel to Images? Thanks,Veera

Uniquely identifying a client PC

1115 byte By John_Rowat at 2007-9-30 21:47:57
I'm looking for ways to uniquely identify a machine running a java program, other than IP address. I'd like to be able to use this, along with IP address, to confirm from a server that a client shares not only the IP but is actually the same physical machine connecting to a server.I am ...

regular expression

119 byte By arun123 at 2007-9-30 21:51:07
can any one provide an extensive explanation on constructing regular expressions through java.util.regex.Pattern

OutMemoryError Logging

517 byte By sarveswaran_m at 2007-9-30 21:51:29
Dear all, In our application,every time an exception is thrown, we capture it, open a file, log the exception in the file, then close it. When outOfMemory error occurs, will it be captured and logged in the file for sure? Or is it possible for the exception not to be logged since the ...

Differencet between length and length()

282 byte By HAISURESHBABU at 2007-9-30 21:51:45
Hi,When we are using String() : To fing its length we are usingstringObj.length() and when we are using arrrays of String : to find its length we are usingstringArray.lengthWhat is the difference between length() and lengthbye,suresh

displaying overlapping images

371 byte By javabb at 2007-9-30 21:51:56
Hi,I have a JWindow to which I have added a JLabel. I have to display images on the JWindow such that when i set a new Icon to the JLabel, it overlaps the previous one.. ie if the new icon is smaller than the previous one then the remaining portion of the previous image should be visible. But ...

It's urgent : Signing the JAR

481 byte By SachK at 2007-9-30 21:52:38
In my application there is a applet which tries to open a socket connection on client machine.And as per JAVA specification it throws a security exception.Which is absolutely right.But I want to test this application.Is there any utility or temporary signing clause which allows me to test the ...

Openeing PDF file

797 byte By rizzu at 2007-9-30 21:53:52
Hi,Using stand alone program i want to open .pdf file when user clicks on a help menu.i have done this using Runtime.exec(" acrobatpath.exe test.pdf"); where acrobatpath.exe is the locationof acrobat exe file location and test.pdf is the file to be opened.But i will be installing this stand ...

get duration on player

810 byte By javabb at 2007-9-30 21:55:01
Hi, I am using a jmf player to play an mpeg video. I want to knw the duration of the mpeg for which i use the getDuration() method. But this often returns DURATION_UNKNOWN. to get the duration I am puttin it in a while loop. But sometimes the complete duration is not obtained. How to do this?I ...

Tomcat

988 byte By cessnaLoh at 2007-9-30 21:55:43
Hi,I got stuck with Tomcat.Due to unknown reason, the Tomcat server unloaded one of the web application deply in it.The following are the debug message10 Nov 2004 15:14:17 - DEBUG Stoppingv 2004 15:14:17 - DEBUG Unloading persisted sessions10 Nov 2004 15:14:17 - DEBUG Saving persisted sessions ...

Problems with printf

642 byte By lalc at 2007-9-30 21:56:26
Hi..I have recently updated to 1.5 java version. I wrote a simple program but it seems to be having some problem with some commands (only). Say printf.I get the following error on compilation.The method printf(String, Object[]) in the type PrintStream is not applicable for the arguments ...

Support to /3GB on Sun JDK 1.4.2 or above and heap > 1438MB on Win32

185 byte By FabricioT. at 2007-9-30 21:57:46
When will be available some version of Sun JDK 1.4.2 or above that suports /3GB boot.ini parameter and a heap greater then 1498MB on OS Windows 32 bit (W2K, W2003)?Thanks.

OutofMemoryError

501 byte By javabb at 2007-9-30 22:00:10
Hi,I have written a JAVA server and a C client. depending on the request coming from client, the server will display pictures, videos or audio files. When i give client request in a loop, I am getting an OutOfMemoryError.I have written a function that will close all audio or video windows if ...

Unable to play mp3 in Linux Using JMF

549 byte By Ashishjava123 at 2007-9-30 22:00:24
I am not able to play Mp3 file in Linux -9i through JMF-2.1.1e version.I am received the following error messagefilename = soundmp3.mp3 Unable to handle format: mpeglayer3, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 16000.0 frame rate, FrameSize=32768 bitsFailed to realize: ...

100 errors rake aborted!

1937 byte By pietjepuk at 2007-9-30 22:02:35
can you help me with this?What is the solution for the: 100 errors rake aborted!?src/org/itor/commands/ShowDocumentCommand.java:105: cannot resolve symbolsymbol : class Directorylocation: class org.itor.commands.ShowDocumentCommandprotected Directory getSiteIndex() throws DbException, ...

Machine Name Change Broke URLClassLoader

1770 byte By Confusatron at 2007-9-30 22:03:54
I have a Java app that uses URLClassLoader to load classes outside of the classpath. This was working just fine for months, but then the machine name and IP address were changed. Ever since, URLCLassLoader throws a ClassNotFoundException when trying to load the non-classpath classes. The ...

how to change the url string of URL object?

250 byte By cyperhunt at 2007-9-30 22:04:42
Hi:Do you know how to change the url string of URL object? For example, I have an URL object declared as:URL myurl = new URL(" http://www.cnn.com");How to change the url string of myurl to be " http://www.yahoo.com"? Thanks.

Generics in interfaces parameters

1117 byte By Etienne2072 at 2007-9-30 22:04:44
My post is a feature request. If anyone have informations on forthcoming and related developments, please send me.I want to implement a graph class with nodes and edges collections and express in the implements section that this class supports such features (I don't take into account any ...

the definition of enhancement of for loop

129 byte By jackleeok at 2007-9-30 22:05:05
Where I can find the definition of enhancement of for loop? Is it in java lanuage specification2.0? but I can't find it.

Stack Trace Shows Unknown Source

1186 byte By kumashi at 2007-9-30 22:05:15
Hi,Need Help....I am using JDK 1.3 and the stack trace for my application shows unusual behaviour. I have changed my PC and using a new one and I got the stack trace which shows (UNKNOWN SOURCE) instead of line number. The line numbers are shown for all other code!!! I am having the same set up ...

JTable ToolTip with MouseCursor

454 byte By toniG. at 2007-9-30 22:06:04
Hi,i use a JTable to display some data (strings). But some of the strings i want to display are to long for the fields in the JTable. So parts of my string arent displayed.When the user moves the mouse-cursor over the field i want do display the complete string in the field via ToolTip. My ...

Problem downcasting

211 byte By lgarcia3 at 2007-9-30 22:06:08
I need to change an Object type to int like this int i = (int)Object;where Object is the Object type variable holding my info. When I do that I get an error. How can I fix it?Thanks!!

Simple Input

218 byte By Danii at 2007-9-30 22:07:04
Hi!How do you read an input? In my school we use this keyboard class http://www.gleerups.se/skola/pager.asp?sid=207But since this is Java there must be another easier way ;-)Thanx in advance

header files

188 byte By jazzadict at 2007-9-30 22:08:36
Can I create header files with my own functions in java such as in C++?If not, do I need always to make my own classes in order to call these functions?Thanks!!

I can't access my images!!!

991 byte By Java_scientist at 2007-9-30 22:09:04
GreetingsFirst I thought it might be an error in my code but upon executing the following code that calculates the images's height and width it returns -1 values? the test.jpg exists in the same folder as the ImageXY.java file and it's size is 100 * 100, I tried creating many other images, ...

Exiting when the user selects "Exit" from the "File" menu in an application

296 byte By Curious_Ernest at 2007-9-30 22:10:41
Hello there,I would like to know how to exit a java application when the user selects "Exit" from the "File" Menu. I am trying to develop and irc application. I have done the menus so far, which resembles the Mirc menus.Please send me some code examples.Curious_Ernest

J2ME wireless toolkit 2.2 help

470 byte By Talisan at 2007-9-30 22:10:46
i write the code and build it and run it.when i got to run the application on the emulator i get an errorUnable to create MIDlet dfajava.lang.ClassNotFoundException: dfaat com.sun.midp.midlet.MIDletState.createMIDlet(+14)at com.sun.midp.midlet.Selector.run(+22)please tell me what i'm doing ...

How to improve security!

335 byte By rose1975 at 2007-9-30 22:11:21
If you need help just contact mePhilip HollandNetwork Consultant Irvine http://www.hollandit.comExchange Consultant Los Angeles http://www.hollandit.com Security Consultant Los Angeles http://www.hollandit.com Outsourcing Consulting ...

How can I send / recevie file through socket ?

189 byte By jameslui at 2007-9-30 22:11:23
Hello, I am looking for help on file transfer by using TCP/IP socket, I look through the internet but I cant find a good example, could anyone give me an example please?Thanks

Java Sound; multipul clips

4397 byte By webaf409java at 2007-9-30 22:12:24
Hi, I'm trying to have a thread that will be able to load multiple clips and add them to a list of clips. When I run my program my first clip loads with no problem, however when I invoke clip.open(AudioInputStream) for the second clip i get the following error: java.lang.OutOfMemoryError: Java ...

Multiple Clips (spelling)

274 byte By webaf409java at 2007-9-30 22:13:11
I'm sorry, I spelled this incorrectly in my previous thread, and I just wanted to make it more professional. Here is the origional thread: http://forum.java.sun.com/thread.jsp?forum=17&thread=571144&tstart=0&trange=15Again, thank you for your help

playing sound from jar file

162 byte By jpn1ie at 2007-9-30 22:13:31
Hi Mrs,How can i play a sound file after bundling it in a jar file. I used getclass.getResource but it didn't workWhat can i do?thnx.

Help 911 Please

338 byte By aladino52 at 2007-9-30 22:13:48
This is my problem: when I click on a link on a web page sometimes will not take me any where. when I click this is what I getJavascript void(0) whats wrong with my system and how I can fix it. I will appreciate any hel to fix this error...Help please from someone. my email is ...

Java upgrade

212 byte By aladino52 at 2007-9-30 22:13:50
I really dont know about javascript and java errors. I have Dell dimension 2400 with windows xp, What version of java should I have right now on my system so I wont have any problems browsing the internet?

JDK 1.5 Generic - Vector Problem

2420 byte By Anton at 2007-9-30 22:15:44
Hi,I need some advice on JDK 1.5 Generic. Please don't mind what this code is all about. The problem is on the compilation part on JDK 1.5. 1 public class VectorExample { 2 3private java.util.Vector<Object> rows = new java.util.Vector<Object>(); 4 5public VectorExample() { 6} 7 ...

Base64 - officially?

109 byte By alexey.philimonov at 2007-9-30 22:16:17
Hi!Could anybody explain me why Sun don't include Base64 encoding-decoding in an official API?

Please do me a favor.

300 byte By Mars_cl at 2007-9-30 22:16:35
I'm trying to run applet in IE6.0,however ,it prompts to say " you need to download JVM",when i click "yes",it do nothing but a web page to represent the message "download third-party JVM".May anybody helps me to work around this problem.Ang answer is highly ...

Who knows Integer.byteValue()

263 byte By apassow at 2007-9-30 22:17:33
Who knows why:int x = 123;byte b = Integer.byteValue(x);does not work, but:String tmpStr = Character.toString(tmpChar);orString tmpStr = Integer.toString(tmpInt);does work?Any help is much appreciated

Servlet producing feedback

384 byte By addidas at 2007-9-30 22:18:16
hi all,i want to write a servlet which computes large data. so I want that my servlet sends feedbacks (like the status of the computed MBytes) to the client while processing the data. the Problem is when i send the first Feedback the Connection between the Browser and the server is closed.can ...

Informing program crash

651 byte By JavaWookie at 2007-9-30 22:19:44
Hi, I got a Java program, that writes all its output to logfile. If there is a problem, that is, if I go to catch clause, something is written to logfile and then system exits.Is it possible now to make some kind of emailing, if the program crashes? I could, of course, make some emailing or ...

need help on NetBean 4.0

1075 byte By jallatryne at 2007-9-30 22:21:05
HelloUp until now I have used an Emacs to write and compile java code, but It was always a hassel to specify all files etc. So I decided to upgrade to netBeans 4.0. But I need help to set that dam?thing up.I just want to write: import com.myName.packages.myPackage;in my source file, but it will ...

Applet security

2353 byte By Zebediah at 2007-9-30 22:21:18
I have an applet that has the problem of having to read a (map) file in .txt format. This is ok(still trying to get that to work) but What about all the windows security. It will die (Unless i always run it in appletViewer) because of windows not letting it access a file on my computer. On a ...

Having a basic servlet problem......

412 byte By tomal123 at 2007-9-30 22:25:15
Hi everybody.......i wrote a simple servlet problem and then compiled it successfully and got the class file.I am using windows 98 and i downloaded jsdk2.1 and unzipped it and put both html and class files in jsdk2.1\webpages\WEB-INF\servlets.But the problem is nothing is showing up.......can ...

java.net.ServerSocket - what port range is used

294 byte By DevilsAdvocate at 2007-9-30 22:25:30
Hi I am using some 3rd Code that calls java.net.ServerSocket(0) which will allocate a free port.Does anyone know what range of ports are used and how they are configured?I assume this will be an Opersating System configuration , we are using Solaris 8.Regards