35,618 Topics
![]() | |
Greetings, I'm slowly building up code to do the following:- [LIST=1] [*]Display TWO selection option boxes (cascading). [*]If the FIRST selection option box changes then reload the jsp using onchange event (not changing the option box value on relaod i.e. not re-running the SQL query). [*]ONLY on initial entry should … | |
Hi, Do u hav any idea on JScrollPane. I want to add listener for scroll ,i.e., I hav to know what & where user has clicked in scrollpane(up arrow, down arrow or in between). Or anything like scroll which would be comfortable for such usage? Pls let me know, if … | |
this my proj.. i need to do a program that will display the names in file.txt into jlist please help me with this... and i need a button for save,add new,cancel,and close.. after the names displayed in the list..when it clicked,,it must display its corresponding address,and contact number...thanks..hope youll help … | |
I can't get this to compile. It is for a homework assignment. The program asks user for 5 test scores and is to display letter grade and average test score. I was able to get the calcAverage method to work, but after adding the determineGrade method, I end up with … | |
The following is the program I wrote, but the result is not what is required exatly. Somebody please point me out to what I am doing wrong. The question: > Write a Java application that reads an integer value between 0 and 100 (inclusive), representing the amount of a purchase … | |
The following piece of code is supposed to add html spaces in place of leading spaces. /** * Finds all leading spaces on each line and replaces it with * an HTML space ( ) * * @param s string containing text to replaced with   * @return the new string … | |
Could someone please why do we say that the syntax of enhanced for loop (for-each) in java in streamlined. Also, my java compiler does not compile programs containing the enhanced for loop. It gives errors like: for(int x:collection) { } ^ ; expected Could someone suggest solutions to this? | |
Hi all, I am fairly new to java, as well as netbeans, but I come from a VB background. I am wanting to build platform independant aps and find the need to cross over into this world of Java, and netbeans (so far) is the best visual ide I have … | |
Part I True/False ( 40 points , 2 point each) 1. If you have created an exception class, you can define other exception classes extending the definition of the exception class you created. 2. Using the mechanism of inheritance, every public member of the class Object can be overridden and/or … | |
Hi I am looking for an open source Java project such as (NotePad, Html Editor... etc) which consist of around 10 classes. I searched within source forge and I don't find a suitable one. I'll use this project in something called (Refactoring) which enhancing the code. This is not a … | |
Dear Friends Hope all of you doing well with Java, I am new in the field of JAVA, But I am highly expecting an answer & your help that from where I can get skill test questions for simple simple code,,,,,,suppose codeing for prime number. Wish you all best. and … | |
Hi all, just a quick question.... is there ever a need to implement an infinite loop? in what situations would it be a good idea to use one (if any)? thanks for your time! | |
I am not able to understand why in the following program it is mentioned in my book: The value of ~a is ANDed with 0x0f (0000 1111) in binary in order to reduce its value to less than 16, so it can be printed by use of the binary array. … | |
hi, i want to send e-mail using jsp. when i run my code no error is shown but the message is not sent to email address. here is the code [code=html] <html> <body> <form method=post action="aa.jsp" > sender<input type=text name=text1><br> Reciever<input type=text name=text2><br> Subject<input type=text name=text3><br> Message<textarea name='area1' rows=5 cols=30> … | |
Dearest One, I have created a web application in JSP & Servlet using Netbeans IDE, i am collecting blob image into a byte[] array and displaying in a table data "<td></td>". when i try to display the image, i am getting an exception getWriter() already called. but when i try … | |
I'm trying to create a program where it takes the first character of the Last name and place the person in a group due to the name. I tried comparing the words to numbers i.e. a=1, s=19, etc. any help at all would be appreciated [code] package GroupAssignment; import System.*; … | |
Hello I'm creating a program where I want a "BeanBox" window for editing an object's properties. I'm thinking something like: [url=http://img301.imageshack.us/img301/5308/javagridtg0.jpg][http://img301.imageshack.us/img301/5308/javagridtg0.jpg][/url] It must retain alot of the functionality that JTable gives: Resizable columns, custom cellrenders & celleditors, min/max column width. So far, so good. I could just use a JTable … | |
pls help!! can u give me some tips how to delete a string or list in a textfile based on this code....i created this code but i dont know how to delete it..pls explain in simple english because im not American..... :D tnx a lot...ur response is very much appreciated... … | |
Hi buddies, I m facing some difficulties while setting system date and time?..Can anyone help to set System date & time? Thanks | |
Hi I need help with this, 1) an algorithm or way to count the levels of an unbalance binary tree (e.g. root has one level 2) to balance this unbalance tree can I have some hints please! or examples greatly appreciated | |
Hi what is the difference between the following two code public int calculate(int x, int level) and public int calculate() int x; int level; Is there a way to make this first method to something like the second method? thanks | |
The question is "Where am I going wrong?" See my embedded comments above code starting point. I can get this to compile, but I can't get this loop through the amort, before I beign building (finishing the loop) I need to see if I can display a single line with … | |
I have made a hospital management system ....its GUI is creating some problems .... I have a container at the top level with Borderlayout ... a combo box is on its north ... and a JPanel is on its center. Combo box contains two items ... Doctor and Patient. the … | |
Hi, I am given assignment to develop simple games on applet. I have problem understanding the function of some abstract class... any1 would like to explain to me? Thx in advance. [CODE] class snakeGame extends Applet implements Runnable { Thread runner; public void init(){} public void start(){} public void stop(){} … | |
hi i want to download a file when i click the particular link.. i have the code for downloading.. but i will be having link for all files in a page.. so i want to identify which link im clicking.. so i want to pass arguments in a link and … | |
I'm pretty sure the answer is a definite no if it is a pointer to a primitive type, but I have created classes called "network", "path", and "node" and I want them all to be able to refer to each other. These are not primitive types, so I hope I … | |
I'm begining a project thats uses this [URL="http://www.supercheapparts.com/detail.jsp?partnum=68798"]ELO 1515L Touch Screen[/URL]. Am I going to have any problems getting a java application to work with this? Are there any additional Librarys or API's I might need? Thanks for the help | |
Hi all, I am wanting to display an image that is aligned so that the centre of a string of text is in line with the centre of the image. I know the image's dimensions and the length of the string, as well as the font I am using to … | |
hi!...this my code,,,and i knew there"s something wrong with it,,,or maybe something is lacking..would you mind to help me?...i need a very quick response..thanks....Godbless you... [COLOR="Green"]import java.io.*; public class Samplefile { public static void main(String args[]) { File fob1 = new File("dede.txt"); RandomAccessFile rob1 = new RandomAccessFile("Hector.txt","rw"); if exists("dede.txt") { … | |
The End.