31,001 Topics
|
|
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 … |
|
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 |
|
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 { … |
|
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 … |
|
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 … |
|
Does anyone have an opinion on which of these sorts would work best on a small array: quick sort, insertion sort, or selection sort? |
|
[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 - … |
|
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; … |
|
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 … |
|
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 :) |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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; … |
|
Does anyone know of a good book to learn how to java it up with the phones? |
|
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. … |
|
[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 … |
|
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 |
|
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: |
|
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 … |
|
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; … |
|
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 … |
|
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 … |
|
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.. … |
|
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, … |
|
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.*; … |
|
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 … |
|
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 … |
|
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 … |
The End.