36,051 Topics

Member Avatar for
Member Avatar for Talon

I've got a java project in which I must replace all v's(big or small) with ag',r and replace all m's(big or small) with ssad, all g's(big or small) with jeb..w and all b's(big or small) with dug>?/. I'm stumped on what to do. I know how to normally replace chars …

Member Avatar for iamthwee
0
121
Member Avatar for HJP

hi, i just installed j2ee 1.4 on my pc (windows xp). i've set the path/class path as follows - PATH = C:\Sun\J2EE1.4\AppServer\bin;C:\J2SDK1.4.2_08\BIN CLASSPATH = .;C:\Sun\J2EE1.4\AppServer\lib\j2ee.jar And i've added JAVA_HOME and J2EE_HOME in both environmental and system variables as - JAVA_HOME = C:\j2sdk1.4.2_08 J2EE_HOME = C:\Sun\J2EE1.4 the problem is, whenever i …

Member Avatar for jwenting
0
125
Member Avatar for s_khardenavis

i am new at using threads can any one send me any program for using multithreads?

Member Avatar for Phaelax
0
136
Member Avatar for rwagnes

Hi. I have a Java Applet with an assortment of buttons that is loaded onto an html web page. I would like any given button to run my ASP code which returns a web page containing results from a database query. But I can't figure out how to link the …

Member Avatar for rwagnes
0
101
Member Avatar for kararu

How can I link my c++ program with html/javascript code? My c++ program should have browser interface....Is cgi the only option.I dont want webserver and cgi...What else can I do?

Member Avatar for John A
0
95
Member Avatar for josephmca77

hi , can anyone tell me how to read contents of a CSV file into my java string. and how to convert a CSV file to a Excel file in java .

Member Avatar for iamthwee
-1
250
Member Avatar for amit_vivek59
Member Avatar for farook ahammad
Member Avatar for jwenting
0
83
Member Avatar for hjc

i am sure that i am way off but i will attach the problem and hope someone can point me in the right direction. thanks in advance for any help given. i am trying to created a program that will write a grading program for a class with the following …

Member Avatar for jwenting
0
121
Member Avatar for anti_genius

