35,618 Topics
![]() | |
[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 … | |
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 | |
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 … | |
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. | |
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.*; … | |
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 = … | |
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. | |
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 … | |
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);// … | |
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 … | |
If I have a string. String msg = "I love mickey mouse"; What method can I used to display the string, "mickey"? | |
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 … | |
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> … | |
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 … | |
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.*; … | |
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 … | |
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 … | |
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 … | |
please help me to calculate the distance between each pixels between the images stored in the database | |
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 ... | |
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. /** * */ … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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. | |
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] |
The End.