32,199 Topics

Member Avatar for
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
129
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
258
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
107
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
301
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
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
46
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
220
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
105
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
86
Member Avatar for dil.om

:) hello frnds i wana ask one question about my project. i m dng the project of family tree. in wch many relationships r considered.if one person make his own family tree thn another parson in his family can make the relation ship wth him.and tht will specify the relatinship …

Member Avatar for Phaelax
0
114

The End.