FileInputStream in jdk 1.2(working) Vs jdk 1.3, jdk1.4(not working)

1059 byte By ynroy at 2007-9-27 22:22:48
This is a strange problem ,we have code wich reads spanish,and other languages. when we display that text in either HTMl or Log file the special characters are convered into "?" for ex." N鷐ero de Identificaci髇 " will be converted something like " intoN?mero de Identificaci?n " code ...

What's in 1.4.1_01?

383 byte By steve_olson at 2007-9-27 22:26:03
Anybody know where there is a release note or a bug list or some other doc that describes what is fixed/different in 1.4.1_01? Bug 4750688 is supposed to be in there according to the bug database, but use of array clone() methods (like IDLJ generates for POAs) still compile to invalid bytecode. ...

getParameter function in 1.4.1

950 byte By scarab5 at 2007-9-27 22:30:06
Hi,I want to get parameters from an applet.The parameter's value contains carriage return. When I use the getParameter() function, all the carriage return are deleted. The problem is that I need them !Below a kind of parameters I used :<PARAM NAME="USER_TXT" VALUE="<B>title ...

Hard Hang - SunOne Studio 4 update 1 in W2k

2752 byte By fabjr at 2007-9-27 22:36:27
I've upgraded to the new Update 1 version of the SDK with Java 1.4.1. My OS is w2k sp3. I can't get it to work correctly. It hangs hard, frequently.I originally posted this in the wrong forum and am moving it to this one which appears to be the right one. I hope someone can help me on this ...

j2sdk 1.4.0 displaying system properties

829 byte By gselvi at 2007-9-27 22:37:25
I' ve written a program to display the system properties like java.home, java.vm.version, java.version etc. I need to diplay this information before my application starts. I compiled the program in jdk1.4. I got the following results :java.version - 1.4.0java.vm.version - 1.4.0-b94why ...

crashing after actionperformed

1858 byte By youngster__ at 2007-9-27 22:46:32
I've the following problem.I want to perform an action every 5 seconds.If I click stop it has to stop.If I click start it has to begin again.But after clicking start it crashes always.Does anyone know another solution?I also tried it with treads but that gave other problems.Here is my source ...

how to rename filename by using File API?

