36,051 Topics

Member Avatar for
Member Avatar for countrygirl1970

I have a question I am writing this program for class where all of the output goes into one JOptionPane.showMessageDialog for instance I have the The sub total price displayes, the sales tax displayed, and the Grand total displayed in this I also want to display a message if the …

Member Avatar for stultuske
0
97
Member Avatar for realnsleo

hey there, could someone please tell me how to align the cursor to go to the left when someone clicks inside the textfield

Member Avatar for stultuske
0
104
Member Avatar for JavaNewbie07

I need help figuring out how to put the following logic into code: I have a text file that I am reading from, I have been able to code so that it reads four seperate columns; now I need to make one of the columns read (into an array) the …

Member Avatar for lucky1981_iway
0
115
Member Avatar for JavaNewbie07

Hello, I have the following line that prints a year and the matching fruit consumption; however I have 35 elements in each array that this line is got from. I need help creating a loop that will parse rhe arrays and return the figure for each year. //Display for one …

Member Avatar for new_2_java
0
98
Member Avatar for jake_ryan

<div id="sidebar"> <logic:present name="userVO"> <logic:iterate id="element" name="userVO" property="features" indexId="i"> [B]<a href="<bean:write name="userVO" property='<%= "featuresLinks["+ i +"]" %>' />" class="sidebar"> <html:image src="<bean:write name="userV[I][U]O[/U][/I]" property='<%= "imagePaths["+ i +"]" %>' />"/> </a> [/B] </logic:iterate> </logic:present> <version data="11.01.04svp1"><sysinfo data=""></sysinfo></version> </div> I am trying to place a link with an image. However, I am getting …

Member Avatar for jwenting
0
81
Member Avatar for suigion

Hi all, I would like to know how to call a JSP function when the user click button. In JavaScript, I create a functon call AddUser(), the I call the function using OnSubmit. How do I do this in JSP?? Thanks in advance... :)

Member Avatar for jwenting
0
109
Member Avatar for piotrus

if i redeploy my webapp and try to access a protected page, it will show the login screen but after clicking login it just reloads the login page instead of sending me to the protected page. if i reload the login page it will give me access to the page …

Member Avatar for jwenting
0
269
Member Avatar for rugae

I would like to make so that when you have a int and prompting user to enter some number for calculations... if the number entered is larger than a 10digits, my program wouldn't just crash or if the user enters a string... I havn't be taught any error catching stuff …

Member Avatar for stultuske
0
148
Member Avatar for honeysmiles

