35,618 Topics

Member Avatar for
Member Avatar for bert2020

[url]http://www.deitel.com/books/jHTP5/jHTP5_faq.html#compile%20servlet[/url] Go here to get a better explaintion than my simple answer. I had this error and I looked all over online in many many forums. I then went back to my textbooks website which gave me the above page. You can do two things When compiling the fiile type …

Member Avatar for satija_tarun
0
254
Member Avatar for Rajesh.n84

hi! This is Rajesh new java developer. i need help from our community thanks (in advance) for ur help PROBLEM iam developing application in AWT when i click PRINT button i need to get printout from printer please help me providing code or idea Have a nice day

Member Avatar for Mr.Antony
0
936
Member Avatar for Bewitched

I got this to run but it will not display the final result. It ask for C or F then the temp degree but will not display the conversion. The process just completes. Any ideas? I am new here.... Thanks My project::-/ [CODE]import javax.swing.JOptionPane; public class Assign8_Cheshire { public static …

Member Avatar for pi_lord12
0
179
Member Avatar for smoothe19

How to draw an image/graphics on a specific panel, or in anther word, if I have a JPanel blah = new JPanel() and JPanel moreBlah = new JPanel(); I want the paint function only to draw stuff on blah, not on moreBlah.

Member Avatar for NormR1
0
63
Member Avatar for SashaC

I am creating a GUI calculator. When I enter amounts and press submit, negative infinity appears in the monthly payment area instead of the dollar amount. I'm not sure what is causing the problem. My code consist of three files: the GUI, calculation, and text file. GUI [code] import java.awt.*; …

Member Avatar for NormR1
0
237
Member Avatar for interjuan

Hi again! Pls some one help me to find out what is the problem with this code.... [CODE]import java.io.*; import java.net.*; public class NewClass2 { public static void main (String args[]) { try { // Construct data // Send data String data="Something"; URL url = new URL("http://www.google.co.uk/"); URLConnection conn = …

Member Avatar for NormR1
0
130
Member Avatar for roishtraifler

Hello, im trying to write to an external program and the inputs and outputs works fine for the first time that im printing the stdin. After this time the program look like it stuck. Help Please.

Member Avatar for NormR1
0
147
Member Avatar for ans025

Hello I am very new to Java and I really don't know exactly what I am doing. I know a little bit of other programming languages so I'm trying my best to figure it out for myself but I am supposed to: [B]Write a Java Application which will read a …

Member Avatar for NormR1
0
1K
Member Avatar for abbyo

I was given a font finder program, but I need to resize the applet... any suggestions on where and what code is needed to fit the applet to a specific size? If not, is there a setting in eclipse that will work? [CODE] public Dimension getPreferredSize() { return new Dimension(800,800);// …

Member Avatar for abbyo
0
94
Member Avatar for java_programmer

Could anyone please explain what is Idempotent method in Java? After google, what I found about this is [B]Idempotent methods are methods, which are written in such a way that repeated calls to the same method with the same arguments yield same results[/B]. And am not getting any example to …

Member Avatar for java_programmer
0
328
Member Avatar for makan007

If I have a string. String msg = "I love mickey mouse"; What method can I used to display the string, "mickey"?

Member Avatar for java_programmer
0
136
Member Avatar for yuvi2288

hello dudes, kindly help me... Example: A new Facebook account is created... once the user creates his profile then automatically custom URL is generated for him... (ie)niranjan kumar facebook searched in google, here v can get by clicking the 2nd link as shown in the URL [url]http://www.facebook.com/niranvk[/url] ... now we …

Member Avatar for ~s.o.s~
0
76
Member Avatar for yuvi2288

Hi, I am trying to use ajax in my webpage. I got the values from the database and displayed as links as below. param1 param2 param3 I used the following code to call a javascript function func() with dynamic parameter param in jsp. out.println("<a href='#' onclick='javascript:func('"+ param +"')'>"+ param +"</a> …

Member Avatar for ~s.o.s~
0
76
Member Avatar for CheeseDonkey

This is making me angry. I keep getting a "this method must return a result of type int" error message, but obviously I have a return statement. This is a program that is supposed to perform a sequential search for a string index. [code=java] public static int nameSearch(String[] inOrder, String …

Member Avatar for JamesCherrill
0
185
Member Avatar for sasidhar1229

I am doing servlet program. It is working when I run it as a GUI appliction. But when I run it as a web application it arises java.lang.NoClassDefFoundError: java/lang/StringBuilder at SDBApp.service(SDBApp.java:14)please help me. Here is my code. SDBApp.java [code]/*servlet which takes care of inserting rows in Data Base*/ import javax.servlet.*; …

Member Avatar for Amit Tomar
0
554
Member Avatar for djenoe

Trying to get this code to work (bit of guidance and help would make a difference) explanations only are fine.. main method doesn't accept arrayProperty() import java.util.*; class Property { private String ID; private String description; private String location; private double weeklyRR; private char status ; private boolean visibility; public …

Member Avatar for shrekting
0
124
Member Avatar for Dzero

I cannot figure out how to get my icon to display, or get the GUI to flip through my array object. i have many errors that i cannot solve. i hope some one can help me. here is my code. [code] import javax.swing.JFrame;//imports java's JFrame component //----------------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------------- //Main Class …

Member Avatar for NormR1
0
219
Member Avatar for yuvi2288

hi pals, here i have the API key and Security key .... but am not able to create the session key values... i have attached my coding here... [code]<% String username = request.getParameter("username"); String password = request.getParameter("password"); FriendsterClient fc = new FriendsterClient("sessionkey", "7c253b64f5f3aa1d84b7c825ab2327e8", "3cdebc2f794af44d173a9046d12775cc"); XPath xpath = XPathFactory.newInstance().newXPath(); int uid …

0
59
Member Avatar for aarthi87

please help me to calculate the distance between each pixels between the images stored in the database

Member Avatar for JamesCherrill
0
81
Member Avatar for kanjali

Hi, Iam new to java as iam working for dotnet C#. Can any body tell me the software to convert java code to C#. Please, iam in very much need for it. Thanks in advance, Anjali ...

Member Avatar for masijade
0
307
Member Avatar for ashwiniku

hi, there are 2 different database 1 database have the list of all the users and another DB only have the details of users who are logged in which is production DB. i have writthen below code but i am stuck over here plese do the needful. /** * */ …

Member Avatar for musthafa.aj
0
151
Member Avatar for daniiii

Hi guys, I am trying to create a cell renderer that will set a background imagefor cells in a JTable I have created, depending on the data inside each cell. I think I will be able to do the rest, but for now I just want to be able to …

Member Avatar for daniiii
0
89
Member Avatar for rroky

Please any one can help at this problem I have with javac. I have download the java jdk1.5.0_15 at least 20 times in three (3) machins and it do not compile. Actualy it can not read the file. Javac is installed and is on bin, when I type javac it …

Member Avatar for divya bangroo
0
1K
Member Avatar for yuvi2288

Hi experts, This is the snippet for html file <li><a href="#">Electronics</a> <ul> <li><a href="">Mobile Phones</a></li> <li><a href="">Television</a></li> <li><a href="">Air Conditioners</a></li> <li><a href="">Photo & Optics</a></li> <li><a href="">Audio Systems</a></li> </ul> </li> And there is one jsp file called electronics.jsp.. If i click any one of the above, it should be go to …

Member Avatar for musthafa.aj
0
87
Member Avatar for yuvi2288

Hi experts, I am trying to use ajax in my webpage. I got the values from the database and displayed as links as below. param1 param2 param3 I used the following code to call a javascript function func() with dynamic parameter param in jsp. out.println("<a href='#' onclick='javascript:func('"+ param +"')'>"+ param …

Member Avatar for musthafa.aj
0
69
Member Avatar for dowen

why when i add private int yearpublished; my program has an error what is my mistake can you please help to fix it ------------------------------------------------------ this is the error that came out C:\goh>javac libmainsys.java libmainsys.java:19: ';' expected yearpublished = yrpub ^ libmainsys.java:28: cannot resolve symbol symbol : variable yearpublish location: class …

Member Avatar for masijade
0
381
Member Avatar for vgkarthi

I have a new requirement telling me to roll out the log every 8 hours.. I mean.. a new log file must be created every 8 hours.. taking back up of previous logs Is is possible in log4j.prop As far i have searched in Internet, rolling out every 1 hour …

0
98
Member Avatar for jiraiya

Hi everyone, I have a program that displays Chinese and Japanese characters. I've written the program inside Netbeans and it works fine. But when I use the program as an executable jar file, as built in the dist folder by Netbeans, the Chinese and Japanese characters are displayed as nonsense. …

Member Avatar for EnochEnglish
0
431
Member Avatar for Hunter2379

Ok so i made a chat program that works on Lan. Now i want to make it work through the internet. I can get the internet ip address. Something like 99.144.21.93. SO in the socket i make the ip address of the server/client destination the 99.144.21.93. It doesn't work though.

Member Avatar for NormR1
0
92
Member Avatar for abbyo

Any suggestions on how to get fonts from an external drive rather than on my local drive. Here is what I use now: [CODE] GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); Font[] fonts = ge.getAllFonts(); // Get the fonts for (Font f : fonts) { System.out.println(f.getFontName()); }[/CODE]

Member Avatar for CrazyDieter
0
80

The End.