32,204 Topics

Member Avatar for
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
77
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
97
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
375
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
240
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
158
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
82
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
51
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
131
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
201
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 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
149
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
78
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
142
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
42
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
82
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
124
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
104
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
97
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
84
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
148
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
262
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
465
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
119
Member Avatar for terabite
Member Avatar for srhalfwaythere
0
82
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
176
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
108
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
84
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
84
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
302
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
117

The End.