36,051 Topics
![]() | |
I am working on an application in Java and for part of my plan I would like to have an object (eventually an array of these objects) where I could store two or three (I am not sure yet) varied types of data, for instance... A BufferedImage and a string … | |
Can any one explain me why there is a error in my home.jsp when i try to use commandLink for a link to open messages from the data base.After i use this link all my program crashed now not any component on the page is working. | |
First thanks for the help last time I posted it set me on the right track thanks. Now what I need is to clean up a bit. (this is for the 30 year loan only want to get that to do what I need before creating the same with the … | |
i have got a program to convert a double value to a string. eg==INPUT= 3.65 OUTPUT=three point six five. can anyone give the solution. | |
import java.awt.*; import java.awt.event.*; import java.awt.Color; import javax.swing.*; import java.awt.Frame; import java.awt.geom.*; class BallEntity/*THE BALL CLASS*/ { private int top=0,left=0,height=0,width=0; //getter methods public int getTop() { return top; } public int getLeft() { return left; } public int getHeight() { return height; } public int getWidth() { return width; } … | |
Hello Everyone, This is my first post, so be gentle with me. I am working on an application and I have a need to store about 5 or 6, X and Y coordinate pairs. The values for X and Y are reasonably small integer values (less than 5000). Essentially all … | |
I am trying to deploy a simple web application. I only have 2 files, Entry.html and UpdateDBServlet. I have placed them under a directory in the webapps of tomcat. I can access the entry.html when Tomcat is running, but upon pressing the submit button, the UpdateDBServlet should be called, however, … | |
I am trying to connect from Eclipse to a database in SQL server 2008. However, i am unable to and the following error message is thrown(see attached image). Can somebody help? | |
Hello I am just learning Java. I have some elmentary questions. In my code below there are 3 errors that occur: - How do I declare a string array of size 5 in Java correctly? - How do I cin :p, take in a string array element. Ie, in C++ … | |
Hi! I´m working with multiband TIF files and some of them have double data type. I need to modify some pixels from int (0-255) values to double values; problem is that my original image has int values, so it always rounds new values to int. That´s why I want to … | |
| |
Hello everyone I am making a code to take a binary code and then embed it within the first row of a picture. Then with that another function takes it out of the picture and converts it into decimal. The problem is that I am pretty sure I did it … | |
i made a binary calculator... it calculates two numbers in binary code i'm new in programming so this is what i came up with, it's not the best implementation, but it might help someone known bugs: when u try to make more calculations in one "session" it doesn't clear the … | |
hi, i need activate a div to inform the user when a page is doing something in ajax or a hidden iframe. i need put a div on top of all elements and when the job is done simple remove that div. is there is a way to lock the … | |
please can anyone help my with my project I can't do it in one day the lecturer just asked us to do in this week so if anyone do it for me I will not forget this favor in my entire life . the link of the project [url]http://uploading.com/files/fc1abaa1/ICS%2B102%2B-%2BLab%2BProject.doc/[/url] this … | |
Hi, I am facing an error in Internet Explorer.. ('eNew' is null or not an object)..and my project UI was not getting displayed correctly.. I don't know where the problem is..?? whether with the browser or what...?? Please someone help me..:( Thanks in advance.. Jyothi | |
Hi to all, I have downloaded the j2eesdk-1_4_03-linux.bin and installed in my system.It works good .I can able to start the server .It starts fine. By Using the below command: asadmin start-domain But when i do no how to execute the JMS program. Can any one tell me how to … | |
Hello everyone I am making a code to create a fractal using the turtle class in java. The problem is that the fractal string doesn't seem to be registering through the if and else if statements. What I would like to know is if that is the problem...or something else...Thanks … | |
I'm taking on a new project and was hoping to get some help. I recently helped complete a Java application in which the user enters various inputs (of the type double or string)into text fields. The application then saves these inputs into a text document which is then used for … | |
want a mega project in java for Final Year of Engineering in Computer science | |
Okay, this puzzle the hell out of me. I've got 2 different sets of code, one which works, one which doesn't. They are both very similar, and I can't see what is causing the problem. Code that works: [CODE] public static void main(String[] args) { PropertyConfigurator.configure("log4j.properties"); new Settings().globalSettings(args[0]); logger.info("Read settings … | |
Dear all. Thanks for you kind and generous supporting. From the String s="<hell <world </world </hell"; I wanted push the elements "<hello, <world" into stack, and pop off if current element equal to peek element in stack. Question: Even stack.peek().equals(CURRENT ELEMENT), why can not pop off, but occurs error?? Please … | |
Hi, I am trying to open a url by clicking over the link of JLabel in Windows 7 (32 -bit) but unable to do so. After clicking on the link, it doesn't do anything. Although, it is opening the file successfully.It used to work in XP. The code is as … | |
From following string (without white space) as; String s= "<a><b>e</b></a>"; How can I get the following tokens; <a>,<b>,e,</b>,</a> Thanks for attention! | |
Hi i am beginner to java, My requirement is i need to scan the database changes every second and need to show the changesin the jsp, I have started to write progrmme as below......My major problem was the data was not appending to the jsp but after exiting the while … | |
HI!!!! Recently i got a job... plz suggest me a mini project in java on hibernate, Spring n Struts.. | |
Help...How to Clear textbox in jsp..help | |
Hello, I am trying to override the toString() method and then output an ArrayList to a JTextArea swing component. I will output the list to a gui using an action, but for the method itself, what should the return statement be? I am using return type String on the method, … | |
I have a hyerarchy of aggregation with data from a txt file. I'll try to draw it here [B]Documento[/B] has arraylist of [U]Pagina[/U] [INDENT][B]Pagina [/B]has arraylist of [U]Parrafo[/U][/INDENT] [INDENT][INDENT][B]Parrafo [/B]has arraylist of [U]Frase[/U][/INDENT][/INDENT] [INDENT][INDENT][INDENT][B]Frase [/B]has arraylist of [U]Palabra[/U][/INDENT][/INDENT][/INDENT] [INDENT][INDENT][INDENT][INDENT][B]Palabra [/B]has arraylist of [U]basicElemento[/U][/INDENT][/INDENT][/INDENT][/INDENT] To construct [U]Documento[/U], I only have to … | |
I have writen a code for adding (math +) two arrays. Actually, I have two arrays of a class I have also designed, that has two attributess, one of wich is an integer. I would like to sum (add element by element) one array on the other by adding the … | |
Hi there, I'm a Java newbie, but have experience in JavaScript programming for over half a year. I would like to ask if there and any web site where people share their Java source code so that I can read and learn how they program. Blogs where they share tutorials … | |
<SCRIPT language="javascript"> function box(){ if (document.getElementById('adminUserName').value == " "){ alert("UserName is Empty"); }else{ alert("UserName Successfully Save"); } } </script> ===================================== <td>User Name:</td> <td colspan="2"> <div id="adminUserName"> <html:text property="adminUserName"/> </div> </td> | |
I have an entire program wrote, but I'm having problems with the getMethod. I need a get method which will receive the position of the variable (1,2, or 3) and will then return the variable at that position. Here's an example of the call to the method: System.out.println(dog.getFido(2)); I've tried … | |
Hey to everyone out there. I am new to this forum and seeking assistance with a java program assignment. if anyone can help let me know. The program is completed all I have left is to produce accurate output of a students grade. Here is the code: //////////////////////////////////////////////////////////////// import javax.swing.JOptionPane; … | |
Hello, i hope all of you are fine ... i need some source about telecom billing system .... | |
Hi to all, I am new to JMS concept in java.I have downloaded a example jms program in the site. So i have mention the classpath the java path.The jms program is compiled fine and class file also gernerated. The problem is when i run the normal java program or … | |
I dont know how to connect the ms access database to the website.can anyone help me out? | |
Ok, I've never seen a while loop like this. Please can someone help explain this: [CODE]CipherInputStream cis = new CipherInputStream(new FileInputStream(new File("plaintext.txt")),cipher); FileOutputStream fos = new FileOutputStream(new File("ciphertext.txt")); byte[] cipherTextBytes = new byte[8]; int i = 0; while((i=cis.read(cipherTextBytes))!= -1) { fos.write(cipherTextBytes,0,i); }[/CODE] Ignore the whole CipherInputStream object if you don't … | |
I have this code in a C# application that is automating a Web app. I want to execute the javascript function and would like to SEE the results, however when running the app I get an exception "Specified cast is not valid." on line 2 below. mshtml.IHTMLDocument2 doc2 = (mshtml.IHTMLDocument2)ie.Document; … | |
Hi, I can upload my files outside of the WEB-INF folder and to the path specified but am unable to upload them into the WEB-INF folder. I hope someone can point me in the right direction. Thanks!! IDE : Netbeans Server : Tomacat [CODE] public void doPost(HttpServletRequest request, HttpServletResponse response) … | |
Hi.. i'm new to JSP. i'm currentli tryin to compare two tables in mysql and reflect the difference. i used the code below but when i display it..nothing is being reflected.Please do help and guide me.Thank you. String sql = "Select * from examinerdb where NOT EXISTS(SELECT * from dbexaminer … | |
Hi, I have executed the sample package program and it executes fine in some conditions.I have a doubt in my program . My directory structure is:/javaprograms/world/HelloWorld.java A folder name :world A java filename:HelloWorld.java [code] package world; import java.io.*; import java.util.*; public class HelloWorld{ public static void main(String args[])throws IOException{ System.out.println("Package … | |
go0d day every0ne.. ..Can you please help me create a 'Picture Puzzle' using GUI.. its just like playing a picture puzzle like we d0, it just like this.. it has a pieces of scrambled pictures that you will arrange it.. it has a 0ne empty block to be able for … | |
hi, i have a question which feels like it should be very easy but my collegues have had some difficult explaining the logic to me. The thing is, I have a dropdown as such, [CODE=jsp] <ui:dropDown binding=..... tabIndex="5"/> [/CODE] and in the jsp page, i want to set it to … | |
[TEX]hey there, can you help me with something. I'm supposed to get data from a single text file and use it on 3 different jTextField. Then if I hit a save button, the data from the textfields will overwrite the existing data of the text file. Unfortunately, I can't make, … | |
hello every One.. ..can any0ne help me create a 'picture puzzle' using GUI.. OOP'. ..ur answerz r highLy apPrecited.. thankz have a nice day ahead' | |
I need to parse XML documents without parsing libraries, that is, just create one of myself. E.g. input: [CODE]<aa><bb>H</bb></aa>[/CODE] I have to get rid of tags and show, if any, errors(mismatching tag etc). Any suggestion please. Thanks in advance!! | |
Hi all, I need to do a translation using 2D arrays for my Superposition algorithm. Translation: I plan to use the CA(Alpha carbon) as my invariant point which is usually the 2nd line in the pdb.txt file. So how go about doing that? Must I use an orthogonal matrix? Or … | |
Hi what i am trying to do here is highlight a particular cell in a table using a custom cell renderer. And by the way this is my first cell renderer so i am really not sure what to do! ok now here is the renderer I have written and … | |
Hi, I am a final Year Student My group had selected the final year project "Online Voting System using Digital Signature". We are planning to do in JSP, now i want to know which Database should we take as a BackEnd ? Please help me.............. |
The End.