2321 byte By szasgmg at 2007-9-27 22:51:58
in java.io.File, there is a method named rename(File newFile),but write some code to execute it, find some problem.code as follows:import java.io.*;public class MakeDirectories { private final static String usage ="Usage:MakeDirectories path1 ...\n" +"Creates each path\n" ...

Problem with checkboxgroup & itemevent

608 byte By lambu76 at 2007-9-27 23:05:23
Hi guys,i've a problem with checkboxgroup and itemevent.I'm explaining you now.I've some checkbox associated to a checkboxgroup.Every checkbox have a standard listener for ItemEventWhen I select one of these checkbox I can manage the ItemEvent generated by the new selected checkbox (an ...

Waiting for 1.4.2 (or a patch, anyway)

688 byte By bibacha at 2007-9-27 23:13:51
Greetings...We have an application that had been running on 1.3.1, but now we want to move to 1.4 (for a variety of reasons). Unfortunately, we've run into a snag due to our use of file: URLs with UNC paths. This was, apparently, a problem back in the 1.2.x series, was fixed around 1.3, has ...

Classpath for J2SDK 1.4.1

687 byte By Cchenga at 2007-9-27 23:13:57
Hello,I'm a beginner to Java and I'm using Mandrake Linux 9.0 and J2SDK 1.4.1. I would like to ask how to set the class path for the SDK? Meanwhile, I always get this error message when compilering a java file that uses class packages.(i.e. javax.swing.JOptionPane)Some of the error:===$ javac ...

java.lang.NoClassDefFoundError within Forte

1910 byte By roRisca at 2007-9-27 23:18:23
Hi, all for all of those who're using Forte. plz give me a hand...I recieve this error when running classes within ForteException in thread "main" java.lang.NoClassDefFoundError: 1-1/salut (wrong name: salut)at java.lang.ClassLoader.defineClass0(Native Method)at ...

ActionListener out side of class

238 byte By swarsiwa at 2007-9-27 23:24:48
Class A have JFrame and JButton not implement any ActionListenerClass B implement ActionListener to perform action on button clickof Class A..How can i solve this problem...thanks in advance with Ducke $

Class A JFrame call in Class B JFrame

367 byte By swarsiwa at 2007-9-27 23:31:48
hi,i have class A which extends JFrame and have some JButtonand class B also extends JFrame only ActionListener in class Bi want when class B button is click then class A button performsome task..?ORclass A button controling power in class B where we implement actionPerformedthankx in ...

ActionListener not being heard

582 byte By vooosea at 2007-9-27 23:37:13
Hi. I have a familiar "OK - Cancel" panel on a particular JPanel. I have added an actionListener to the OK and Cancel buttons so that when we click on them it takes the appropriate action. However, when I tab into the Ok or cancel button and press the Enter key the actionListener is not getting ...

Using 1.3 Action Framework, JButton firing strangely...

1986 byte By bh94704a at 2007-9-27 23:40:08
I have a bunch of AbstractActions in an array, like so:AbstractAction posHousingActions[] = new AbstractAction[] {new AbstractAction("", UP_ARROW_ICON) {public void actionPerformed(ActionEvent evt) {System.out.println("Building House");buildHousing(HOUSE);}}, new AbstractAction("", ...

JDK 1.4.1_01 installation hangs on Win2K

356 byte By djayakumara at 2007-9-27 23:44:59
Hello,The JDK 1.4.1_01 installation hangs on Win2K. I tried to install twice. It says "Setting Up Java Runtime Environment" with a popup window and does not complete the setup and just hangs. When I kill the installation process it says "Remote Proceedure Call Failed" [I guess for the JRE ...

Where'd they hide the JDK?

397 byte By KJKruma at 2007-9-27 23:48:42
I'm trying to download the latest J2SDK for Windows. I can't find it anywhere on the site. I found a link that says J2SDK, but it goes to a page of "obsolete products", none of which is a JDK. All I can find is JDK 1.1.8. I found J2RE 1.4, but that's only like 8 megs, that can't be the ...

J2SDK 1.4.1_02 doesn't install on my Windows 2K

673 byte By M100096a at 2007-9-27 23:52:16
I am trying to install J2SDK 1.4.1_01 in my computer that has a working Windows 2000 (with SP3 already installed, in an attempt to solve this problem) and .Net, and I receive this message: "Java Development Kit - An installation support file could not be installed. The specified module could ...

How to insert Label

635 byte By vivekpma at 2007-9-27 23:54:46
We need to implement a HTML browser. The problem lies in implementing Anchor tag.We are using JFrame. Inside which we have a JPanel then Jscrollpane then JTextPane and then document (an extended class of DefaultStyledDocument). We are inserting string inside document. To implement anchor tag we ...

Simple J2SE 1.4 question

385 byte By javagreera at 2007-9-27 23:56:08
Hi, I'm a bit confused as to how the java compiler, jvm, etc. works. I've developed code ( a Servlet and some classes) using J2SE 1.3 . I would like to use 1.4 so that I can use assertions. If I use 1.4 and assertions will the code run on just about any Servlet container? Even if it is using ...

writing an ActionListener that responds when a variable changes

456 byte By schlenofa at 2007-9-27 23:56:36
I am interested in writing an ActionListener that monitors the value of a variable. When the value of that variable changes, I want the ActionLiastener to kick in and change what is displayed in a JLabel on the display. Note that there is no user interaction throughout this process.Has anyone ...

j2sdkee1.3.1 and commapi

485 byte By nick_florosa at 2007-9-28 0:00:47
Hi, I am trying to access the commapi2.0 from within a jsp page from j2sdkee1.3.1, and as you can imagine no serial ports are identified. I have copied comm.jar & javax.comm.properties in %j2ee_home%\lib while win32comm.dll in %j2ee_home%\bin Finally I have j2se 1.4.1 and the entire ...

Arrays as return type

517 byte By malrawia at 2007-9-28 0:05:54
hi..i have 3 Q's here they are 1. if the returnning type of a method of an array , will the method return a reference to the array (shallow copy) or will it do a deep copy ?2. is there a way to chose either one of the ways?3. is there anyway to make sure that someone will not change the data ...

swing problem

542 byte By pfa7606a at 2007-9-28 0:07:47
dear sir,i am still confuse between JDK and SDK even i have read the tutorial many times, can you state the difference between them? currently i install JDK1.3 and this is the requirement to complete my assignment. can you tell me what version of swing features i need to install and where to ...

environment variable java_home

450 byte By javaebdona at 2007-9-28 0:09:08
I got a problem with my Forte. I installed Forte Community Edition (bundled with Java 1.4 , downloaded from Sun).My Forte's ide.log file told me that the Java_Home="C:\forte_jdk\j2sdk1.1.0\jre".While my computer got Java 1.4.0 installed in C:\j2sdk1.4.0, and my Window 2000 's java_home ...

problems installing j2sdk on mdk9.0

962 byte By at_nikolova at 2007-9-28 0:10:57
Hello!I have a serious problem installing java2 SDK on a linuxmachine(mdk9.0). I unpacked the self extracting .bin file to/usr/local, set up the JAVA_HOME environment variable and added the$JAVA_HOME/bin (where the binaries are) to PATH, but javac and in factall other tools gave me 'Error ...

(Unsupported major.minor version 48.0)

278 byte By ChuckDavisa at 2007-9-28 0:11:50
Today I upgraded to j2sdk1.4.1_01 with Forte 4.1. Now I am getting the referenced message when I try to run my classes. Can anyone tell me what causes this? Forte runs find (apparently) but the compiled classes won't run (using the same jre!).Thanks for any info.

J2sdk 1.4.1_01 applications lock up system.

815 byte By Zathurasa at 2007-9-28 0:11:57
This was pretty strange, so I dont know if anybody else will hit this.I installed J2sdk1.4.1_01 on a Windows XP Home system (with SP1) and I could run the JFC demo (Java2Demo) just fine from the command line (java -jar Java2Demo.jar)However, I couldnt get JEdit 4.03 or Netbeans 3.4 to work ...

CDC+PP cvm crashes with HelloWorld

531 byte By alexroma at 2007-9-28 0:18:56
I downloaded Java2ME PersonalProfile RI 1.0, built it on RedHat Linux 7.2 as suggested in relevant docs. When running cvm with democlasses' HelloWorld I have java.lang.NullPointerException: at java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;(Native ...

javax.mail

207 byte By FlohrmannFa at 2007-9-28 0:20:16
Hi @ allI try to programm some kind of E-Mail-Clients, but i've only Java SDK 1.3.1 and there is no javax.mail.* implemented!Where can I find the javax.mail package?ByeF@b

Having both JDK 1.3.1 and 1.4.1 on Linux

299 byte By behrangsa2a at 2007-9-28 0:29:48
Hi AllCan I install both JDK 1.3.1 and 1.4.1 on the same machine running Linux? Some of my applications require JDK 1.4.1 (such as Tomcat 4.1.x) and some of them require JDK 1.3.x (such as IntelliJ IDEA 2.6).I have the RPM versions of the both versions.Thanks in

Port reuse

456 byte By dkarabaya at 2007-9-28 0:31:42
Hello,I have a very simple client-server based on TCP sockets. Once the connection is closed, my client would not connect to the server over the same port because the port stays in TIME_WAIT for a couple of minutes.I have set the setReuseAddress which was introduced in Java 1.4 but no help. I ...

Random files are deleted in FileInputStream constructor on Win32 platform

3851 byte By 2206241a at 2007-9-28 0:35:42
Random files are deleted in FileInputStream constructor on Win32 platform under j2sdk 1.4, 1.4.1 & 1.4.1_01.... I cannot make a test case so sun doesn't threat this as a bug!But after long run some (more and more) requests of FileInputStream constructor try to delete a file being ...

j2sdk1.4.1_01

290 byte By helgahelgaa at 2007-9-28 0:38:40
Could anyone tell me how to install this programm that it runs? I`d installed, it`s possible to write the first steps "hello world".., but it`s not possible to compile..anythingDoes Programms exist to write java? (With editor it alsways get the ending txt.Thank`s a lot

How to use FileOutputStream in a method?

366 byte By chrishuaha at 2007-9-28 0:40:05
Dear friend,Now I want to write a program use java swing. I can get text from JPasswordField but I can't write the password in a document. I try to use FileOutputStream in a method with actionPerformed. But it seem no work. The problem is where should I put the 'throws IOException'? At the ...

Problems after converting from 1.3SE to 1.4SE

459 byte By dojanperaa at 2007-9-28 0:45:19
I have a very vexing problem that I need some help with.When I run my program using SDK 1.4, weird problems crop up -- controls don't always respond to clicks (they seem to be pressed but are not released), the menu fonts are oversize/accelerators are not displayed, table column headings are ...

Java sockets (peek functionality)

326 byte By Aslow1a at 2007-9-28 0:51:04
Hi,how do i peek at a datagram, look into the data and accordinglydecide whether to consume that datagram or leave it for laterprocessing? Is this something Java sockets readily support OR do I need to implement some kind of store-for-later-processing please ...

How to install j2sdk1.4.0_02?

441 byte By helgahelgaa at 2007-9-28 0:56:58
When I try the first steps from the tutorial - it`s not possible to debug "erstesProgramm.java" so that I get the document"erstesProgramm.class". I`d installed j2sdk on c:\j2sdk...Do I have to install it to c:\windows\... or enywhere else? Even when I try to call javac for moving *.java to ...

best simple java editor

484 byte By yonscun_liea at 2007-9-28 0:57:02
I am new to java, i am a c programmer but want to move to java.I still use notepad to create a *.java files. I found it very inefficient because after saving must to open MSDOS prompt and type javac *.java , then run java filename.There are many java editor but which one is the best and ...

how to make my SLIDER control the movement of animations: ( fast & slow)

152 byte By k_asrafa at 2007-9-28 1:03:46
hello!i wanna do water dropping animations. using a slider, to controlled how fast and slow the animations can be.please help me!!!

Loosing ActionEvents when trapping MouseEvents

5658 byte By tcrassa at 2007-9-28 1:04:44
Hi there!Hope someone's got an explanation for this: I need to implement a JPanel subclass that keeps track of all mouse events issued within the application. If, however, I register an instance of this class as AWTEventListener, all ActionCommands issued by JPopupMenus seem to get lost. Seems ...

JList and right-mouse-button click

314 byte By fsblendorioa at 2007-9-28 1:04:52
I created a JList and I handled the right-mouse-button-click event, when the users clicks the right mouse button, a JPopupMenu appears.The trouble is that I'd want the element-under-the-mouse-pointer being selected before the menu appears.How can I solve the problem?Thanks in ...

All CPU time used up after installing on XP

540 byte By BillyFisha at 2007-9-28 1:06:19
Last week, I downloaded the latest 1.4 SDK and installed in on my Windows2000 machine - seems to work fine.At the weekend, I copied the file onto my home machine (running WindowsXP Home Edition). It installed fine but then my PC grinds to almost a complete stop (100% of CPU time being used by ...

Cannot find 1.2.1_04

128 byte By viacoma at 2007-9-28 1:07:57
I cannot seem to find this exact of JDKDoes anyone know where i can download this from ?RegardsGregg

Where is javax.sound?

187 byte By jflawrena at 2007-9-28 1:12:05
Compiler tells me it doesn't exist, even when setting classpath as follows: C:\JDK\bin\javac -classpath C:\JDK\JRC\lib\rt.jar soundApp.java ... I have version 1.4.1.

How to diplay document file from JFileChooser?

342 byte By chrishuaha at 2007-9-28 1:12:12
Hi,Now I want to diplay all types of document file, only text document. Where the content display in JTextArea and the title of the file display in JTextField. I try to use JFileChooser to open file. But I don't know how to get the file and try to add encryption to the file. So how can I do ...

How to enable focus on ComboBox

251 byte By kondapa at 2007-9-28 1:15:08
Hi all,I am facing a problem. I have a text field and combobox. When the focus is in text field, the combo should be enabled and vice versa. Could pl anyone help me.Does focus listener works for JComboBox?thankskonda

string & stringbuffer difference?

448 byte By yonscun_liea at 2007-9-28 1:30:01
I got big problem when trying learning java language. What's differrence between string and stringbuffer? the java tutorial say that string can not be changed but....looks at the code bottom :String kal = "abcdef"kal = "jjjjjj"When I print the kal have been changed?The second is what's ...

Compilation Error from Forte for Java 3.0

329 byte By superworm_hka at 2007-9-28 1:30:15
Hi! Everyone.I got a problem on Java program compilation.When I compile the program in any project, I got following error message:You may not use the compiler Ant Script Compilation on the object ibmTableFormat because it is not an Ant script.Would anyone help me to solve this problem? ...

how to set text format in log file

234 byte By dchen1124a at 2007-9-28 1:30:56
Hi, There:I'm using java.util.logging api, a question: how can I set my text format (instead of just using SimpleFormatter) in my log file? Does anyone have some sample code for that?Thanks in advanceDavid