32,204 Topics
| |
Hi all, Ok, so I know how to write a simple client/server app where the send a message from the client and the message displays on the server's textarea, and I send a message from a server and it displays on the client's textarea. To do this I normally use … | |
I'm trying to make a program that will toggle a boolean value and paint a red rectangle on the right side of a swing panel when you press the 'a' key. Unfortunately, I'm not having much luck, because when I hit 'a' nothing happens. My mistake is probably something obvious … | |
Ok, this is very, very strange, and annoying. I declared this variable in my IDE: [CODE]long me = 2323237777777;[/CODE] And I get a compilation error saying that the literal 2323237777777 of type int is out of range. I don't understand. Isn't long supposed to be able to handle this type … | |
Okay, First and foremost im new to the forum. Hi and Thx to anyone who helps :D Anyhow, i would like to ask you guys if it is possible to separate a String with tokens one by one. Then make them appear in the jTextField with only 1 word per … | |
My button is not gaving out any action when clicked: (libraryBtn): [CODE]package LibraryDatabase; import static javax.swing.JOptionPane.*; import java.awt.*; import javax.swing.*; import java.awt.event.*; public class PostLibraryDatabase extends JFrame implements ActionListener { // Text Fields XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX JTextField firstName, surName, id, serialNumber, category, dateToday, coverTitle, isbnNumber, authoursName, coAuthoursName, pubDate, loanDate, returnedDate, email, details; … | |
Hi! I read the jmf tutorial for how to capture an audio. I tried to run there code in netbeans but it din't work . This vector: Vector deviceList = CaptureDeviceManager.getDeviceList(new AudioFormat(AudioFormat.LINEAR, 44100, 16, 2)); was null. This means that it didn't find a device to record with? I used … | |
Hi, I have downloaded j2ee server and compiled the jms programs successfully. But,i cannot able to run the j2ee server. My directory Structure: j2sdkee1.3.1/bin [root@localhost bin]# ll total 48 -rwxr-xr-x 1 uucp 143 345 2002-01-17 17:18 cleanup -rwxr-xr-x 1 uucp 143 1715 2002-01-17 17:18 cloudscape -rwxr-xr-x 1 uucp 143 463 … | |
I am a student looking to create a functional ftp client software from scratch with java for my licence project. I am looking for: any usefull books regardind the subject of file transfer, sugestions on features that I could implement to make the project more unique and usefull, tutorials and … | |
I am not getting a efficient way to solve the problem, the time taken i more than 5 sec while the time alloted for this problem is 1 sec .so please help me .please give me a answer using collections. ========== EASY - 2 ========== The great pirate Khurafati and … | |
Hi I want to capture the output into java varible of one of the command line statement. The command line statement is as below: [COLOR="Green"][B]..\_jvm\bin\java.exe -cp ..\DataLoader.jar com.salesforce.lexiloader.security.EncryptionUtil <option> <password>[/B][/COLOR] Infact this is the command line utility thru which I encrypte my password, if i do manually. [B]But I want … | |
May I know how to split a word into individual characters (letters)? For example, AUGC into A U G C | |
[CODE] coordinates2[i][0]= Double.parseDouble(text2.substring(30,38));//X coordinates2[i][1]= Double.parseDouble(text2.substring(38,46));//Y coordinates2[i][2]= Double.parseDouble(text2.substring(46,56));//Z [/CODE] Can I do this: coordinates2[i][j]= coordinates2[i][0]+ coordinates2[i][1]+ coordinates2[i][2]; Is it possible to add them all together ? | |
I am doing a payroll program that requires a sentinel value. I cant seem to get it right no matter how much I try. here is my code so far: //Filename: Payroll3.java //Description: Payroll calculator with sentinel loop //Author Name: Chris Russo //Date: 08/15/2010 import java.util.Scanner; public class Payroll3New { … | |
I have 2 arrays that are in a while loop each. I have declared the array ouside of the main, declaring it 'public static'. I want to use the values store in the array outside of the while loop, but I can't seem to do it. May I know how … | |
hi. could some one help me. I am trying to read the tokens into the array but the datatypes are incompatible. what should i do to cast it into the same thing. the numbers from my text file are actually floats. But i can make do with just the integers … | |
Hi, Can anyone send the download link of j2ee server. thank you, With regards, Prem | |
Hello, I am starting to learn java and I was wondering if anyone know of any resources/websites that have projects I could attempt to improve my skills and expand my java knowledge? Thanks. | |
Hello, I am having trouble with my Odd/ Even Code. Can anyone help me with this? Or has a current code? | |
[CODE] class character1{ public static void main (String args[]){ float a,b; a=Integer.parseInt (args[0]); b=(float)Math.acos(a*(180/3.14)); System.out.println (b); } }[/CODE] the above program isn't working when entering angle other than 1 , why ? | |
Hi I was wondering if someone could help me with a code for my website? Basically what I want to do is have a drop down list that is essentially a matrix in the sense that picking one option leads to another and eventually you can narrow down the results … | |
I'm trying to create a method which checks if a certain text file is empty, and if so it deletes it. However, the program seems to freeze for one reason or another when executing this part. [CODE]try { BufferedReader in = new BufferedReader(new FileReader("File List.txt")); String str; while ((str = … | |
hi, i'm wanting to do a for loop on the last line [CODE]System.out.println(host + "\t" + status);[/CODE] of this bit of code so that when i replace [CODE]String host = "server";[/CODE] with something like this: [CODE]String hostarray[] = {"pc","server","pc2","another","etc"};[/CODE] that i get output that looks like this: Server Up? pc … | |
Hello I want make java application which start running when system (OS)start anyone can tell me where i must search or a demo for that any help will be appreciated Thanks Yours Ahmed Ghazey FCI-CU-CS | |
Hi everyone, I will be really thankful if someone could help me out. I am developing a gui application ( based on java jdbc and oracle10g), where a user can enter queries retrieve data from that can perform selection projection join union. Till now I could perform only selection queries … | |
i want to develop a parallel thread based application , so which is best language for it?? | |
the few things that i cant understand are inside the code.. The code should give out the car type, model type ,serial number. and the number of cars.. [CODE]public class part5{ public static void main(String[] args) { System.out.println(Car.getCounter()); Car[] cars =new Car[5]; for (int i = 0; i < cars.length; … | |
guys, i have a project that have to implement a reservation system by using java. Is it database the only way to store the data? Is there other method beside by using database? If database is the only way to do that, can anyone tell me how to do so … | |
hello can you help me i don't know how to make this method remove(Node n),in SinglyLinkedList can anyone give a hand on this.. thank you in advance.hoping for your positive responds... [CODE] public class SinglyLinkedList { private Node head; private Node tail; private int size = 0; public Node add(Node … | |
Hi all, Static Methods : static methods can access only static variables.It cannot access instance variables. static methods can call another static methods without the objects. static methods can call instance methods using the object of the class. Instance Methods: Instance methods can access static variables also instance variables. Instacne … | |
[CODE]import java.io.*; public class DCS2{ public static void main (String [] args) throws IOException{ BufferedReader myInput = new BufferedReader (new InputStreamReader(System.in)); int code, al, nmp, brc; float tf = 0 , ir = 0; String name = "" , description = ""; System.out.println ("Enter Your Barrower's Name"); name = myInput.readLine(); … |
The End.