36,051 Topics

Member Avatar for
Member Avatar for anindo87

hiii everyone, I'm novice to this technology. I'm facing a problem in project development, in which I'v to collect the data temporarily during a form fill up which need to contain different details about a person which will be classified as personal details, academics details, project and internship details, achievements …

Member Avatar for anindo87
0
97
Member Avatar for selvag
Member Avatar for peter_budo
0
25
Member Avatar for Acegikmo

I am currently writing a weapon class and a projectile class, to use in a top-down game. However, I can't seem to be able to load images in a class. It works in the main function, where I do it like this: [CODE]Image bulletImage =getImage(getCodeBase(),"bullet_machinegun.png");[/CODE] However, this doesn't work inside …

Member Avatar for llemes4011
0
111
Member Avatar for arj19

Hi I need to know some basic information here. I want to develop a small software which I want to market as a product on CD. Please can anyone let me know the basic steps of how to go about it? I have experience in programming but I do not …

Member Avatar for swinefish
0
93
Member Avatar for KimJack

Hi, I really hope that someone can give me a little advice. I am working on a program that reads a text file formatted as follows: Bike, Schwinn, 45.00 Car, Mercedes, 98,000 ... I am writing a program that will read this text file and write each item in a …

Member Avatar for KirkPatrick
0
124
Member Avatar for Dewy

hi..... This is Shabnam and i wanna make a major project in java..........we have 1 year of time to complete it,in which first half v will concentrating in analysis & design and next half months on coding......... So plz suggest me few topics which are quite intresting.......coz its weightage is …

Member Avatar for DangerDev
0
64
Member Avatar for GregStoltz
Member Avatar for KirkPatrick
0
69
Member Avatar for soheilshoolookh

hi everyone, I'm to some extent beginner in java. first of all let me explain a bit about our project and then I will explain the problem. In our project there are Agent programs sending their Data via UDP connections to the Server program, Server performs some math on data, …

Member Avatar for quuba
0
297
Member Avatar for emint

hi i got problem in ma program. in my pro i got main window when i click on "Maze 1" button it create maze. it worked fine. when maze is created i slove maze. then i close to return main window. now when i hit the "maze 1" button it …

Member Avatar for emint
0
116
Member Avatar for bigbadbag33