[COLOR=#000000]Build a hash table using chaining as the collision resoultion technique. Insertions into the hash table will correspond to declarations of variables and values in a program, searches will be requests for the value of a variable. Some variables will be local and have a narrow scope while some variables …

Member Avatar for Ancient Dragon
0
170
Member Avatar for realnsleo

hi there, how can i display an error message in java and stop compile program at that point of the error?

Member Avatar for stultuske
0
87
Member Avatar for Rikardsen02754

I only need help with 1 of the programs now. It says to list all the postive integers less than 400 that are divisible by 3

Member Avatar for fraogongi
0
99
Member Avatar for aruna_k_2006

hi everyone, i am doing a project .............i have a problem 1.when i press F4 key i need to get a pop-up window and i need to search names in that poup window . For Example : All the client names start with A 2.when user types A & preees …

Member Avatar for vinod_javas
0
88
Member Avatar for saurav

Hi All, I have been loitering around the forums for last three weeks........specially in Java and JSP forums. But neva come to this forum.So, let me introduce myself. I am Saurav........i am in UK now.........i have been in software development for past 22 months. I want to learn new things …

Member Avatar for christina>you
0
51
Member Avatar for Shakejuhn

i have a problem and i would like to knwo if some one can explain the directions in a simpler form because i have no idea what i am really supposed to do like how many classes i need if i need any and what should go in main. the …

Member Avatar for alpha_foobar
0
201
Member Avatar for new_2_java

Hi all, I would like to know what is the difference between OutputStream and BufferedWriter objects? Can I use them interchangeabally? Reason is because I created a job that has to run every, lets say, 5 minutes. The problem is that when I run my java program manually from the …

Member Avatar for new_2_java
0
151
Member Avatar for realnsleo

okay..could someone tell me how to check if someone put in a float value in a text field. and if not how can i generate a dialogue box with an error. This is how it looks [code]marks1 = Float.parseFloat(tf1.getText().trim());[/code] i stored the contents of the textfield into marks1. How can …

Member Avatar for realnapster
0
72
Member Avatar for bondo

Dear god. this is driving me crazy. I'm working on an assignment involving inheritence, multiple classes, etc. I'm stuck at one stupid part. I have to write a toString method that formats the text. Is there a way to return a string with formatted text? I know about the printf …

Member Avatar for bondo
0
299
Member Avatar for realnsleo

hi people...please help me with this..i writing a program with textfields that a user is supposed to put data in, how can i create an error message and/or a beep to pop up when the user has not entered a value in a textfield..

Member Avatar for peter_budo
0
102
Member Avatar for Casperjames

[CODE]/** * Finds the angles of A, B, and C when given the sides. * Caleb Hess * 4/27/07 */ public class Triangle { /** *@param a the length of a for the triangle *@param b the length of b for the triangle *@param c the length of c for …

Member Avatar for Casperjames
0
240
Member Avatar for bmxer84

In my program I get input from the user (type of topping for a pizza) then if there aren't enough left I have to let them change or cancel that topping. I do this with a for loop, my question is: how do I make it so it breaks out …

Member Avatar for Fungus1487
0
160
Member Avatar for sonicvalley

i need java JRE to runa program but i cant seem to get it installed. i always get this weird error. any help? thanks

Member Avatar for sonicvalley
0
72
Member Avatar for n3zor

An island has two kinds of inhabitants: [I]Knights[/I]: Always tell the truth [I]Knaves[/I]: Always Lie You encounter two people A and B. You ask the user to enter what A and B say. Your program should output the conclusions (if possible) about the identities of A and B. For example …

Member Avatar for jwenting
0
96
Member Avatar for varunrathi

hello friends, i want to learn java can anyone provide any link to a tutorial or anything else. thank you

Member Avatar for jwenting
0
80
Member Avatar for inzomniac

hi everyone. I'm on the need of using serial ports with a java application. The last time I checked, Sun offered Java Comm as a solution; but now they removed the Api from their site (I'm using winXP). There's an RXTX package as an alternative, but I haven't seen any …

Member Avatar for lucky1981_iway
0
181
Member Avatar for thekashyap

A friend in my company recently attended a training titled "LSSD in Java" (LSSD = Large Scale Software Development). The trainer is a guy whom all of us (who attended his other trainings) consider a HUGE SHOT (big shot isn't big enough). Now after 2 days of training guess what …

Member Avatar for EnderX
0
166
Member Avatar for dami06

Can someone please help me out here.. I am trying to convert a .xml file to .dtd file.. I got this .xml file from google. <?xml version="1.0"?> <book> <person> <first>Kiran</first> <last>Pai</last> <age>22</age> </person> <person> <first>Bill</first> <last>Gates</last> <age>46</age> </person> <person> <first>Steve</first> <last>Jobs</last> <age>40</age> </person> </book> Please could you help me out …

Member Avatar for ausgezeichnete
0
909
Member Avatar for nizam147

I Am Trying To Run A Hello World Application Which I Downloaded From The Net. But I Am Getting An Error Saying That Driver Class Not Found Where I Am Specifying The Driver Name As Follows 'com.mysql.jdbc.driver' Which Is Not Recognising Can Anyone Help In Running My First Hibernate Applciation. …

Member Avatar for lucky1981_iway
0
117
Member Avatar for grifflyn

Hi I have written this program to find out how many vowels are in a sentance. What i need to do now is is capitalise the vowels and put a star next to the capital showing how many times that vowel was used in the sentance. so that the output …

Member Avatar for nikkibaby1979
0
177
Member Avatar for longihale

Okay I am trying to get an array (a primitive integer array) called a1 which contains integers. I want to return an ArrayList that has the entries of a1? This should be really simple, but it is just one of those days.... like [CODE] public static ? formlist(//a1 is sent …

Member Avatar for lucky1981_iway
0
95
Member Avatar for akhilesh.nitt

hi i want to implement auto filter for a column of an excel sheet .. can anybody plz help me.. plz help me.. thanks in advance.. :pretty: :pretty:

0
62
Member Avatar for Dhanesh.M

I need some help about ,how to naviagte from one form to another on a button click using java swing:-/

Member Avatar for Dhanesh.M
0
84
Member Avatar for farhat
Member Avatar for joshSCH
0
5
Member Avatar for push

if i am run jsp from my system with tomcat server for one project. and if my friend run other jsp from same tomact server from ther system. My QUESTION IS how can link those 2 jsp file under same project folder but in different system....Please help me for this. …

Member Avatar for rgtaylor
0
81
Member Avatar for teckid1991

Im working on this project for my class and what to make a chat thing for the network of computers in the room... i have everything set up correctly im just having trouble figureing out how to brodcast to all users. I assumed using a Vector and Threads would work …

0
73
Member Avatar for pplteo

i need make this program run..anyone can help me? [code=java] import java.util.*; import java.awt.*; import java.net.URL; class Prim extends CompleteEuclideanGraph { private ArrayList remainingPoints; //points not on MST private ArrayList completedPoints; //points on MST private Point[] chosen; //array of chosen points for each step private int bpoint = -1; //pointer …

Member Avatar for thekashyap
0
91
Member Avatar for ajay_tabbu

hello friends i have write a code(j2me) for mobile game my code is build but on run i got error message: Unable to create MIDlet Jeep.java java.lang.ClassNotFoundException: Jeep/java at com.sun.midp.midlet.MIDletState.createMIDlet(+29) at com.sun.midp.midlet.Selector.run(+22) Execution completed. 3610981 bytecodes executed 7309 thread switches 1647 classes in the system (including system classes) 18046 dynamic …

Member Avatar for ~s.o.s~
0
111
Member Avatar for pavani2006

1. Write a java program using following details. You are free to make all necessary assumptions. All the assumptions made should be documented. There are four scientists who need to be ordered according to their smartness (smartest to least smart). There is a text file “smart.txt” in the following format: …

Member Avatar for ~s.o.s~
0
258
Member Avatar for bmxer84

I have to create a program for class and I am stuck. Basically, the problem is that we need the manager to enter in the number of pizza toppings on hand at the beginning of the day. Then, when a customer orders a pizza with toppings (ie. small pizza with …

Member Avatar for bmxer84
0
114
Member Avatar for tripuraneni
Member Avatar for Phaelax
0
306
Member Avatar for invinate

Hi, i'm reading from a URL that has cyrillic content, and when i try to display it, it shows lots of questions marks or sometimes other strange letters. how do i make it work correctly ?

Member Avatar for Phaelax
0
78
Member Avatar for varunb4u_05

Can any body help me to solve the problem of How to get integer values using Jtable from database

Member Avatar for varunb4u_05
0
72
Member Avatar for hassanmushtaq

hican someone tell me how can i run my j2me application in PocketPC. i tried it but it gives unnatural result. as it work ok in nokia 9300. and also tell me the emulators (open source) that easily integrate in netbean 5.5 having jdk 1.5. plz give me links for …

Member Avatar for Ancient Dragon
0
74
Member Avatar for qazwsx
Member Avatar for push

here 2 of us doing a same project, with tomcat 4.how to ling jsp page from my system to my friends system 4 accesing data from that page......please suggest me the solutions..............

Member Avatar for masijade
0
79
Member Avatar for push

Please any will u help me..... what is the need of using application scope at the any project for jsp. please give me examples of using application scope. and how to use taglib ..........please give examples which i can run and learn..........please...................................

Member Avatar for rgtaylor
0
106
Member Avatar for Joncamp

I have RedHat Fedora 4/5/6, they all have IBM Java 1.4 which doesn't do GUI correctly, and is not supported in FireFox browser for Applets. Anybody know how to setup Sun Java 5 and FireFox browser Java on Red Hat Fedora 4/5/6? Thanks

Member Avatar for jwenting
0
56
Member Avatar for Jeyasingh.p

hai i want to create 3 separate threads for different tasks in my program . how can i differentiate them in the run() method

Member Avatar for ~s.o.s~
0
95
Member Avatar for volscolts16

I have a project that I am doing, but I cannot get my final answer to go into the text field that I want, it keeps coming out in a new terminal window. What did I do wrong?? import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JFrame; import javax.swing.JButton; import javax.swing.JPanel; …

Member Avatar for volscolts16
0
97
Member Avatar for Rikardsen02754

// ********************************************************** // Count.java // // This program reads in strings (phrases) and counts the // number of blank characters and certain other letters // in the phrase. // ********************************************************** import cs1.Keyboard; public class Count { public static void main (String[] args) { String phrase; // a string of characters …

Member Avatar for peter_budo
0
139
Member Avatar for amaravanich

Hi All, Can you please give me sample app or tell me the way to generate ui templates for web components(as in agile technologies.), using beans and custom tags,meta data files,jsps. Its urgent please reply soon... Thanking you in advance

Member Avatar for jwenting
0
63

The End.