Hi, I want to do that i have a fixed center point in a frame. when i enter raduis in textbox and click replot button, i want that lines are drawn originating from that center point in such a way that their end points form a circle. (As children draw …

Member Avatar for s_khardenavis
0
140
Member Avatar for zouyu1983

Hi, guys. i'm a newbie in java world,now i confront a question about the inherite classes. [code] class Base { void f() {....} } class Derive1 extends Base { void f() {....} } class Derive2 extends Derive1 { void f() {....} } [/code] i know that if i want to …

Member Avatar for farook ahammad
0
108
Member Avatar for sheetaljagwani

Hi, I am trying to make a simple jsp program which eneters data eneterd by user in an html form called main.html. This is the code for main.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> Benthic_query </TITLE> </HEAD> <BODY> <form METHOD = POST ACTION="dataConnection.jsp"> Enter the name …

Member Avatar for jwenting
0
156
Member Avatar for anti_genius

Hi, Someone has an idea if we can draw a line between two points with multiple colors i.e. some part of line is red and the rest part is green. Something like that. Regards

Member Avatar for iamthwee
0
80
Member Avatar for George2

Hello everyone, From the available documents from java.sun.com, I can not find rich information about this option, which is used to tune memory of JVM. Are there any samples/documents of this option, like the meaning/function/best practices of this option. Thanks. regards, George

Member Avatar for jwenting
0
101
Member Avatar for the jaguar

I need help making a word frequency counter that also gives percentages of the amount of time the character occured. I am having trouble compiling my program. Thanks. [code]import java.util.*; public class GoodLetterCounter { public static void main(String[] args) { System.out.println("\n-This program will show how many times" + " the …

Member Avatar for Dukane
0
392
Member Avatar for Soulstryker

Hi, I have an assignment that I need help finding out how to add the commission rate for salespeople. I'm to use arrays and methods. The commission rates are as follows: $1000 -- 2999 --> 2% $3000 -- 4999 --> 3.5% $5000 -- 9999 --> 4.25% $10000 and above --> …

Member Avatar for Infarction
0
262
Member Avatar for Hello!

helli everyone!!...hope your all in good health...jus wondered if someone could please help me...when i try to compile this code, it says "class or interface expected" for public Bank(String bankName) i have tried, unsucessfully, to fix this but i dont understand what i have to do.... please can someone help …

Member Avatar for Infarction
0
160
Member Avatar for Mohandsa

[B][COLOR=black]i try to design web page using jsp , i use net beans tool i need video to learn more about jsp ? could any one help me ?[/COLOR][/B]

Member Avatar for jwenting
0
89
Member Avatar for Hello!

Hi everyone, hope your all well....i was just wondering if someone could pleassseee tell me why this doesnt compile and if they could please correct ti for me??? thank you very much: public class BankAccount { private static int accountCounter = 0; private String ownerName; private String accountNumber; private double …

Member Avatar for Hello!
0
87
Member Avatar for zouyu1983

i want to use java to do some data struct problem, but i don't know how to input the data from the consolel can anybody show some cases (for example, input some int data)? the help will be appreciated:cheesy: smallrain

Member Avatar for Dukane
0
53
Member Avatar for YoTaMiX

Hello to you all , I am attaching a HW project which i made in Eclipse 3.2 Enviorment. It is a Cube tourney that each game consists 10 players. Round 1 is 100 Games , each winner is sent to the SemiFinal. than 10 Games of Semi - each winner …

Member Avatar for YoTaMiX
0
137
Member Avatar for peter_budo

I have class which extends JTextArea which I want to attach to JFrame. here is constructor for for JTextArea [code] public MoveSelectedFiles() { area = new JTextArea(10, 40); setVisible(true); } [/code] and here is JTextArea is added to JFrame [code] MovedSelectedFiles movedTextArea = new MoveSelectedFiles(); JPanel panelTextArea = new JPanel(); …

Member Avatar for peter_budo
0
205
Member Avatar for ray_broome

Hi, I am writing a java application where i am trying to create an arraylist of "Item" objects. An Item has certain methods such as getStartValue(), etc. What i am trying to do is to access an Item within my arraylist using operator[] and then call a method for that …

Member Avatar for jwenting
0
2K
Member Avatar for freesoft_2000

Hi everyone, I have a general poll question. You see i have some software applications that i would be putting on a website. For example some of these applications are a spread sheet, a html processor, a word processor, an archiver/unarchiver and many more. The thing i don't know what …

Member Avatar for freesoft_2000
0
596
Member Avatar for Teachingmyself

Hey guys I'm a noob but I'm starting to love this community.Only thing is you kinda get burnt out helping people in posts with no real interaction. What do you all think of having two chat applets? One ,lets call it "I'm free", for seeking help with a problem from …

Member Avatar for The Dude
0
152
Member Avatar for mikki2

hi, i think i have overwritten ActionListener from my compiler( dont know if it is possible). i accidentally saved a file as ActionListener.java and now anything i try to compile that need ActionListener doesnt work. is there a way i can get it back? i already uninstalled and reinstalled my …

Member Avatar for mikki2
0
80
Member Avatar for Zeithgeist

Hallo! New in Java, and asking a very stupid question: Can i change the icon "?" in showInputDialog? `cause in JOptionPane.X i can do it, like JOptionPane.ERROR_MESSAGE, or JOptionPane.WARNING_MESSAGE. :mrgreen:

Member Avatar for Zeithgeist
0
145
Member Avatar for java_programmer

Could anyone please suggest me how to generate PDF files in Java using iText library. I searched the net but didn't get any good tutorial or code on it.Thanks in advance.

Member Avatar for peter_budo
0
45
Member Avatar for Sheki RDH

Dear friends, i've one serious problem which i've to solve within monday.So anyone have solution to the problem below, plz post it...& thx in advance.... In our application i've designed JInterFrame which is having JTable & 2 Jbuttons. I'm coloring some of the rows in this JTable based on some …

Member Avatar for Phaelax
0
84
Member Avatar for Efoa

please some tell me which book is relvant to create online voting system using jsp thankyou

Member Avatar for jwenting
0
60
Member Avatar for harisha

hi. this is harisha, newbie. how to compare two strings in java.:confused: . String id,t; if (id.compareTo(t) > 2) {....} is this correct.while i compile it shows error. reply me soon..

Member Avatar for jwenting
0
126
Member Avatar for Teachingmyself

Hey whoever was good enough to take a look at this thread I have to stress I am a complete noob! I picked up "Java programming for the complete beginner" five days ago and here I am with 50% less hair and stuck on a challenge at the end of …

Member Avatar for Teachingmyself
0
107
Member Avatar for romex21

Hi, I am running a webapp in Tomcat 5.0 with Axis 1.4 My web app loads on startup. When I make a SOAP call to the webapp (which is a servlet) it takes a new instance of the servlet instead of the original servlet that is already running. The wsdd …

Member Avatar for jwenting
0
100
Member Avatar for ayesha sonia

hye guys Hi plz help me i need to run following java commands but in console [B][COLOR=blue]CLEAR CPU // printall CPU Registers ( GENERAL purpose Registers , Speical Purpose Registers, Program Counter & flag) [/COLOR][/B] [B][COLOR=blue]KILL // Kill process Id [/COLOR][/B] [B][COLOR=blue]Load // Load a process and suspend it untill …

Member Avatar for jwenting
0
88
Member Avatar for laddu

hi!! i'm new to java and need some help! i installed j2sdk on fedora4.it installed successfully.i could also compile & run 2 programs successfully. but after i restarted the computer and tried compiling using javac it gave me an error... javac:symbol lookup error:/usr/lib/libjc.so.6:undefined symbol : ztvn4java3awtgeo118 i tried it so …

Member Avatar for laddu
0
151
Member Avatar for DaveNY

I wrote code for an assignment that will output 4 triangles, 1 next to the other. It uses the While and nested For loops. The problem is the output is ok for the 1st and 4th triangle but the 2nd and 3rd need to be mirror images of what the …

Member Avatar for DaveNY
0
283
Member Avatar for resnid

Alright, here's my code... [code] import java.util.Scanner; public class Letter { public static void main(String[] args) { //needed for scanner class Scanner kb = new Scanner(System.in); int charCount = 0; // get users string System.out.println("Please enter a string: "); String userString = kb.nextLine(); // get users character System.out.println("Please enter a …

Member Avatar for peter_budo
0
475
Member Avatar for derbys

Hey im abit of a novice at all of this programming, but im trying to give it ago anyway. What im wanting to do is write a program that takes an array of words which wil then return ana array which alphabetically come after a certain word, in this case …

Member Avatar for srhalfwaythere
0
121
Member Avatar for terabite
Member Avatar for srhalfwaythere
0
84
Member Avatar for Tim Stevenson

Could someone please assist me in modifying the following java script code so that it does a word wrap. It currently forms one long long single line. Thank You ..Tim (I've spent 8 hours trying to solve it...frustrated!) <p><b>Q10) Breed is not about traits as much as it is about …

Member Avatar for MattEvans
0
185
Member Avatar for Zahsan

The problem An audio signal is sometimes stored as a list of int values. The values represent the intensity of the signal at successive time intervals. In a program these will be stored as an array. Often a small amount of noise is included in the signal. Noise is usually …

Member Avatar for iamthwee
0
111
Member Avatar for sroberts82

Hi, Im trying to use log4j with tomcat. Im developing in eclipse. It seems to be ignoring my properties file and going all messages get logged to the console. This is my properties file: [code]log4j.rootLogger=DEBUG, A4 log4j.appender.A4=org.apache.log4j.DailyRollingFileAppender log4j.appender.A4.File=c:/ccLogs/ccLog.log # Roll the log file at a certain time log4j.appender.A4.DatePattern='.'yyyy-MM-dd-HH-mm # Append …

Member Avatar for jwenting
0
86
Member Avatar for mikki2

hi! this prgram is supposed show a gif file on a web page. i can't seem to get this to work as it should, even when i copy it word for word. i've tried other small programs that display a picture of your choosing onscreen. but they too never work. …

Member Avatar for peter_budo
0
85
Member Avatar for rpjanaka

Hi all............. I want to get the database error cord return by the database, to identify the error message and other messages. I am using postgresql database, they have provided their error cords, but still I don’t have any idea about how to do this, please any one can help …

Member Avatar for jwenting
0
313
Member Avatar for iwlu

actually I went the wrong way I think, below is the the partial code area and the bold shows what needs tobe, but I know I didnt do it right, can anyone show me an example or where to find help? [code] if (myFields[c_shapeNameField].equals(ShapeName.circle)){ [B][COLOR=red]//ASSIGN a new Circle object to …

Member Avatar for jwenting
0
121
Member Avatar for Nuwang

[tex] pls modify this program and reply.[/tex] [QUOTE] I have 3 points ask from u. 1. I could increase Font size and Button sizes But in first form still I cant mange spacing in Box layout which I used as totally fill the form 2. Want to manage Second form …

0
48
Member Avatar for blackjpb

Help! I've read loads of near identical posts on this forum and others about similar problems but i can still not fix this problem. It only started about 1 month ago. In that time I have installed a number of microsoft patches as well as having run ad aware recently …

Member Avatar for Super26
2
224
Member Avatar for krismac

Hi... Ok I have created a form which posts data into a mysql database. I can then read that data from the database with another page. I am trying to add russian text to the database... it says it has been added but it comes back as ????? I can …

0
73
Member Avatar for shappell

I am trying to convert and sucessfully run my pettycash program in throughthe eclipse IDE in Java. First Ill show where Im at I am lost afterhere then ill show the petty cash program. I am not sure if I am on the right track and dont understand how to …

Member Avatar for vegaseat
0
107
Member Avatar for freesoft_2000

Hi everyone, I am currently trying to use the HTML preformat tags in a JTextPane using the the HTMLDocument class. This is the function where i apply the preformating [CODE] public void preformat(String str6) { SimpleAttributeSet sas1 = new SimpleAttributeSet(); sas1.addAttribute(HTML.Tag.PRE, str6); //apply the attribute to the selected text //This …

0
88

The End.