32,204 Topics

Member Avatar for
Member Avatar for hanntaa

im using a JFileChooser to find a file from anywhere on the system and load it but i also need to be able to export the data within my program to an unknown location, how would i go about doing that?? is it simular to the JFileChooser? any help would …

Member Avatar for hanntaa
0
102
Member Avatar for rukshilag

I am a beginner to java and i find it very difficult. can someone please help and tell me how you identify a main method in an application and also how do i make a jbutton call a certain method and output it to a text field? please explain with …

Member Avatar for darkagn
-1
84
Member Avatar for hanntaa

Hey guys iv got this project to make an address book that has all kinds of functions and iv got them all working apart from one bit, it needs to be able to read a file when it opens as well as import other data from other files. The data …

Member Avatar for hanntaa
0
207
Member Avatar for silveram

I need a java code or algorithm for converting eNFAs to NFAs. This is our project for our automata theory class and our prof said that it would be alright to get codes from other people as long as we fully understood how the program works. Please help me and …

-3
49
Member Avatar for gitech

Hai Friends, Iam using swing application in my project with short cut keys to perform some action, it takes few seconds to process(retrieve data from server to client) ,when i press the shortcut key for three times means the action is performing thrice, i want to perform single action.is there …

Member Avatar for gangsta1903
0
89
Member Avatar for saurabhjj

hi, I have written my first pom.xml and on making a build it says, u are using java 1.3 you need 5 or above. I only have 1.6 installed in my system, Can anyone please help me, please tell me where do I need to check, I have checked all …

Member Avatar for peter_budo
0
30
Member Avatar for Clawsy

Hello, I'm working on a bluetooth chat application project called 'BlueChat'. I coded the server (BServer.java) and client (BClient.java) parts (2 separate threads). The visual part is called BlueChat.java and allowes the user to select to be the server or the client. I wrote a lot of System.out.println("")'s to check …

Member Avatar for Clawsy
0
265
Member Avatar for shashikant.v

dear friends, I am working on small project for that i am making a setup from install creator and launch 4j after creating a jar file. But in that step .exe file is needed . pls help me to create a .exe file. thanks & regards shashikant

Member Avatar for peter_budo
0
64
Member Avatar for nobodycool

Hello there, I am working on an assignment for school and I am having a hard time understanding the concept of an array of objects. I am required to create an array of Music objects so that I can search through them via a binary search and make changes as …

Member Avatar for javaAddict
1
138
Member Avatar for sahity1a@yahoo.

I need to make a sorting algorithm. The program takes an input file that stores the information into an array: the array has student's name and a personality type. The personality types are: enum values Realistic Artistic Social Conventional Then once it takes an array, it sould divide the main …

Member Avatar for javaAddict
0
98
Member Avatar for bkafroboy69

these are all my codes and im trying to make shapoes in myshapetesrer2.these are the directions i have to follow but i dont kn ow if i did tem right any help? Write an abstract class: ColoredShape A ColoredShape has a position (x and y coordinates that are integers) and …

0
63
Member Avatar for .11

