20/11/2017 12:08
Is there a way to suppress the unchecked cast message for a particularstatement rather than an entire file. There are times when you can't reallyavoid the cast. In my case, I'm reading back in a previously serializedobject. I need to cast it. Thanks in advance.
Steve

7 answersclick here to view

18/11/2017 12:08
hai,I need a helpwhere to we save the jsp file using some html tags

4 answersclick here to view

15/11/2017 12:08
I have to convert integers to Roman Numerals but I cannot have outputin the switch statment. I also cannot use print or println onlyprintf. I can't figure out hot to output without putting it in theswitch statment. Help?

2 answersclick here to view

14/11/2017 12:08
Hi I've got some code to load an image using MediaTracker, but it seems abit over-the-top to use this class since there's only ever one imagebeing loaded at any time. Can the same thing be achieved using theImageObserver class? private void loadImage(Image img) { MediaTracker tracker = new MediaTracker(this); tracker.addImage(img, 0); tracker.waitForID(0); } Ta-Dave-

7 answersclick here to view

13/11/2017 12:08
Hi all, It must because I'm tired... It's so a dummy prob...
Here it is: Imagine you have a frame called F1 with only one JButton.
You have a main prog with something like that: main{ int res = 0; F1 frame = new F1(); System.out.println(res);} You have to assume that the Button in frame change the value of res if weclick on it. I would like to force the user to clickon this button. So that the value 0 never appear on the standart output ! But I can't realize this easy thi.... read more

3 answersclick here to view

11/11/2017 12:08
Hi, Does anyone know if there were any hidden messages in the pattern ofsteam swirls in the old cup of Java logo (the one here, for example: http://blog.itaniumsolutions.org/wp-content/uploads/2008/12/java2.jpg)? Thanks

4 answersclick here to view

10/11/2017 12:08
I have an application that has embedded within it Tomcat 5.0.28. The two portions are logically separated, but share some common objects. The embedded Tomcat system is used for configuring the application.
I use xDoclets to generate Spring XML context files for the application and the servlet running under Tomcat separately. But, as I mentioned earlier, I want to share a few objects between the two. And they have to be the same instance of each object; i.e., the instance accessed by Tomcat need.... read more

2 answersclick here to view

09/11/2017 12:08
Hi, i need some help regarding RAW Images.....anybody knows how to read.raw images using JAI and convert them to bitmap or tiff? any help willgreatly be appreciated...
Regards hussain

2 answersclick here to view

07/11/2017 12:08
I am curious if anyone has any code for a class that will extract zipfiles from folders and place the extracted files in a folder of thesame name on a different hard drive.
For instance, I have a folder called 1998. Within that folder are 60subfolders, each containing a zip file that contains reports generatedfor that day. I would like use a java class in the form of an exe toloop through all of these subfolders, extract the information in thezip files, and place the extracted files into a fold.... read more

2 answersclick here to view

06/11/2017 12:08
Hi,I want to use some JComboBoxes in a panel, but I do not know in advance howmany there will be. The code below compiles well but generates anNullPointerException: import javax.swing.*; public class Help { public static void main (String[] args){ JFrame frame = new JFrame(); JPanel panel = new JPanel(); JComboBox jcb[] = null; jcb[0] = new JComboBox(); jcb[0].addItem(hallo); panel.add(jcb[0]); .... read more

5 answersclick here to view

05/11/2017 12:08
hello, I am doing my java programs in C:javaex directory and set classpathasCLASSPATH=C:javaex in autoexec.bat But then if i change my java programs source directory and compilethere no problem in compilation but execution gives meException in thread main java.lang.NoClassDefFoundError: Example1if i reset CLASSPATH variable to new directory it works. But what if ihave code in many directories? Also why setting CLASSPATH to C:javaex does not inherited by allsubdirectories in javaex. if th.... read more

4 answersclick here to view

04/11/2017 12:08
What happens when AbstractTableModel is no longer compatible with Swing? I kinda see how to use it, but don't see how XMLEncoder would work in its place.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please se.... read more

3 answersclick here to view

02/11/2017 12:08
Previous versions of Eclipse have not allowed printing from Linux. However, the version of Europa I am using now, allows for printing from my Ubuntu FF server... finally.

2 answersclick here to view

01/11/2017 12:08
Hi, For some reason when I call the getParentFile() method, it isputting a single space at the front of the path, any idea why thiswould happen?

2 answersclick here to view

31/10/2017 12:08
i am not able to print the data i inout from the user. no errors.
please help me to find the flaw guys........plzzzz.......
here's the code: import java.util.Scanner;class mix{ public static void main(String args[]) { String name; String education; int age; int contract; int payment; System.out.println( WELCOME TO MADANS FIRST JAVA PRACTICEPROGRAM(hehe...) ); System.out.println( Enter canditate's name: ); Scanner input = new Scanner(System.in); name = input.nextLine(); System.... read more

2 answersclick here to view

eDiscover
Helpforce eDiscover provides technical articles updated each day
Click the logo to go back to the main page
Java

Helpforce eDiscover RSS feed contains the latest technical articles in RSSWe have a vast archive of technical informationJava is a programming language developed by Sun Microsystems (which has since merged into Oracle) and released in 1995 as a core component of the Java platform. With many innovative features, Java is currently one of the most popular programming languages in use, particularly for client-server web applications, with a reported 10 million users.

Search eDiscover
  
Categories

Click an icon to go to that category

Helpforce eDiscover contains articles about Microsoft Windows Helpforce eDiscover contains articles about Apple products and MacOS Helpforce eDiscover contains articles about Linux and POSIX operating systems Helpforce eDiscover contains articles about Helpforce Helpforce has a large variety of technical information and articles for you to read Helpforce eDiscover contains articles about databases, MYSQL, SQL Server Oracle Helpforce eDiscover contains articles about Java, JVM and the JRE Helpforce eDiscover contains articles about the QNX operating system Helpforce eDiscover contains articles about Oracle Solaris and Open Solaris Helpforce eDiscover contains articles about RISC OS, Acorn and the BBC Micro Helpforce eDiscover contains articles about Amiga and AmigaOS