31,001 Topics

Member Avatar for
Member Avatar for dannyfang

Hi, I'm a newbie with ANT. I have a ANT build.xml file in which I'm attempting to separate certain packages from different requirements of the built. As an example, if I have a software which consists of packages A,B,C,D and E. I have customer whom are purchasing the software, but …

Member Avatar for jwenting
0
153
Member Avatar for danny1024

Help please, I need to create a for loop for summing numbers in JavaScript - can anyone help? So far I have var biggestNumber ; var theSum = 0 ; Thanks

Member Avatar for jwenting
0
61
Member Avatar for peter_budo

I have small code to read datas from "dat" type of file. It's read fine just when last line is done it's kick-off with error message [I][B]Exception in thread "main" java.lang.NullPointerException at CW2.main<CW2.java:26>[/B][/I] [CODE] import java.io.*; import java.util.*; class CW2 { public static void main( String[] args) { try { …

Member Avatar for jwenting
0
95
Member Avatar for tdizzle342

Can any help me with this code, im trying to get the program to return to a function. I have no idea how this is done. Give a lil explanation so I know for next time. Thanks here the code : // The "Calculator" class. import java.awt.*; import hsa.Console; public …

Member Avatar for tdizzle342
0
166
Member Avatar for nisaa15

HI, I wanted to know how could I retrieve a sealed object from a signed object and then verify it? Heres my attempt: if(!sending){//if we are receiving (being the server) ServerSocket server = new ServerSocket(port); Socket s = server.accept(); ObjectInputStream oin = new OnbjectInputStream(s.getInputStream()); ObjectOutputStream oout = new ObjectOutputStream(s.getOutputStream()); System.out.println("Please …

0
65
Member Avatar for rockStar60608

Does anyone have an opinion on which of these sorts would work best on a small array: quick sort, insertion sort, or selection sort?

Member Avatar for Micko
0
177
Member Avatar for BrownRukus

[url]http://rafb.net/paste/results/jibQzk63.html[/url] - comparable [url]http://rafb.net/paste/results/Noahue63.html[/url] - loading [url]http://rafb.net/paste/results/re1Swn60.html[/url] - contents of .txt file * sorry the paste is weird lol. Trying to List word count in alphabetical order - Already did that Having a counter so it counts the number of time that specfic word appeared in the txt file - …

0
58
Member Avatar for Rearden

I'm trying to create a custom dialog that acts much like th JOptionPane.showInputDialog() except it uses an asterisk as an echo character. So far, I've come up with the following. . . [code] class CustomInputDialog extends JDialog implements ActionListener { JLabel prompt; JPasswordField input; JButton ok; JDialog dialog; String word; …

Member Avatar for Phaelax
0
265
Member Avatar for ultimate_fusion

I am trying 2 write a program to solve a soduko. I have lots of text fields and I need to compare them like if (string1.equals(textfield){ do whatever} but it only works for "0" e.g null??/ I have tried parsing it to an int but get the same result. any …

Member Avatar for ultimate_fusion
0
246
Member Avatar for Andrew Minus

Hi, I wrote my assignment with simple awt-buttons at first.But, when i changed to JButtons,errors about setting JPanel with FlowLayout appear. enc: Error.txt // code of errors :)

Member Avatar for Phaelax
0
118
Member Avatar for gokul

hi, i developed a chatting application.. i want to do three things in the Frame Resizing. but i don't know how to do..? any one pls help me.. 1. i tried to restrict the user cann't resize the frame less than (300,600) by setPreferedSize(). it works. but the user can …

Member Avatar for mmiikkee12
0
79
Member Avatar for nisaa15

Hi all, I am trying to take a list of words (from a text file) and then split each word into characters how can I do this? The code I currently have just reads in all the words (at, as, ate, apple, apply) found in text file and prints them …

Member Avatar for mmiikkee12
0
191
Member Avatar for sweety engineer

hello every one, how are you?! I come back after long absent ,, and I want help from you,, just small question :D Suppose you wish to write a method that prints a heading on a new output page, along with a page number that is 1 in the first …

Member Avatar for sweety engineer
0
165
Member Avatar for skoiloth

Can one give a exat answer for this question i have a java program with hundred packages imported but iam not using any one of them in program .i have only a SOP which prints [B]hello world![/B] .the qustion is will this program is thick with all the imported 100 …

Member Avatar for skoiloth
0
89
Member Avatar for Cudmore

This is irritating me so bad, I have spent three hours aimlessly trying to get JScrollPane to work on my JList and I can't figure it out.. here is the code, please make the scroll bars work! :sad: [CODE]public class ChatServer extends JPanel { private JList lstUsers; private JScrollPane scroller; …

Member Avatar for jwenting
0
1K
Member Avatar for pokerponcho

Does anyone know of a good book to learn how to java it up with the phones?

0
103
Member Avatar for NSCelica

Alright, This is really bothering me that I can't figure this out since I took 3 terms of Java. Alright, I have a text file that contains addresses. ex: Name 1234 5th St Orlando, Fl 19191 Name2 1423 4th ave New York, NY 09987 and so on and so on. …

Member Avatar for NSCelica
0
90
Member Avatar for blackbabydoll

[code] import java.io.*; import java.math.*; import java.util.*; public class GrowthofaFunction { public int calculateFunction(int x) { return 0; } /** * @param args */ public static void main(String[] args) { public void calculateFunction(); { final int x; final int y1; final int y2; final int y; Scanner stdin = new …

Member Avatar for server_crash
0
123
Member Avatar for snl_edupuganti

Hi, I am new to this group... Can any one help me regarding this Scheduler project? I attached the question regarding the project. Thanks in advance... sri

Member Avatar for jwenting
0
86
Member Avatar for k_en

I need some guidance because i haven't started to learn java. May i know what type and the name of book is suitable for a beginner ? And does anyone know what type of software i have to install in order to do the programming ? :mrgreen:

Member Avatar for jwenting
0
162
Member Avatar for anbarblue

Need help rounding. `MoPay.setText` is showing up as .########### (I'm new to this language.) Oh, and my dollar sign isn't showing up, does anyone no why? public void actionPerformed(ActionEvent e) { int Mort; double Int; int T; if(e.getSource()==Reset) { answer.setText(""); answera.setText(""); answerb.setText(""); MoPay.setText(""); } else if(e.getSource()==Calculate) { try { Mort …

Member Avatar for jwenting
0
137
Member Avatar for anbarblue

Here is my code so far. I'm not sure what I'm doing wrong, but I cannot get it to compile. Incompatible Types (Lines 90 - 92) . Please Please Help. My ultimate task is to write an Applet Mortgage Calculator. import javax.swing.*; import java.awt.*; import java.util.*; import java.awt.event.*; import javax.swing.JOptionPane; …

Member Avatar for anbarblue
0
260
Member Avatar for OllieFalle

Hi all : ) Im messing around with the game of Nim and i want to create some strategies to make the game more interesting. I have finished all the other code and all i need to do is this. Basically i want 4 classes The first strategy will be …

0
76
Member Avatar for blackbabydoll

I really need help. I did the code, but I know it is all wrong. I am not sure how to fix it. This program has boggled me for a week. I am watching the growth of the function. First I have to calculate a function after entering the value …

Member Avatar for blackbabydoll
0
239
Member Avatar for Cudmore

Hey y'all! I'm fairly new to internet programming, and I'm surrently developping my first socket app in Java.. Now I have a question... I wrote a simple chat client to learn the commands, it uses a datagram socket (that's what I want to stick with for now) and sends/recieves messages.. …

Member Avatar for Cudmore
0
179
Member Avatar for mcook228

We've been given an assignment to create a system that an investigator/scientist/etc. would use to store data of any sort (mainly structured data and unstructured free text), analyze the structured data and create technical reports using the stored data. I've created my structured data class as follows, using a LinkedList, …

0
75
Member Avatar for rockStar60608

I'm having problem loading a java gui into a html page as an applet. I believe the problem is the init method. this is the first time i've had to make one and i don't think i did it right. here is my java code: [HTML]code[/HTML] package gui; import java.awt.*; …

Member Avatar for rockStar60608
0
200
Member Avatar for Frank0051

Hey everyone, I'm just wondering if anyone knows of any cool examples of a Java based multimedia program (besides the one that comes in the JMF). I have seen some pretty basic ones, but I'm wondering if there are any out there that are at the level of Winamp or …

Member Avatar for Frank0051
0
123
Member Avatar for Frank0051

I been working on this little program that would allow the user to reference this custom playlist file. The playlist file is a simple text file with a list of music files on a URL: [code] http://www.whatever.com/a.wav http://www.whatever.com/b.wav etc... [/code] Basically what the program would do is ask the user …

Member Avatar for Frank0051
0
173
Member Avatar for bonzermahesh

Hi all, I need a code which allows me printing of JPanel. VIMP is the JPanel contains large number of Other components such as Jcheckbox, JLabel, JButton on top & Bottom also, JTabel & JTextarea is inside JScrollpane. Something like this. JLabel JLabel JLabel JCheckBox JCheckBox JCheckBox JLabel JTextPane JTabel …

0
89

The End.