Hey I want to simulate a knight moving in my Knight Tour Gui, this is the display code, the moves are stored in the arraylist moves. [CODE] public void display() { for(int i = 0; i < moves.size(); i++) { //Gets the correct button JButton button = square.get(moves.indexOf(i+1)); button.setText("" + …

Member Avatar for adams161
0
103
Member Avatar for Clawsy

Hello, I'm trying to develop a chat application [I]over internet[/I]. First I want to send just strings... later files. I want to have a client that is a java applet that connects to the server - a java desktop application. I waould like to send files later over applet and …

Member Avatar for adams161
0
232
Member Avatar for NewbieProgram

I'm having problems generating CPU turn; preferably with AI, and also draw between player and CPU. [CODE] jButton1.setEnabled(false); boolean Userturn = true; JLabel[] label = new JLabel[9]; label [0] = jLabel1; label [1] = jLabel2; label [2] = jLabel3; label [3] = jLabel4; label [4] = jLabel5; label [5] = …

Member Avatar for adams161
0
757
Member Avatar for nonshatter

Hey guys, basically what i'm trying to do is take each line from two text files and store them into two variables, salt and original. I then want to pass these 2 variables to a different method called: crypt(String salt, String original) How would I go about doing this? Many …

Member Avatar for ~s.o.s~
0
109
Member Avatar for adams161

Hi, i've started making a simple breakout game with java swing. This is just for fun and to learn more about java and swing. I got a frame and a panel and a mouse listener. I draw a paddle on the screen and it moves as the mouse moves. I …

Member Avatar for adams161
0
103
Member Avatar for ibanez270dx

Hey guys, I've very new to JSP, Java, and Netbeans and I'm having an issue... So I've got an ArrayList of User objects and I'm trying to iterate over the list in a JSP page to display the info. I've included the JSTL 1.1 jstl and standard libraries. Here is …

Member Avatar for ibanez270dx
0
5K
Member Avatar for tabooxchanz

Fellow Java Coders, I recently got a project to do for my coursework in university which requires that me and my group members simulate a file manager similar to windows explorer but I guess not as complex. Here is a synopsis of what is required: The members of this group …

0
59
Member Avatar for doobiez

[quote] I'm having a problem with constructor. I get an error an error "invalid method declaration; return type required" on line 75 ..here is line 75 TypeOfStudent(int minAge, int maxAge, String name) ..and I've posted my whole code below[/quote] [CODE]import java.util.*; public class Student { private String name; private int …

Member Avatar for masijade
0
147
Member Avatar for Stefano Mtangoo

Hi, I have done this code to learn ArrayList. I keep getting errors. Basically I want to accumulate names in list and when user types 'n' at prompt, it prints out names. What is wrong? [CODE=java]package mtangoo; import java.util.ArrayList; import java.util.Scanner; public class MainClass { public static void main(String args[]){ …

Member Avatar for Stefano Mtangoo
-1
307
Member Avatar for anevins

Hi, i'm learning java and I don't know why I'm getting this error. New Error on line 11 - "Cannot find symbol" [code] int first, second; int first, second; double firstcube, secondcube, power = 3, num = 3, pow; Scanner scan = new Scanner(System.in); System.out.println("Enter First Number: "); first = …

Member Avatar for donaldw
0
110
Member Avatar for timaquerra

Hello, I created a web service to access oracle database. This is my code: [CODE] package mypack; import java.util.List; import javax.jws.WebService; import javax.jws.WebMethod; import javax.jws.WebParam; import java.sql.*; import java.util.ArrayList; @WebService() public class AutoRepairWS { @WebMethod public List getCustomerId(@WebParam(name = "Cust_Id") String Cust_Id){ String user = "****"; String password = "****"; …

Member Avatar for ~s.o.s~
0
196
Member Avatar for jeby

after deleting 2 ,55 and 21 ..am getting only in in-order how do i make other 2 oders package com.eyc.roughworks.binarysearchtree; import java.lang.*; import java.io.*; public class pBSTRemoveNode { public pBSTRemoveNode left, right; public Comparable data; public static pBSTRemoveNode tree_AddNumber(pBSTRemoveNode r, Comparable n) { if (r == null) { r = …

Member Avatar for jeby
0
102
Member Avatar for 9107you

i just started the course but teacher gave me this amazingly hard question for to start with he said it's some sort of challenge question im not just asking you for the answer but i think i need LOTS of // The "Taxesforresidents" class. public class Taxesforresidents // The "Taxesforresidents" …

Member Avatar for javaAddict
0
118
Member Avatar for dorotalp91

a do-while loop!!! sorry [CODE] import java.io.*; import java.util.*; public class guessing { public static void main (String args[]) { int answer = 22; System.out.print("Enter your guess, if you are correct you will be a winner "); Scanner guessReader = new Scanner(System.in); int Input = guessReader.nextInt(); { if (Input< 1 …

Member Avatar for donaldw
0
104
Member Avatar for StarZ

I'm suppose to do this using sorting algorithm..so it asks to creat a friends database application that maintains a file of friend objects that contain names, telephone numberrs, and email adresses..etc. The friends application should load friend records from a file and then allow the user to add new friends, …

Member Avatar for javaAddict
0
1K
Member Avatar for leoeroy

I'm trying to make a program that will compare the results in calculating the Cosine with powerseries method and Math.cos method. This is what i have. [CODE]import java.util.*; class Cosine{ public static void main(String[] args){ int degrees = 0; Scanner myScanner = new Scanner(System.in); while(true){ System.out.println("Enter some integer value of …

Member Avatar for leoeroy
0
2K
Member Avatar for vandhana v

hi frenz! can anyone plz help me out?! how to implement image manipulation tools of photoshop in java?! how i must start plz help!!??

Member Avatar for masijade
-1
29
Member Avatar for girl.java

hi how are u all this is my program [CODE]import javax.swing.*; public class Qustion2 { public static void main (String args[]){ double x =2/3; double y = (3*x*x)-(8*x)+4; JOptionPane.showMessageDialog(null,"At x= " + x +" the value is " + y); } }[/CODE] Mathematically when i substitute x =2/3 i get …

Member Avatar for donaldw
0
115
Member Avatar for Stefano Mtangoo

I'm new to Java, but will eventually want to use GUI for my Desktop applications. So as usual in any language, GUI toolkits are "debatable". In Python (My current "mother toungue") We have PyQT vs PyGTK vs wxPython and it is a good debate. I would like to hear your …

Member Avatar for Stefano Mtangoo
1
175

The End.