32,204 Topics
| |
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 | |
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 | |
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 … | |
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 --> … | |
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 … | |
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 … | |
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 | |
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 … | |
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(); … | |
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 … | |
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 … | |
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 … | |
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: | |
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. | |
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 … | |
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.. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
| |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … |
The End.