35,620 Topics
![]() | |
Hello, I am creating a little webpage that allows a person to chose between 3 different ways in which they can query for results (either id, date, or symbol). Everything works fine if choosing id and entering a value to search for, but if date or symbol is chosen then … | |
Hello, I am a noob in Java, and I am stumped with these 2 exercises. These are probably extremely simple for you all, so any kind of help with writing the program would be well-appreciated. 1. Write a program which simulates inflation of a balloon (2-dimensional circular shape starting from … | |
hi, i have created 3 reports in myeclipse blue 7.1 as customer_sale cutomer_region & customer_year. i want to create a jsp page in myeclipse blue 7.1. In that jsp page i have a drop down menu. now i want to include the names of all these reports mentioned above in … | |
Hi, I created a sample frame in Java and connected with the database and when i converted to exe file the database is not accessible ..can any1 suggest me is it possible to access database in exe else wat method do i need to implement in order to acheive this. | |
Hello, I am very new to JSP but I am familiar with Java. I am having an issue with some error messages I don't understand. when I use this syntax: [code=jsp] <jsp:useBean id="search" class="search.SecSearchParams" scope="request"> <jsp:setProperty name="search" property="*"/> </jsp:useBean> [/code] I get this error: The value for the useBean class … | |
Hi everybody, So i am totally new to the programming world but I have manage so far to learn how to connect to mysql database to Java and execute a simple query. However, I would like to know if there's a way I could make this query to look like … | |
i have problem that in showpane Modify and Delete pane3 eventhough clicked delete button for the action but the combobox "Select Book" doesnt update in the list that the deleted book still exist. What happen ? any guide ? thx in advance . [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import … | |
Hi. I am developing an e-mail application for lab works. I am using servlets mainly along with JSP and using HTML with CSS. I have two questions.Please tell me the solutions. Its important and its urgent. 1. As usual I give the provision for attachments.I wrote code for uploading files … | |
hello . I am trying to simulate the MD5 hashing algo. My code: [CODE] private void jButton1MouseClicked(java.awt.event.MouseEvent evt) { try { MessageDigest object = MessageDigest.getInstance("MD5"); String str = jTextField1.getText(); byte arr [] = str.getBytes(); object.update(arr);//update the md5 object with the message arr = object.digest();//calculate the digest str = IntegerToHex(arr);//convert to … | |
Hello guys, I am converting my servlet page into mvc form and struck at perticular point. I am using DAO class and VO class for database related tasks.Here I am sending u a little bit of my code segments so taht u can understand my problem. In DAO class:- //I … | |
hi, everyone i'm new in java programming i need help in my simple project i have list contain names of persons from db .. i finished it using access ... the problem that i wanna to 'when i select any name of this two window open and chat between each … | |
I getting an error from a code that I have been working on. The error is Exception in thread "main" java.util.InputMismatchException at java.util.Scanner.throwFor(Unknown Source) at java.util.Scanner.next(Unknown Source) at java.util.Scanner.nextInt(Unknown Source) at java.util.Scanner.nextInt(Unknown Source) at sample2.AdditionalMethods.main(AdditionalMethods.java:57) My code for the information is package sample2; public class shape { private String Name; … | |
Hi i'm just start to learn jsp. now i got 1 task to complete. I want to create navigation in jsp by recursively. my case is retrieve from database and list in jsp. display all organization name in jsp from mysql. Organization ABC CDE EFG once they click any of … | |
Hi, I am trying to create a mortgage calculator per an assignment and have it working ALMOST perfectly. I just need to add a loop to make it pause when the screen is filled and wait for an ENTER until the loan balance is 0. Can someone help me? Here … | |
I am having trouble printing onto a JPanel. I am able to print any string that i want to. here my code: [CODE]import javax.swing.JFrame; import java.awt.BorderLayout; import javax.swing.JLabel; public class TestDraw { public static void main(String[] args) { final int WINDOW_WIDTH = 300, WINDOW_HEIGHT = 300; DrawPanel panel = new … | |
Hi guys, I just can't figure out how to traverse trough this heap. It's a 4-heap and I'm trying to implement a toString method for it. It should return a string and must be recursive. Like pre-order traversal. I'm lost with it. [CODE=java]public String toString(int index,String out) { int child … | |
I'm trying to install java on my home laptop and it isn't working, i followed all the steps outlined by my lecturer but the javac filename isn't executing properly. Is it setup right by me?? In environmental variables PATH = C:\jre1.6.0_07\bin;C:\Program Files\PC Connectivity Solution\;C:\watcom-1.3\binnt;C:\watcom-1.3\binw;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Metrowerks\CodeWarrior\Bin;C:\Program Files\Metrowerks\CodeWarrior\Other Metrowerks Tools\Command Line Tools;C:\Program … | |
Hi, I am writing a jsp app. Thing is I cannot get the "hhello0" String in the destroy method to echo after the thread is stopped, fourth line from the bottom. Thanx already :S [code=java] package Transaction; import bean.*; import dealer.DealerDetails; import java.io.*; import java.sql.SQLException; import java.util.*; import java.util.logging.Level; import … | |
Hello friends. I'm working on a program to sort a list object using toArray, Arrays.sort, and Arrays.asList. The problem asks that I then apply Collections.binarySearch directly to the list object. I know what the problem is (which I have stated through comments in my code) but I don't know how … | |
1. Develop a Java application that will determine the gross pay for each of three employees. The company pays straight time for the first 40 hours worked by each employee and time and a half for all hours worked in excess of 40 hours. You are given a list of … | |
Hi, I have Eclipse 3.2, Tomcat 6, openldap directory and Jdk 6 Installed on my machine. I have ldap and Tomcat plugins installed in Eclipse. When I try to create a new connection, I am able to establish a connection with tomcat, but when I try to browse the ldap … | |
Hi everyone, I need to parse a text file based on a few delimiters. There are 2 problems I am having. I'll start with the first problem. I have no problem using the split () method to parse text by a single delimiter. For example: [CODE]String[] str = stringRead.split(":");[/CODE] However, … | |
i'm still working on the property to let program. and it sort of works... its just when the user selects to delete a line from it it will delete it fine, but it will then duplicate all the items that where previously in it... EG: My File looks like this … | |
Hi, I am calling the jsp page using httpUrlConnection.openConnection. The Jsp page displays the content dynamically by calling the javascript function. I am not able fetch the content of the jsp , when using the httpUrlConnection.openConnection, it displays the entire source of the page. Please advice . Thanks & Regards, … | |
i need help on how to detect camera on USB if connected or no thanks in advance | |
Hi everyone! Im doing a desktop sharing project (net cafe) as final project in my institute. I need to handle another station through a home network. * Sharing desktop. * remotely shutdown. * sending a message. * retrieve a message. * remotely restart. So please help me to fine java … | |
I am trying to call the Oracle stored procedure in java. I have given below,stored procedure and java method which calls the stored procedure and returns the result set. I am getting the error Invalid column type :1111 or invalid column index. Can anyone tell me whats wrong in the … | |
I have a .dat file with many lines. I need to overwrite a certain line. Let's just say I have to overwrite the 5th line of the dat file. How would I set the RandomAccessFile to overwrite at line 5 (or any line in general)? (P.S.: each line has 10 … | |
I have hit a stone wall this week. I have tried numeous methods to get a functioning array into this code, and get the code to call for a total value. Now I have changed code around untik I no longer have compile errors, but now all of my values … | |
Howdy, I've been having problems letting the computer figure out my answer to my math riddle. Im given a multiplication problem to find the answer to the following problem: 7xx x 4x _____ xxxx0 In this problem, every number from 0-9 is used only once. I found the answer the … | |
Hi, I am using JFreechart to create a graph of some data that i have produced using a program i have written. The problem that i have is that i have to manually input the data into the dataset to create the graph.Is it possible to generate the data that … | |
I'm using netbeans and I have a problem. I'm using a card layout to flip between multiple windows. Two of these windows are wider than the others, and this cannot really be helped. Ideally, it would be best to design each window so that they are all the same size, … | |
Hi All, As you've probably read a million times, I am a newbie to java programming and need some help with uni assignment. I need to know how to numerical update a Textarea by clicking on a button. This would be a lot simplier if I could do it one … | |
I am an infant attempting to learn to crawl through Java. I have been learning for just over four weeks now, and have been doing relatively well. However, I am now on arrays, and find myself not only floundering, but drowning! My text seems extremely difficult to understand, and I … | |
Hey all, My program creates panels with textfields. The actual goal is to draw lines between the textfields. But i'm stuck way before that stage. I can draw lines with the button connection lines and you click on two points and it draws a line. The 2 problems I have … | |
Hey , for my class I have to create an Infinite Integer class which holds can hold a really, really large integer using a doubly linked list. It holds 3 integers per node, so 5,697,343 would be held like [5] [697] [343]. I implemented my constructor and toString method fine, … | |
Hello Everybody I want to use Gzip compression in my web application which is under construction. I am developing it in Struts and I want to know how to use Gzip in Struts. As Gzip concept is very new for me, it will be better if a little detailed explanation … | |
I am doing project in linux platform, I have written codings in shell script & I want to design interface for it in JAVA Can I opt Java(Swings) as Front end for shell script, which is my back end..... Please help as quickly as possible.............I am waiting for ur reply.......... … | |
How r u every body. I have some qoustions: 1)What is the difference between an instance data field and a static data field?? 2) Also I have assignment and i wont to add txt on text area and when add new one txt it must appear in next line of … | |
I am getting further with my Property to let program, but i need help working out the above error, it happens when the user selects the option to delete a property from the text file. The user is supposed to be able to enter in a number and that deletes … | |
I've got to make a Property To Let program that can allow the user to add, view or delete property details to and from a text file. I have done the add and view part but i am having trouble getting the delete working. I've managed to get it to … | |
I am a EE student who took some C++ classes and is not trying to learn Java. I like to write my code in Notebook++ and want to know how to run in from the Cmd Promt. I was using Netbean, but I do not like all the code it … | |
I have a program to write in which I need to create the following fractal pattern using recursion: [img]http://img19.imageshack.us/img19/7456/73284540.png[/img] ^image link My professor said two recursive calls are needed, and 2 parameters are also needed. One parameter indicates the indentation of the leftmost line, while the other indicates the number … | |
Pls assist me in graph programming in java, how to draw graphs, scale graph and other stuffs of graph | |
Write a class, TimedInstantiation, which will have a toString method which returns a string of the following form: I was instantiated on 12 June 2008, 35 seconds after the previous instantiation of me. if there have been previous instantiations, but if not (that is, if we are dealing with the … | |
When I try to print data to a file, I am getting an error dealing with security saying that I don't have permission to write to a file. Can anyone help me out? Here is the code //import packages import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.io.*; import java.util.*; import … | |
I the program I wish to run is a search for a number in 4 threads. Its working out fine and here is the code. [CODE] import java.lang.Math; import java.lang.Thread; public class NumberFinder { public static void main(String args[]) { int target = (int) (Math.random()*1000); System.out.println("The number is " + … | |
Hi, I want to learn spring,strut,hibernate... where i get simple and good tutorial for beginners. which framework /tools/IDE to download. or books .. what other basic language needed to learn like to learn c++ background of c please give me all details?? Thank you | |
I am having a difficult time with this one line of code for my homework that is due Sun.: Modify the Inventory5 Program by adding a button to the GUI that allows the user to move to the first item, the previous item, the next item, and the last item … |
The End.