36,051 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
99
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
107
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
111
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
49
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
121
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
44
Member Avatar for Java_tyro

Hello, plz help me retrieving a textfield value from from2 to form1. I have a textfield in form1 to retrieve Employee No. When I click a button in form1, form2 opens which contains list of employee numbers. In form2, I select a employee number and click a button. How should …

Member Avatar for peter_budo
0
65
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
144
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
123
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
134
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
81
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
115
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
102
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
101
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
107
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
56
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 sylo

hey all, first post, im a real n00b at this.. its just part of my first yr at uni and dont even need it for the 2nd yr and never done it before.. its such a small part of my coursework and all it does is get me a D …

Member Avatar for jwenting
-1
86
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
146
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
255
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
67
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
510
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
95
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
67
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
103
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
128
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
107
Member Avatar for sadafs

Hi i have a code that runs really well.. unfortunately im really new and to get to here was also quite time consuming.. however i am on a short time line now and need help fast!. can someone please tell me how i can get my page to list results …

Member Avatar for jwenting
0
99
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
100
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
79
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
107
Member Avatar for dlightfoot15

I need to know how to create a triangle, and how to fill it with color. I am new to programming and would appreciate the help. I am not running the applet in a web browser, just executing it. Thanks.

Member Avatar for jasimp
0
149
Member Avatar for Taker

[code] import javax.swing.JFrame; import java.awt.*; import java.awt.event.*; import javax.swing.ButtonGroup; import javax.swing.JButton; import javax.swing.JDialog; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JRadioButton; import javax.swing.JTextField; import javax.swing.UIManager; public class GUINew extends JDialog implements ActionListener { public static void main (String [] args) { protected JButton ok; protected JButton cancel; protected ButtonGroup type; protected JTextField …

Member Avatar for blufab
0
116
Member Avatar for majestic0110

Hi all, I think I might try my hand at creating a text based adventure game in java. No I don't need cutting edge graphics, or state of the art fatalities etc what I am looking for is a solid, story driven adventure/RPG game. I would appreciate some advice on …

Member Avatar for majestic0110
0
694
Member Avatar for Kusno

Dear all I get this code from java.sun. I want to sort my columns tables. But line 3 and 4 are not working. I use Netbeans and already add JDK 6 to Netbeans platform. Any suggestion or information from all of you ?? JTable table = new JTable(new MyTableModel()); table.setPreferredScrollableViewportSize(new …

Member Avatar for Ezzaral
0
148
Member Avatar for dakrous

I can't figure out why this won't exit when quit is entered. [ICODE] import java.io.*; import java.util.*; public class Trial { static final String ADD_COMMAND = "add"; static final String REMOVE_COMMAND = "remove"; static final String QUIT_COMMAND = "quit"; static final String PRINT_COMMAND = "print"; // Create a single shared …

Member Avatar for blufab
0
74
Member Avatar for Someguy02

Hi! I just had a quick question that I can't seem to find the answer to anywhere. My book isn't helping me much and I have no one to turn to for help. Anyways, here's my question: I want to make it so that when you click a Button in …

Member Avatar for darkagn
0
93
Member Avatar for japkpc

i am trying to create website where i have to upload the images.. i am storing the context name in the database.. after uploading the image, the image is copied to specified folder but when trying to display it. the old image is not changing to newly uploaded image.....

0
137
Member Avatar for saintb

he i made a simple reservation system please help me with code on how i can cancel a reservation [code=java] import java.util.Scanner; import java.util.Date; public class reservation { // Create an array of 12 seats, 6 window and 6 aisle. private static int[] seats = new int[12]; public static void …

Member Avatar for saintb
0
720
Member Avatar for eranga262154

Hi all, Here is the structure of my XML file. [CODE]<?xml version="1.0"?> <data> <key>468</key> <name>pal</name> <option>10</option> </data>[/CODE] I want to read the option tag value, then increment it by 4 and write it to the same location. So at the end XML file content like this. [CODE]<?xml version="1.0"?> <data> <key>468</key> …

Member Avatar for eranga262154
0
112
Member Avatar for hallinan

Hi I'm doing a project in java.It is the game othello.It was all going well till i got an [B]ArrayOutOfBoundsException[/B]. the array is this buttons[9][9]; If you dont know othello it's a board game with an 8x8 board. The Exact error is "ArrayOutOfBoundsException: 9" and give the lines which the …

Member Avatar for hallinan
0
517
Member Avatar for JakeCourtney

Hey, I've recently started to learn Java with a little prior experince in C++. Only the basics. I was just wondering if there any pointers for getting this language down. I'm talking about stuff that I won't pick up from some book or exercise. Something you've all come across in …

Member Avatar for peter_budo
0
179
Member Avatar for Vanessa.KH

Hello everybody! I am a beginner in Java and need some help plz How could i build a structure trie from a matrix Thx

Member Avatar for jasimp
0
41
Member Avatar for anonymous_cutie

ok. first of all, i just reread the community rules so i hope i'm posting in the right forum. if not, please inform me and tell what i can do about it. i know that you don't like people posting about this particular topic. but i have searched the entire …

Member Avatar for jbennet
0
246
Member Avatar for skyineyes

Hi I know its a bit odd but i am freshly new to java and in a real need to solve few progs by EOD . Really stressed ..please help me out in solving below progs ... ************************** Task 1 Write a visitor for a structure of Strings (i.e. one …

Member Avatar for jwenting
0
108
Member Avatar for jimJohnson

I am in the middle of a program and have a quick question and not sure how i do this... "have the Frame display in the center of the monitor " [code=java] //import packages import java.awt.*; import java.awt.event.*; import java.awt.datatransfer.*; import java.text.DecimalFormat; import javax.swing.JOptionPane; //create a subclass at the fram …

Member Avatar for jimJohnson
0
143
Member Avatar for heshan

I am using java.util.map to store some data ( one key and two values , per row ) in java and return it to a python function . What kind of a data structre should I use in python to catch it? (btw I am using Jython as a bridge …

Member Avatar for bumsfeld
0
56
Member Avatar for imma.infotech

The End.