reflecting methods of parent class

357 byte By boyedav at 2007-9-30 17:53:16
I have a class named ParentClass with a public method named getName that takes a String as a paramenter and returns a String.If I extend ParentClass, how can I use reflection to access the getName method of the parent (super) class? I get a NoSuchMethodException if I try to get the subclass to ...

Replacing GUIs

614 byte By javaProgrammer_no1 at 2007-9-30 17:54:24
I want that by clicking a button in a applet that GUI containing that button and other things get removed and other one comes in its place.So I wrote code in event handler for that button. This code removes previous AWT controls and add new ones.Resulting application compiles fine. But at run ...

Explain please

1180 byte By Itachi_Uchiha_Go at 2007-9-30 17:55:17
import java.io.*;public class Chooser{ private static String students[][] = new String[5][2]; private static int row = 0;public static void main(String args[]){ try{ BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter your name: "); String s = ...

Are all changes for a class documented?

254 byte By atw208 at 2007-9-30 17:56:35
Between versions. For example, I was looking at the Serializable interface and it's "since Java 1.1". But does it function the same as in Java 1.1? The documentation doesn't say that anything's new since Java 1.1, but would it if it did change?

Why No Java.AWT.Peer In Documentation?

249 byte By spiritual_fields at 2007-9-30 17:57:05
Why isn't the Java.AWT.Peer package included in the JDK documentation? At first, I thought that it was only 1.5 where it was missing, but it's not included in the other JDK versions either. Where do I go to get information on this package?

Package & Deploy java application

117 byte By bob60 at 2007-9-30 17:57:07
is any application exists that can package java applications+jdk so that coud be installed in other computers?

Casting

68 byte By S_Khan@java at 2007-9-30 17:57:52
hihow to change double or int to a Stringthanks

Casting

68 byte By S_Khan@java at 2007-9-30 17:57:53
hihow to change double or int to a Stringthanks

JSP errors

3524 byte By Hedonist at 2007-9-30 18:02:39
Hi, I am accessing an object in session from a servlet. I am getting the following errors when I deploy app. any ideas?2004-09-20 09:31:21,593 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exceptionjava.lang.NullPointerExceptionat ...

How to Access a class outside a package

115 byte By RSriha at 2007-9-30 18:05:09
Hi All, Can you pls tell me how can i access class which is outside the package. Thanks!!Rgds,

How to Access a class outside a package which is friendly to the package

164 byte By RSriha at 2007-9-30 18:05:11
Hi All, i hav a class which has friendly scope in package X. how do i access it from a class in package Y without declaring it as public.Rgds,

please help me!help me!

331 byte By maxdean at 2007-9-30 18:07:31
this is a question of my exam.i cannot solve it at all. please help me slove it.i will thank you indeed!!!the questiuon in the website: http://gearoid.net/china.Then you can enter the "ood notes" and download "usst bank'" and "CoverSheets and Deliverables" under the topic of "Assignment".Thank ...

Strange problem running J2SE 1.4.2_05 SDK

735 byte By Sami100 at 2007-9-30 18:07:36
Hi!I am Finnish computer teacher in highschool. Last summer we had new computers in our class and SDK doesn' t run any class files anymore. For example following code:public class Moi{public static void main(String[ ] arguments){System.out.println("Moi");}} javac Moi.javaEverything goes very ...

FileInputStream read()

191 byte By vikasphonsa at 2007-9-30 18:08:51
Hi Guys,The value of -1 returned from the FileInputStream's read() method indicates the end of file.But what if the file being read has "-1" in it ?thanksV

Problem with j2sdk1.5.0 RC

1351 byte By wolalona at 2007-9-30 18:09:13
I had been using a software called ImageJ ( http://rsb.info.nih.gov/ij/)with both j2sdk1.4.2 and j2sdk1.5.0 beta without any problems.I downloaded and installed j2sdk1.5.0 RC and when I tried toopen an image I got the following messagesjava.lang.NullPointerException at ...

5.0: any improvement concerning memory management?

243 byte By MartinHilpert at 2007-9-30 18:12:29
Is there any improvement in the latest J2SE 5.0 concerning memory management? Setting the maximum memeory via "-Xmx" is just not flexible enough for todays server applications. Does 5.0 return unused memory back to the operating system?

why sun does not provide a J2SE wihout installer ?

207 byte By waltereo at 2007-9-30 18:13:21
Hi, I wonder why Sun does not provide a J2SE or J2EE without installer ?I have to use different version of the JDK and it is so useful to have a zipped J2SE without installer !Tkx

deploying tool

348 byte By El_Duende at 2007-9-30 18:14:09
Hi everybody.I have developped a quite simple J2SDK application that will be installed in several PCs.Since some steps are necesary for installation (downloading JRE, copying jars, etc), I wonder if there is a free tool that allows to make instalation easy for end user ?(something like ...

URLConnection.connect () doe not work !!!

692 byte By empleado_de_altana at 2007-9-30 18:14:26
Hello.I am trying to access http pages using the class URL, to get an InputStream from the class URLConnection after connect () (using getInputStream()). But it doesn't work !!!I have tested with "file" protocol and it works.I have tested with "localhost" web server address and it works.But ...

Best Practice In Java

183 byte By Shaiju_Nair at 2007-9-30 18:17:14
Dear Friends. Which is the best method to use in looping ? For loop or While lopp. Please give me some idea about the performance.Thanks in advanceShaiju.P

Focus problem

1168 byte By buff5000 at 2007-9-30 18:18:33
I have a JTabbedPane enclosed in a JFrame. One of the tabs is a JPanel on which I am trying to get the use to press the arrow keys to move a cursor. in order to override the consuming of the keyboard events i have tried to transfer the focus of the wondow to this JPanel whenever that part of ...

How can i increase the space volume in JVM?

85 byte By sasi150 at 2007-9-30 18:22:20
Hi!How can i increase the space volume in JVM?Thanks-Sasi

How can i increase the space volume in JVM?

85 byte By sasi150 at 2007-9-30 18:22:21
Hi!How can i increase the space volume in JVM?Thanks-Sasi

what is the difference between Scroll sets and Result sets?

90 byte By sasi150 at 2007-9-30 18:22:25
Hi! what is the difference between Scroll sets and Result sets? -Sasi

Help!

88 byte By Gajanta at 2007-9-30 18:22:43
what software should i donlowd to compile and run java programs , classes?

when sun want to realse j2sdk 5 final

106 byte By fajayaja at 2007-9-30 18:23:28
hii can not find when final realse for j2sdk 5 will be availble.thank you in advanced

JInternalFrame Sizing

797 byte By kapilChhabra at 2007-9-30 18:23:32
I have an application that uses JInternalFrame. Except for one, all the frames have the following:this.setResizable(false);this.setClosable(false);that one frame has both of them set to true.now, the problem comes on i follow the following steps:1. i open 1 non-resizable frame.2. with that ...

Need help with Image upload to database

385 byte By marc79 at 2007-9-30 18:23:38
Hii all,Firstly, I'm rather new to Java technology and I'm currently working on a school project. I need some help with: uploading of an image file to an online database server(MySQL) and, retrieving the image from db(I'm using BLOB type) for display in Java.I'm not familiar with the ...

JNDI Cast

822 byte By _anagram_ at 2007-9-30 18:24:05
Hello,I'm learning JNDI with com.sun.jndi.fscontext.RefFSContextFactory.I've got a problem. I try to list a directory and I get Objects. But I can't cast them into an instance of File.I do this :_p = new ...

Static blocks don't run when class loaded under jdk 1.5

758 byte By bhamail at 2007-9-30 18:25:04
I'm seeing a new behavior regarding when static code blocks run in jdk 1.5.In earlier VM's, the static block in the following code would execute as soon as I called MyClass.class.getName().I never had to actually call a method on the class.MyClass class { static String myStaticString; // ...

unusual error while compiling

5701 byte By hephaestus.the.metal.god at 2007-9-30 18:25:08
i have windows xp pro with sp2.....java compiler:java version "1.4.2_05"Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)whenever i run code below it gives me error:code-import java.awt.*;import java.applet.*;import ...

problem with compiling on a mac terminal

656 byte By kilmuntad at 2007-9-30 18:27:52
Hi , i am new to java ( know c++ ) and im begining to learn java , i am using mac os x terminal and i got this code from a tutorial:class myfirstjavaprog{ public static void main(String args[]){System.out.println("Hello World");}}i saved it as hellowworld.java then i did the folowing ...

which one is more advantageous?

213 byte By sasi150 at 2007-9-30 18:31:03
Hi! There are 2 ways to create the Thread.one is by extending the Thread method and other by implementing the Runnable interface.which one will be more advantageous.what is the reason?.Thanks,

Need Help On Function!

513 byte By river_mushkah at 2007-9-30 18:31:28
Hello, im just a beginner in java and sorry if this problem will look so weird. I wanted to link 2 java file, for example me and my friend had come out with 2 seperate java file (a.java & b.java). a.java is the main file where it load all the frame and button and b.java is another type of ...

Help! How to run a jar file which is specified a path

270 byte By J_Town at 2007-9-30 18:31:37
hi, AllI met a problem couldn't be solved.I don't know run a specified path jar. For example, test.jar in c:\, I want run the jar anywhere on my computer, i worte a bat file like that java -jar c:\test.jar , but the bat file couldn't work.

Help! How to run a jar file which is specified a path

277 byte By J_Town at 2007-9-30 18:31:38
hi, AllI met a problem couldn't be solved.I don't know how to run a specified path jar. For example, test.jar in c:\, I want run the jar anywhere on my computer, i worte a bat file like that java -jar c:\test.jar , but the bat file couldn't work.

Accessing Mobile Phone - possible?

354 byte By avijitdas1 at 2007-9-30 18:33:02
I am using JDK (SE) 1.2.2 for running a data acquisition application software using Serial Comm Port. Suppose the desktop PC (Win'98) is connected to the internet. Is there any way to send short message (SMS) to a mobile phone in case of occurrence of any error?If not, is it possible through ...

How can we make one object as synchronizable?

91 byte By sivakm at 2007-9-30 18:33:03
Hi!I am new to java.How can we make one object as synchronizable?Thanx

J2SE OR J2ME

88 byte By CND_Jackass at 2007-9-30 18:33:23
Just wanted to you what would be a better J2SE or J2ME for a mobile applicartion?

How to use log4j in applet?

378 byte By baris_yalcin at 2007-9-30 18:33:44
Hi everyone,I would like to use log4j in an applet. Unfortunately I couldn't find any example. Is there any documentation which shows how to configure log4j with applets?Or does somebody have an example for me (applet and log4j.xml) which shows how to realize logging with log4j in an ...

HotSpot EXCEPTION_ACCESS_VIOLATION error

8468 byte By peixin at 2007-9-30 18:34:27
Hello experts:I got this error message when I was runing debugger in loading an image and measuring the image.I am using Jimi to load images and the the detail infor is:Any help is appreciated.## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION ...

How can I import a package?

435 byte By tleis at 2007-9-30 18:35:44
HelloI have the following package:package levelone.leveltwo.leveltree;and i want to import the follwoing import levelone.leveltwo.*;Upon compilation, I got a "Cannot Resolve Symbol" error, indicating that I can't access the imported package.what might be the problem.I'm Using j2sdk1.4.1 Thanx ...

I can't download the api from sun!!

478 byte By tleis at 2007-9-30 18:36:31
I'm trying to download the Java Advanced Imaging from this site, and it requests me to update my profile in order to log in.After i update my information and click the button UPDATE, the site sends me back asking for logging in again. this is where i'm trying to log ...

format problem with very big values

809 byte By szhqvo at 2007-9-30 18:37:23
Hi togetherWe have a problem with format a big value in a currency value. The JAVA methode ' DecimalFormat' can not manage with big values.For example: input is: 2345678901234567890.123457 after methode below we return the formatted value: 2'345'678'901'234'567'700.000000Sample for ...

Static modifiers

654 byte By ganeshramhere at 2007-9-30 18:37:38
Hi all,Greetings Can any one help me in understanding "static" modifiers .Like what actually happens when it is applied on variables(Static variables),Classes(static classe) and about static instances of classes like the followingstattic ClassName object name =new ClassName()Note:I know ...

EXCEPTION_ACCESS_VIOLATION

2154 byte By mintage at 2007-9-30 18:38:15
I get the following error when using my app. on windows 98, On windows xp it's all working fine...On an other maschine with windows 98 there is a conflict withIMAGEHLP.DLL ....can someone help me with this. An unexpected exception has been detected in native code outside the VM.Unexpected ...

Inner Classes

187 byte By ganeshramhere at 2007-9-30 18:42:46
Hi all,Greetings,Can any one throw light on Inner classes ,their types with some code samples.It will be better if u recommend me some links even.Thanku

compiler issues (j2sdk)

217 byte By joeetomatoes at 2007-9-30 18:45:11
I need help getting my compiler to run. I try to compile a file and the error message I get is: can't read file.I have installed everything correctly.Can anyone offer some help? The version is J2se1.4.2

Exception in thread "main" java.lang.NoClassDefFoundError: /root/malla/as/c

1654 byte By chmallareddy1 at 2007-9-30 18:46:06
Hi,I am strugling with this for past two days.. Please help me. I am trying to install java on my linux fedora core 2.. It installationis ok.. when I run simple program i am getting the above error.. Please help me.Exception in thread "main" java.lang.NoClassDefFoundError: ...

where can i find the source for the java compiler?

219 byte By cdsterling at 2007-9-30 18:47:00
Hi all, I wanted to fiddle with the source for the java compiler and in particular wanted to see how it built up it's parse tree from the source java code. Does anyone know where to get that?Thanks