32,204 Topics
| |
Hello there, I am having problems with this code i have written and it is a tic tac toe program. It runs and everything but it doesn't get a winner when i call the method getWinner. this method is suppose to return 'x', 'o' , or ' ' depending onwhether … | |
I am prepared to be corrected if I am wrong but... The Jtable is a pretty powerful and useful object. As I understand it the JTable is designed to hold one object type in each column. For example this matches well with the rows representing the records in a database … | |
I am trying to write a program that maps a product to its description. I have attached the text in the end. This is the code I have come up with. It compiles fine but does not give me the result properly.. [CODE]import java.io.*; import java.util.*; public class InstanceItem{ HashMap … | |
Hi everyone, I really deserve a kick for asking this question so please bear with me. Assume i have two classes class a and class b. Now class b depends on class a to compile correctly. Class a has been compiled and the class file is generated correctly. Now when … | |
Hi, I having problems with loading created objects into an array, then being able to access the records later in the program. The following is a listing of my current program. The code I have thus far, reads information from a file, builds the objects (DVD, Ipod, or Walkman, then … | |
[url]http://www.hacknot.info/hacknot/action/showEntry?eid=76[/url] has an excellent rant about the problems of visual editors (aka GUI builders). While he talks specifically about Java, the same holds true for all of them. And yes, that means Visual BASIC and Delphi as well, languages which traditionally are seen as almost purely visual. I've done several … | |
*Following is the program where 3 objects (obi) each try to print numbers 1 to 10 with corresponding object name (ob1,ob2,ob3).but due to lack of synchronization there output is mixed with one another .make the program synchronized to produce correct output /* //note:-Do NOT add any DELAY or SLEEP code … | |
Hello I am trying to read an aicc ini.file and storing each section and its content into a new Object{} [section] prop1=value1 prop2=value2 prop3=value3 prop4=value4 [section2] .... .... Would someone out there knows javaScript regExp and could give me one or two hints on how to write a regex pattern? … | |
I have been experimenting with my Java problem whereby my JTable class was not calling getValueAt. I got it to call getValueAt by making sure getRowCount sent back the right value and then found that the Vector was empty. When the Vector comes back from the server it has a … | |
Hi there, i was thinking of building an instant messaging systemon a LAN, for my final year project. Dont know how to go about it, really need ideas. I was planning on using java sockets to create the system. Any helpful tips will be really appreciated. | |
Hi, i am trying to implement finger print recoginition system. if someone has any code snippet or pseudocode or any idea of Identify core point in finger print image . it's implementing it either in C or java, please help me out with it. thanks. | |
can anyone tell me how to open os utility's like mspaint,calcin windows by a java program | |
I guess I'm going to use ascii values here, taking a string and converting all letters to lowercase. I'd rather use a for loop than a huge switch statement. How do I do this? | |
what do you think? [URL=http://weblogs.java.net/blog/flozano/archive/2005/04/how_to_make_jav.html]read this[/URL] | |
hi need some help. I am getting an error with the code below, the error is uses or overrides a deprecated API. [javac]. Which is not really an error but what other way should i code this `"Vector dataHeaderDisplay = new Vector(finalData);"` Please help. if(materialType.equals("trim")){ Vector dataHeaderDisplay = new Vector … | |
I am writing a Math related program and I want to display the equations that the user inputs properly. I was thinking about using LaTeX to displaythe equations in a JTextField but need help puting that concept into code form. | |
hello everyone, :) I am new here, and first of all, I let you know that I was just read the rules of this forum and I agree with all of them... so, my question is about a homework, but I am determinate to do a good job and put … | |
I have a JFrame , and to one of its button 'done', I wish to add an ability to close the window...ie on clicking done this window should close. jen | |
hello, im doing a project on email account which must include at least 2 constructors, a finaliser, a display `method()`, a menu that allows to test all fuctions of the class and a `main()` i got the attributes of email : address, password, currentName, noOfmails and the methods are `logine(), … | |
Hi everyone i hope you are all well. This is my first time using this site so bear with me if i make any horrible mistakes. At the moment i am trying to wirte a programme that takes the user input as a string and breaks down the string with … | |
i need to write a simulation of CPU scheduling. The operating system must select one of the processes in the ready queue to be executed. i have real problems understanding what the professor wants in this program, can anybody here help me develop some pseudocode for the logic behind this … | |
i'm using mandrake linux 10.0 . i have installed java compiler successfully. but when i'm trying to use the comand "javac" it is not working. the following are the typical outputs plz help......... [nabakishore@10 Clock]$ ls Clock.class Clock.java example1.html [nabakishore@10 Clock]$ javac Clock.java bash: javac: command not found [nabakishore@10 Clock]$ … | |
Hi everyone, I have submitted a RFE at sun to make JavaMail Part of J2SE so please vote for it if you want it to be part of J2SE Here is the link [url]http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6330014[/url] Thank You Yours Sincerely Richard West | |
hi m a student and advance java in my course. and i have to make a project in java but i have no idea about the project in jdbc,jsp please any one have a project in java jdbc or jsp not a big project just minnor project please tell links … | |
ok this seems so simple, yet i cant get it down into code. i want to do the following methods non-recursively. here is what i have so far. any help would be appreciated ASAP. thanks public boolean insert (int val) Inserts val into the binary search tree. public boolean member … | |
hi. my problem is plain simple but still i couldn't make it out. it's all very basic stringwork (keyboard input, println, ...) but when I get to the point of writing the output file, nothing happens: the text file is created but remain completely blank. this is my code: [code] … | |
I have a lab work on File input/output...I have to put in 12 names under the file name names.txt..and subdivide the names into small.txt(if the length of the name is below or equals to 5) and large.txt(if the length of the name is more then 5..)..I have done a source … | |
Hi Everybody! I'm trying to create my own web accelerator/browser. When you open a page, it will take all the links on that page and preload them. I just have one question: how do you retrieve HTML source code of a page and how do you parse that huge string … | |
Hi everyone, I have a JTextPane with some styled text in it and i am trying to scale them. What i mean is that assuming that the text inside the JTextPane on startup is a 100% in size. After i click some JButton all the font size of the entire … |
The End.