36,051 Topics
![]() | |
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 … | |
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 … | |
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 != … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
//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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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?? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 ;) | |
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 … | |
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? | |
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); … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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. | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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..... | |
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 … | |
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> … | |
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 … | |
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 … | |
Hello everybody! I am a beginner in Java and need some help plz How could i build a structure trie from a matrix Thx | |
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 … | |
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 … | |
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 … | |
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 … | |
i need 6th version java tutorial immaculate |
The End.