32,204 Topics

Member Avatar for
Member Avatar for crazy lady

Newbie trying really hard to understand what she is doing wrong. Your help would be appreciated. <?xml version = "1.0" encoding = "utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHMTL 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhmt1-strict.dtd"> <!-- Fig. 8.12: Product order.html --> <!-- Product script. --> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title>Product Orders</title> <script type …

Member Avatar for javaAddict
0
75
Member Avatar for crazy lady

Newbee needs help with program. If you would be so kind to tell me where I am going wrong. <?xml version = "1.0" encoding = "utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHMTL 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhmt1-strict.dtd"> <!-- Fig. 8.12: Product order.html --> <!-- Product script. --> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title>Product …

Member Avatar for javaAddict
0
88
Member Avatar for j1979c

[B]Hello, I'm currently having some problems with the StringTokenizer from java util. I've declared a StringTokenizer like: [COLOR="Red"]StringTokenizer token = new StringTokenizer(line,"|"); [/COLOR] to token out a string read from a txt file such as: [COLOR="Blue"]Diablo|RPG|PG|PS2|20[/COLOR] and it works fine(detects all the "|" as delimeters) :) The problem now is, …

Member Avatar for javaAddict
0
284
Member Avatar for kvass

This program creates 2 methods for convenience: menu() and binaryQ(). The menu method accepts several strings as its parameters. The first of the strings is the question to be displayed at the top of the menu. The following strings are the menu choices. For instance, if you call [icode]Confirmer.menu("What is …

Member Avatar for kvass
-1
198
Member Avatar for ajay_tabbu

my program is compiled.but on run that i have message "Exception in thread "main" java.lang.NullPointer Exception" 1. class Rev 2. { 3. char a[]; 4. char i=3; 5. void str() 6. { 7. for(i='A';i<'D';i++) 8. { 9. a[i]='i'; 10. } 11. } 12. void show() 13. { 14. for(int i='A';i<'D';i++) …

Member Avatar for BestJewSinceJC
0
159
Member Avatar for JessJames

Hey, I dont know where to start with this problem so I have a super class(Transaction) that has a constructor and I have 2 sub classes (rental and return )they both have the same constructor as the super but they have a toString method that is almost the same but …

Member Avatar for kvass
0
81
Member Avatar for sandyben

i hava a code called home.java [CODE] import javax.swing.*; import javax.swing.JScrollPane; import javax.swing.JTextArea; import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.Random; import java.util.*; import java.text.*; class home extends JFrame implements ActionListener, Runnable { JButton btndetect,btntest,btnstart,btnexit,btntransfer; ImageIcon ic,ic1,bc; JLabel lbltitle; JTextArea textArea ; JScrollPane scrollPane; JPanel panel; Thread t; public home() …

Member Avatar for sandyben
0
2K
Member Avatar for themarval

I've searched the page but i can't find a way to mark my previous post as closed. This is slightly different so i was not sure if i should create a new post or add to my existing one. Not trying to break any rules intentionally. in this post i've …

Member Avatar for mrnutty
0
150
Member Avatar for J-Rock

Hey guys, im pretty new to java as this is my first time ever taking such a course, and i have an assignment that i have to complete that im stuck on and i have no idea what to do next. Heres what i have so far, and i doubt …

Member Avatar for kvass
0
118
Member Avatar for themarval

I have built a program that will select 5 random cards and display the output as text. I want to add an image to display. In my code i've declared each of the card images, but I'm not quite sure how to tie in the graphic to the output. if …

Member Avatar for BestJewSinceJC
0
148
Member Avatar for BuhRock

I am having trouble creating the code to end the program if the user enters -99. I have everything else done. The int "testNum" is what holds the value for -99. Can someone point me in the right direction on how to make it where when the user enters -99 …

Member Avatar for kvass
0
144
Member Avatar for RaigaX9

Hi, I need help with this program here. I want to print an isosceles triangle. But, I keep ending up with this here where they are being spaced: --------* -------* * ------* * * -----* * * * ----* * * * * ---* * * * * * --* …

Member Avatar for RaigaX9
0
3K
Member Avatar for willpower927

Hi, i want to develop an instant messenger using a P2P architecture.. please help me out with the initial steps

0
47
Member Avatar for beGinneR24

Hello, i have a question. How do you compare 2 words or integers? the idea is a program should prompt the user to enter 2 words in one sentence (so like "apple orange") then it reads the 2 words and compares them to see if they are the same or …

Member Avatar for BestJewSinceJC
0
125
Member Avatar for Taimoor Rana

// close an account with a given number public void closeAccount(int id) { } this is a bank project... a customer account is created(array). i would like to know how to delete an array? let say: account number 185649 is found in array[15]. then i would like to delete this …

Member Avatar for BestJewSinceJC
0
164
Member Avatar for Majestics

[url]http://www.jformdesigner.com/doc/help/layouts/gridbaglayout.html[/url] Please visit this website, there is a image of a dialogue box , can anyone help me please making them. I dont want full code just some hints . Thank You.

Member Avatar for BestJewSinceJC
0
91
Member Avatar for mrbool
Member Avatar for Salem
0
73
Member Avatar for devstarter

hi people does anyone know how to change the backcolor on a Jtextfield, when the component gets the focus? thanks

Member Avatar for BestJewSinceJC
0
45
Member Avatar for needhelpbadly

I'm a beginner, and I was wondering how to write a java code for this: * *** ***** ******* ***** *** * I'm using DrJava. This is supposed to be in a diamond formation. Hopefully it posts that way. Thank you :)

Member Avatar for VernonDozier
0
105
Member Avatar for Dasau

I have problem compile this. Line 23 having a problem ( possible loss precision, required int, found double). [CODE] public void actionPerformed( ActionEvent e ) { try { // call a function to get the value - if an error occurs, // display a message box and set focus to …

Member Avatar for BestJewSinceJC
0
473
Member Avatar for talha06

Hello to all, Despite I added all necessary .jar files to project, I always take boring exception warnings that say "class not found". I added the code and exception output below. I'll be so happy if someone can help me. Thanx in advance.. With regards, T ----------------------------------------------------- [CODE]protected void doGet(HttpServletRequest …

Member Avatar for talha06
0
3K
Member Avatar for polska03

Hi can someone help me. I sent this question in another forum, but noone is helping. This is the link please hlep! http://www.dreamincode.net/forums/showtopic158550.htm

Member Avatar for javaAddict
0
83
Member Avatar for skwatamkar

my college project is finished now i want to shine it with different look and feel. I am developed the application on windows platform can i am able to apply quaqua loook and feel to it. if yes then plz give it to me in simple step by step manner. …

Member Avatar for peter_budo
0
142
Member Avatar for Danny_501

Hi everyone, I'm having a problem with understanding the workings of an enhanced For loop. This code is meant to iterate through an array of ints and print out the char value of that int. But it seems to start on the first number in the array, making the program …

Member Avatar for Danny_501
0
204
Member Avatar for CollinRyans

Hi, what I am trying to do is simple: I just want to execute something depend on what the user presses. Here's the pseudocode: [CODE]if(user presses 1) { do this } else { do that }[/CODE] ps. I was reading about [CODE]java.awt.AWTKeyStroke;[/CODE] and is that what I need to use? …

Member Avatar for kvass
0
85
Member Avatar for bob10

Hi guys, I have a problem with arranging my components in a GridBagLayout. The frame is 600x600. Inside it, there are two pairs of (Label,TextField). They are not where I want them to be. What I would like is to have them all at the top of the frame, one …

Member Avatar for bob10
0
148
Member Avatar for achiman

Please can anyone tell me if it is possible to write a program that allow multi client interaction with a server. I am new to Java so any help will be appreciated. Thanks

Member Avatar for achiman
0
227
Member Avatar for kv79

Hello I am really new to Java/Oracle. I am having NetBean 6.8 IDE for development. jdk1.6.0_17 Where do I start? THANKS advance!!!!!

Member Avatar for peter_budo
0
65
Member Avatar for miles.85

Here a simple code which I have to add on project: [code] import java.io.*; import java.util.Scanner; public class Ana { static public void main(String[] args) { try{ File gecicidosya=new File("D:\\B.txt"); File sdosya=new File("D:\\A.txt"); Scanner oku = new Scanner(sdosya); BufferedWriter yaz=new BufferedWriter(new FileWriter(gecicidosya)); while(oku.hasNextInt()) { System.out.println("while started"); oku.nextInt(); System.out.println("file readed"); } …

Member Avatar for miles.85
0
270
Member Avatar for devstarter
Member Avatar for jwenting
0
50

The End.