32,204 Topics

Member Avatar for
Member Avatar for wujianwei

the java teacher wants us to write a program project. he says we can do whatever we wanna do as long as it is not too easy and must be interesting. do u think it's hard to write a game program using java in graphic user interface (GUI)? By the …

Member Avatar for majestic0110
0
97
Member Avatar for chweetnancy

Need help with this code. Anyone with knowledge on java please help. i found some on this forum, but that is also wrong. can anyone give me some help what is want is to smooth the values in an integer array. If its totally wrong please dont yell [code] import …

Member Avatar for jwenting
0
104
Member Avatar for Karkalash

Hi. I'm supposed to reverse a number based on user input. Example, if the user inputs 123, the output should be 321. However, so far, the way it is now, if the user inputs 123, the output is 312. I'm a little lost -_- help please. [code]while ( input != …

Member Avatar for peter_budo
0
94
Member Avatar for aashanugraha

how can i calll a crystal report from a java swing program? can u pls send the answer with an exampl what are the jar files to be down loaded? and the xml files?? thanks in advance

Member Avatar for jwenting
0
47
Member Avatar for ravikiran.s

import javax.mail.*; import javax.mail.internet.*; import java.util.*; import javax.activation.*; import java.io.*; public class SimpleSender { public static void main(String args[]) { try { String smtpServer=args[0]; String to=args[1]; String from=args[2]; String body=args[3]; send(smtpServer, to, from,body); } catch (Exception ex) { System.out.println("Usage :\njava SimpleSender server to from body"); } System.exit(0); } public static …

Member Avatar for ravikiran.s
0
117
Member Avatar for swapna7999

hi is it possible to run a java application on a linux server if so, is it possible to run the exe of the application in the linux server or an applet should be called initially i was doing my project in vb and since it is not possible to …

Member Avatar for jwenting
0
42
Member Avatar for shouvik.d

Hi All, I am trying to develop an application which would use a combo box to obtain a set of records from a database table. Now on the count of number of records that are available in the table I need to populate a JPanel say Parent with another JPanel …

Member Avatar for javaAddict
0
140
Member Avatar for thatnewbreed

//this is given public class Student { private String name; private String address; private String phone; private String major; String[ ] classesTaken = new String[100]; double[ ] gradesReceived = new double[ 100]; public void addClassesTaken(String classID) {} public void addGradeReceived(float classGrade) {} public void changeGradesReceived(String classID, double newGrade) {} public …

Member Avatar for javaAddict
0
118
Member Avatar for Thirusha

Hi what i want to do is create a session scoped bean in my servlet and also get the values in that same servlet i have created a bean in my servlet with a session scope(not sure if it really is in session scope) using this code: [CODE] HttpSession session …

Member Avatar for Thirusha
0
131
Member Avatar for Silx

Hi! I'm totaly new to java, but I have been writing a bit in other langages. So my app is generating a .png file representing the structure of graph. This it already made, and it's working fine.I'm generating a .png every time graph's structure is changing(for example when user is …

Member Avatar for Silx
0
77
Member Avatar for hollygef

I'm open to using a simple FileDialog option for both print and save but I'm stuck on the proper syntax for an applet. It is the use of JApplet's Container versus a JFrame in an application. The applet has to appear within the html page. Any help would be much …

Member Avatar for masijade
0
111
Member Avatar for cambridgegal300

Hi everybody - need some help with this code. Been trying to create a simple gussing number game and wrote out this code but can't see what the problem is as there are some errors can someone help? // This program asks the user to enter a value between 1 …

Member Avatar for cambridgegal300
0
95
Member Avatar for MxDev

hi, how could i display the contents of a folder in the jframe without using jfilechooser, this happen by clicking browse button and the contents of folder appears in my jframe directly??

Member Avatar for Ezzaral
0
97
Member Avatar for msnider9

Here is my code. It will compile but will not execute. The error is Exception in thread "main" java.lang.NullPointerException at Calculator2.<init>(Calculator2.java.33) at Calculator2.main(Calculator2.java.91) [code] import java.awt.*; import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; class Calculator2 extends JFrame implements ActionListener { private JPanel panelAdder; private JLabel labela; private JLabel labelt; private JLabel …

Member Avatar for masijade
0
104
Member Avatar for someoneelse

I am hoping there is a way to add OnChange to a .NET Label tag. the label is already part of an extensive form, I just want to be able to call a javascript function (to check the string for hyphens) when the text in the label changes. Can this …

0
53
Member Avatar for guerreronoli

hello all, I created a program that connected to database!.... I've done to display all records from database in JTable..... but when I'm deleting a row it can't delete automatically it needs to close the program to update the JTable!.... here's my program!.... package classes; import javax.swing.*; import java.awt.*; import …

Member Avatar for Ezzaral
0
1K
Member Avatar for USUAggie

Hello all, Hello, I am having a problem with a java applet i created, a hangman game, but I am having a problem I hope you all could help me out with. I am able to run my applet in netbeans using f9 to compile and then shift-f6, and everything …

Member Avatar for sukatoa
0
145
Member Avatar for Taz x

im doing a java project on creating a music database, i need to store an array of cd objects, each entry in the array will be a single object for a cd. The objects are: Artist, Album, No of tracks could sum1 point me in d right direction, thanks

Member Avatar for javaAddict
0
254
Member Avatar for toko

i have made a program which includes a webbrowser. here is the problem, whenever it has to load a java applet the program just freezes. im running vista sp1 with visual basic 2008 express. any help would be greately appriaciated ;)

0
64
Member Avatar for lrb87

Hi, I am looking for a J2ME mp3 player for motorola v3i mobile phone, this phone come with itunes but limited only to 100 songs, so im looking for another media player supported by this phone, like the one motorola v360 have, so that I can play more than 100 …

Member Avatar for hiem666
-1
503
Member Avatar for jimzy2008

I have an assignment for school that involves creating a java program that creates a basic class. I'm getting an error missing return statement, if i try to compile. What could be wrong here?

Member Avatar for VernonDozier
0
91
Member Avatar for dakrous

I am having trouble with how to print from the doubly linked class i created. I could really use some help here is my code [ICODE]import java.io.*; public class SongList { private static Node head,tail; public SongList() { head = new Node(); tail = new Node(); head.setNext(tail); head.setPrev(null); tail.setNext(null); tail.setPrev(head); …

0
64
Member Avatar for mousey182

I've tried searching the web and cant find anything to help me. I'm trying to create a 2D java maze application and have come up with the code below. It generates the maze and GUI no problem, and I've worked the code out to create a xPosition and a yPosition …

Member Avatar for chrisclairs
0
1K
Member Avatar for 2big

I have Windows XP home edition, and Internet Explorer 6. This happened before but I did something to fix it, and I don't remember what. What happens is whenever I click on a javascript link, it doesn't do anything, or just sits there and has the loading cursor forever. Any …

Member Avatar for ohyeah
-3
3K
Member Avatar for oshadee

Hi, I am writing a validation class in Java which validates the input data from a JSP form. As far as the date validation is concern I have a bit of a trouble. According to this application the system must only accept dates till the end of the year from …

Member Avatar for jwenting
0
101
Member Avatar for eleonora

Hello, I strongly need your assistance what is needed to modify in order the board to inherit the complete functionality of the game. The clienthandler class contains all the methods for playing the game on the terminal [please check the code] Thanks in advance for any help ! [CODE=java] import …

Member Avatar for jwenting
0
125
Member Avatar for soup

Hi, I am new to Java and stuck at a problem. I have something like following- [CODE]package X public abstract class A { A(int a) { this.a=p; } protected int p; abstract int func(); } package Y public class B extends A{ B(int b) { super(b); } B() {} //p …

Member Avatar for darkagn
0
106
Member Avatar for hkarthik

hi, I am new to j2me. I want to add more than one image into a form and display those images as thumbnails, so that when i click any one of the thumbnail i should get the full view of the image. Can anybody help me regarding this issue?

Member Avatar for hkarthik
0
98
Member Avatar for dakrous

I am writing a doubly linked list, but i am having problems inserting. Here is my code for the node, and main. The issue is in the main when i call insert, it gives me null. How can i get the node to point to head, and tail(insert it). Help …

0
78
Member Avatar for ells912

1) Write a program that asks the user to input an integer and the output the individual digits of the number. 2) Write a program that asks the user to input an integer and then output the number with the digits reversed. i don't really know how to this using …

Member Avatar for jwenting
0
104

The End.