i am a beginning student in java programming and I have to make an inventory application. I was able to compile my class but I cant get the sub class to compile and execute. can someone tell what to do. public class Cars1 { private String productName; private String itemNumber; …

Member Avatar for BestJewSinceJC
0
114
Member Avatar for ahoyikisoba

I am trying to find the SDK for sony ericsson, I can't seems to find it anywhere! Any info for me? Thanks!

Member Avatar for ahoyikisoba
0
205
Member Avatar for spalax

Hi, i'm a beginner in Java. i'm just trying to code a program that extract some specificline from a text file. for example : i want to extract line No 5000 and lineNo 5100 and lineNo 5200. Here is my code, but it only extract just one line from my …

Member Avatar for spalax
0
3K
Member Avatar for smoore

I think all together its about 2000 lines of code give or take. Took me a good 2 weeks to complete. The program is called Character Creator. What is does is basically creates characters with skills / stats / attributes and a custom image that you provide. There are a …

Member Avatar for VernonDozier
0
312
Member Avatar for caierhui

//The Calculate and exit button does not appear every time i run the program... HELP PLEASE.... import java.awt.event.*; import javax.swing.*; import java.awt.*; public class Assign_1 extends JFrame { private static final long serialVersionUID = 1L; private JLabel quizOneL,quizTwoL,quizThreeL,quizFourL,AverageScoreL; private JTextField quizOneTF,quizTwoTF,quizThreeTF,quizFourTF,AverageScoreTF; private JTextField weightOneTF,weightTwoTF,weightThreeTF,weightFourTF; private JButton calculateB, exitB; private CalculateButtonHandler …

Member Avatar for quuba
0
107
Member Avatar for recycle_carlbin

This code will run but it has some errors in it( I mean,logically wrong.) What is its error? Can you help me figure it out? [CODE]void preOrder(){ myPreOrderTraversal(this); } int myPreOrderTraversal(BinaryTree t){ if (t != null) // {} missing return t.getRoot(); //return should be removed myPreOrderTraversal(this.getLeft()); //replace this with t …

0
82
Member Avatar for ravikiran582
Member Avatar for kevlam

hello, what I need to do is have the program break when the display goes off the screen and then continue. I'm exploring "break" options but it seems that break wants to use a paramater like value I need to pause after say 30 threads are displayed. Hope someone can …

Member Avatar for kevlam
0
97
Member Avatar for Evil_genius82

hey guys, im very new to java so bare with me... i cant seem to bubble sort my arraylist... The data needs to be displayed unsorted in a jlist, then when user clicks process the list is sorted according to student id. If anyone could guide me through it would …

Member Avatar for Evil_genius82
0
260
Member Avatar for recycle_carlbin

Hello everyone. Can we ask about how we could mark the attribute of the entity as PF because the only thing we knew is the PK. Thanks in advance. Your reply will be a great help to us! ^_^

Member Avatar for recycle_carlbin
0
122
Member Avatar for ndoe

i use netbean 6.5 i can't hide the Jlabel,i have use .setVisibel(false) here's the problem i want to hide and show 2 or more label with 1 button,label and button in one parent (panel),for the first label is show but if i click once te button,label is hide,and twice label …

Member Avatar for ndoe
0
68
Member Avatar for dhawan.surinder

Hi I've created a small game in java. Its woring in Appletviewer. But i want to run it on Explorer. Plz help.

Member Avatar for kvprajapati
0
86
Member Avatar for cam875

I have learned how to work with TCP and UDP connections with the Java standard API but now I am trying to see how to create raw packets to send on a network with Java so that I can create the header info and everything. I tried getting jpcap but …

Member Avatar for kvprajapati
0
110
Member Avatar for benatschool

I have a standalone version of JFrame Interface based java application developed on eclipse platform. The tool is essentially a prototype tutor to check competence in statistics and consists of to-be-worked problems on the subject. It also keeps track of the user progress through the questions and scores their performance …

Member Avatar for kvprajapati
0
150
Member Avatar for 4101

Creating Superclass and subclass. Both class should have 4 methods and the subclass should have additional properties/fields and a constructor. The subclass should have at least one method that overrides a method in the superclass. On another file is creating a manipulator where you use the subclass and all of …

Member Avatar for sneaker
0
105
Member Avatar for mustafaneguib

hey all, i am now making a gpa calculator. i am using 4 classes which form into seperate linked lists. one linked list is for the custom gui, and the other linked list is for the data list. i am using custom images for this program which i import using …

Member Avatar for mustafaneguib
0
183
Member Avatar for loozax

can someone help me w/ this?! how to evaluate the EVEN or ODD..all EVEN numbers should store on arrayEven variable,while all ODD numbers store on arrayOdd variable.. [code] import java.util.Scanner; import java.util.Arrays; public class online1{ public static void main(String args[]){ int SIZE= 10; int []number = new int[SIZE]; Scanner input …

Member Avatar for loozax
0
239
Member Avatar for dburd1935

I see that previously others had the same problem I am having. When I click on my contacts list and "email contact" I get a javascript error message in the lower left corner. Then a page which says this site is not available. It then disappears and the screen comes …

Member Avatar for BeiBei
-1
547
Member Avatar for MonicaClare

i have a problem for this program . how can i use the program in the middle.. i tried to put it IN .. but many error exist.. please help me with my program .. thanks.. here's the output: Enter Name: Simplicio Enter Password: pOLOtAn 1 Capital constant letter/s 4 …

Member Avatar for Godstryke
0
210
Member Avatar for Evil_genius82

Guys im stuck once again. I have a JList (unsorted) and when you press 'SORT' the list sorts. The thing is i have to use bubble sort. My jlist is set to defaultListModel. My problem is i keep getting this error: xception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.lang.String cannot be cast …

Member Avatar for cgeier
0
223
Member Avatar for cperepelitsa

This has been the cause of a royal lot of frustration. I have two threads and a pipe between them. I want the first thread to send stdout to the second, and a pipe seemed like a convenient way to do this. [CODE]public PipedOutputStream p_stdout = new PipedOutputStream(); public PrintStream …

Member Avatar for cperepelitsa
0
363
Member Avatar for MasterGoGo

Hi, I'm trying to add windowClosing into my program, so that when ran, I can exit by clicking on the X(top right corner). The bold is what i added to try making the windowClosing work. I keep getting errors though. Anyone know what I can do to fix this? errors: …

Member Avatar for MasterGoGo
0
213
Member Avatar for deepak_nuniwal

Hello friends, i need java source code for cross matching two large access database records (1st file is of 20000records {28 columns and 20000 rows} and 2nd file is of 39000records {30 columns and 39000 rows}).I need to compare each n every cell of 1st file to the each n …

Member Avatar for javaAddict
0
2K
Member Avatar for onindita

hii, can anyone give me any suggestion about how i can make the program below? [B]Question:[/B] You are to write a program that will take in an arbitrary number of lines of text and output it in Pig Latin. Each line of text will contain one or more words. A …

Member Avatar for KirkPatrick
0
153
Member Avatar for lightner

Hi..I just want to ask for a help. I have an Array of Object Person which has these attributes 1.first name(of type String) 2.middle initial(of type character) 3.last name (of type String) 4.age(of type int) Now my problem is, how to sort this in ascending order? My basis of sorting …

Member Avatar for Godstryke
0
140
Member Avatar for sanna_winter

hi , i am a final year student who is looking for some ideas on what to work on for my project. can someone please help me out . i want to build a system / online system which is different from the exsisting ones. Thank you.

Member Avatar for Salem
0
48
Member Avatar for Thirusha

Hi I have been struggling with this for some time now, and am not sure what is wrong. I am using the org.json package I have this json String which looks like this: [CODE]{"2009-08-04":[{"Status":"1","Description":"sdfsdf","Task Name":"task 2","TaskId":"2"},{"Status":"1","Description":"testing 3","Task Name":"testing 3","TaskId":"3"}],"2009-07-31":{"Status":"1","Description":"read POC","Task Name":"task 1","TaskId":"1"}}[/CODE] As u can see the one object is …

Member Avatar for Thirusha
0
135
Member Avatar for BestJewSinceJC

The important code: [CODE] Browser browser = new Browser(shell, SWT.NONE); URL url = this.getClass().getResource("/example.html"); browser.setUrl(url.toString()); shell.open(); [/CODE] P.S. I've carefully considered what Masijade and others told me in the other thread; the example.html file is located in multiple locations, including in the same directory as the .class file. . I …

Member Avatar for kvprajapati
0
421
Member Avatar for robben

I've current got a file which I'm trying to read and extract data from. I'm using LineNumberReader, StringTokenizer and InputStreamReader to do this. I've not had any problems for most of the file, however when I get to read the header1 (see below) section of the file I seem to …

Member Avatar for kvprajapati
0
112
Member Avatar for mzprog

Dear all, I need to develop MS-word like editor where i can place figure(can be image or table) anywhere in the main editor where text can be displayed alongside image in any direction. can any one has some sample code to start with, i am open to ways of doing …

Member Avatar for mzprog
0
44
Member Avatar for enyeahgo

you think so? if you do, please post some of your reasons why java is easy to understand in this thread..

Member Avatar for JamesCherrill
0
137
Member Avatar for KimJack

Hello, I have a text file that is formatted as such: Volkswagen, 547, 9.78, 2 Mercedes, 985, 45.77, 35 ... I am trying to figure out how use the Scanner to read from the text file and store the information into an ArrayList of objects. ArrayList<Car> cars = new ArrayList<Car>(); …

Member Avatar for sneaker
0
3K
Member Avatar for sunny.goyal

hello all, How to get all the opened windows reference in java. Actually, my req is like.... user will set (fix) the cordinates of all the opened desktop windows (application). And he will use a timer to switching of all the open windows, so that at one particular time user's …

Member Avatar for sunny.goyal
0
203
Member Avatar for Godstryke

Hi all, I'm a student learning Java right now, so I'm still very new to what Java can do. I've written a program to perform a word count (thanks to VernonDozier for help with case-sensitivity) but another problem has come up. The program is identifying words with punctuation to be …

Member Avatar for Godstryke
0
192
Member Avatar for bigbadbag33

I am trying to get an inventory program can any one tell me what si wrong with this and how I can fix it, please! import java.util.Scanner; public class Cars1 { // main method begins java application public static void main( String args[] ) { Scanner input = new Scanner( …

Member Avatar for VernonDozier
0
91
Member Avatar for jacky_cheng

I m a freshman about JSP.Now I have a quesstion about sql. first I made a class.Code is [code]public class DataBase { protected String url = "jdbc:mysql://localhost:3306/lab?user=root&password=root&" + "useUnicode=true&characterEncoding=utf-8"; public Connection conn = null; public DataBase() { try { Class.forName("com.mysql.jdbc.Driver"); } catch (java.lang.ClassNotFoundException e) { System.out.println(e.getMessage()); } try { conn …

Member Avatar for cjkennedyo
0
115
Member Avatar for CTUBren

I'm dying here! So far you guys have been way more help than my instructor who speaks Russian or something. Any advice will be more than helpful. This is my issue... Use the random class once for each die, the sum of the two values should then be calculated. Each …

Member Avatar for CTUBren
0
120
Member Avatar for loozax

can some1 give me an example of sorting and merging an 10 inputted integers?!using java array..

Member Avatar for BestJewSinceJC
0
73
Member Avatar for anirudhtomer

I TRIED IT A LOT i used "getFrame().setSize(x,y)" in netbeans to set size of my frameview object in netbeans.....but it's not working. please help me

Member Avatar for BestJewSinceJC
0
56
Member Avatar for SonxQ7

Hi, am using MyEclipse. The tutorial is on Hibernate & Spring ... [code] Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.springframework.beans.factory.support.AbstractBeanFactory.<init>(AbstractBeanFactory.java:94) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:109) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:118) at org.springframework.beans.factory.support.DefaultListableBeanFactory.<init>(DefaultListableBeanFactory.java:87) at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFactory.java:72) at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFactory.java:61) at com.myeclipse.hibernatespring.BusinessLogic.main(BusinessLogic.java:23) [/code] I do have the commons-loggin.jar added to the Java Build Path ... My class ... [code] …

Member Avatar for gautam.tandon
0
130
Member Avatar for Evil_genius82

hey Guys im using this bubble sort to sort an arraylist out but cant seem to output the sorted data out properly! Is there a return method i can use? Damn ive been stuck hours on this one... Anyone that could guide me to a solution would be great. Note: …

Member Avatar for VernonDozier
0
155

The End.