Hi all,I'm testing the JCE1.2.2 both in Window NT and SunOS 5.8I'm using JDK 1.4so i have to install the JCE package.In Windows NTI add the linesecurity.provider.3=com.sun.crypto.provider.SunJCEinto $JREHOME/lib/extthen I'll do the same in SunOS 5.8after that I compile the Blowfishkey.java ...
1684 byte By
GizmoC at 2007-9-30 2:27:03
Hello folks,Its been a while since I dropped by here. Nice to see ya'll active and helpful as ever. :)I am a Computer Science sophomore. I enjoy programming. I like Java and I am always curious to learn more classes.However, I hate Calculus. Note that I am not saying that I hate Math. I am ...
I'm using Jakarta Tomcat with IISI made a serlvet "UserActions"package global;import java.beans.*;import services.databaseservice.*;import SqlI.*;public class UserActions{ public UserActions() {} public static void logIn(String User, String Pass) {................}}and put the .class file ...
1344 byte By
Hal@ at 2007-9-30 2:27:21
HelloI am getting the above error in my applet that has sales totals in a two-d array. Granted, I'm pretty shaky on arrays. Please helpimport java.awt.*;import javax.swing.*;public class sales extends JApplet{int receipt[][] = {{ 1,2,3,4 },{ 5,6,7,8 },{ 9,10,11,2 },{ 13,14,16,8 }};JTextArea ...
6697 byte By
khalp061 at 2007-9-30 2:27:22
I get a null pointer exception and all this other stuff when I try to run my program:java.lang.NullPointerExceptionat PostScriptDisplay.paint(PostScriptDisplay.java:28)at sun.awt.RepaintArea.paint(RepaintArea.java:177)at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260)at ...
739 byte By
tink14 at 2007-9-30 2:27:28
SO i'm new to java and have this problem. I have to complete the for loop so that the left column of the table contains the celsius temps 1-20 and the right column is the equivilant Farenheit values.Here is the problemclass TempChange { public static void main (String [] args) {int ...
Hi I would like to make an application of mine multi threaded so that I can access and process data from a collection with multiple threadshowever I am unable to grasp the full concept of threads and have written a little program (below) that illustrates the problem The output from this is ...
142 byte By
Doom777 at 2007-9-30 2:27:49
If you remove the 0th object in an array list of more than 1 Objects, does it automatically shift all of the top Object's down?
7023 byte By
Aerin at 2007-9-30 2:27:59
I keep getting the error cannot resolve variable addStud . I can't figure out why. I've created objects of classes before this way, then called methods within that class like this and it worked fine. I can't discern any difference between the syntax of the program that worked successfully ...
321 byte By
patrivet at 2007-9-30 2:28:07
Hello,Has anyone experienced problems with handling entries into a String field when a user uses single quotes for example ....My chosen product is the 17' Flat ScreenWhenever a user enters the ' character, the JTextField has problems - is there a way around this?Cheers ...
99 byte By
hjouni at 2007-9-30 2:28:08
what is the best way to learn Java OOP since i just know the basic of java ,,,
hi.. basically wat i'm trying to do is ask a user to input a 'char' so that i would make a pattern.. for example;[user enters * to be used as pattern]then using for loop.. i want the patternt to be like* *** * ** *** so thats wat i want.. but i'm having trouble since i'm a beginner.. i ...
1566 byte By
Hal@ at 2007-9-30 2:28:19
HelloCan you tell me why my buildString method is not putting text into my applet? thanks for any insights!!Halimport java.awt.*;import javax.swing.*;public class sales extends JApplet{int receipt[][] = {{ 1,2,3,4 },{ 5,6,7,8 },{ 9,10,11,2 },{ 13,14,16,8 }};int SPeople, products;JTextArea ...
1299 byte By
Aerin at 2007-9-30 2:28:26
I am using JInternal frames for a program. So far, selecting one option from a menu opens a frame which allows the user to enter certain information. Other menu options and frames will process or add to that information. The initial frame (frame 1) creates an object of a class which is used to ...
Hey , i'm trying to create an application where user enters a word (any word) from a file containing a piece of txt and by the doing this the txt is loaded and the entered word displayed on the txt. I wrote this code but for some reason it don't work....public void findString(){String ...
998 byte By
rskurtz at 2007-9-30 2:28:52
can somebody help me out with this program i'm trying to write. it's suppose to randomly choose 80 characters 'a', 'c', 't', or 'g' from the 'Str' array, does this 125 times and puts them into an 10000 character file. i also want to then display this file so that i can see the 10000 ...
i have a jtable but i don't want users to change the data by clicking on a cell and typing there own information so i set the table.setEnabled(false)but i have a modify button that needs to enable certain columns, but i am not able to get it to workany help would be appreciatedthanks ...
1635 byte By
Aerin at 2007-9-30 2:28:54
It keeps saying "Cannot resolve symbol: symbol class ListSelectionListener". I am doing this just like the examples I've seen, and I've included event package.... Am I doing the syntax wrong? [code]import java.awt.event.*;import java.awt.*;import javax.swing.*; public class InsFrame extends ...
Hi,String path=C:\abc\efg\filename.txt;if I just want to get the "filename.txt" from the path, it is ok to write a method to handle it, however,I think there must be a much simple solution.such as: String filename = path.get..();Does someone know how to use one statementto do it?Any helps ...
What is the default port number for a Java Applet using a HttpURLConnection?
Hi,I am using a CGI script to make an HTML page conataing Applet tags. I am stuck on the following:1. After writing the HTML page on the webserver (containing) the HTML tag, how do I send it back to the browser2. Onloading the applet with parameters, it gives a null pointer Exception saying ...
11688 byte By
mohadib_ at 2007-9-30 2:29:30
hello, I have written a little program that is supposed to set the CLASSPATH var in a instance ofbash ... not set it permantly. Anyway, after running the program when i run,echo $CLASSPATH none of the changes i make with the program are there.... why is this?thanks,jd import ...
Hallo all gurus!I am a web admin, previously I wanted to download a picture on my photogallery column. This error prompted.We use Java - jdk1.3.1_04Please help. Error: 500Location: /AmalAdmin/AMXT_CMG06.jspInternal Servlet Error:java.io.IOException: Posted content type isn't ...
Hi,I execured following code. And as in java references of the objects get passes the output of the program should be "hi" and not "hello". Can anyone explain why this is so..public class Test { public static void main(String args[]){new Test().fun1(); } public void fun1(){String str = ...
hi guys,my name is sherry, and i'm in my second year of an IT bachelor's degree program. i'm currently taking a class called Software Analysis and Design where we have to design, code, and implement a program. we have designed a project that is an electronic accounting distribution system. ...
i know % produces the remainder from integer division (B Eckel's dixit)We all learned, at primary school, how to divide, using the respective algorithm.In Java, the execution of this algorithm stops at first iteration.Ex:0.52 / 0.4 = 1.30.52 % 0.4 = 0.12As i'm building an app so that my kids ...
1985 byte By
Aerin at 2007-9-30 2:31:36
I have an array of doubles with 10 elements which I need to retrieve the minimum value of. The number of elements in that array which are replaced with user inputed values may vary. Since the array values are initialized to 0.0, the default minimum is 0.0 rather than the minimum user value.I ...
Can anyone point me to some really good reference materials/tutorias that cover creating your own Look And Feel. Thanks in advanceDC
294 byte By
Sikverti at 2007-9-30 2:32:12
Hi, I posted this on the Mandrake forums but hopefully you can answer this too. I've installed the SDK as noted in the instructions, but when compiling a java file, it prints out:gcj:no input filesits' the same if I just type javac. Anyone know what's happening?
289 byte By
hjouni at 2007-9-30 2:32:16
i have made some java files in java project but when i compile the files it gives me error " error 300 : classes are not found " <<should the classes be created automatically or i have to create them>>i will post more info if necessary
Hello,How can we display numbers in this form like 01, 03 or 09 etc...using Math.random method or any other ways.thank u
I tink that there ara 3 possible ways to do a java program:"command-line""an applet"And other way were a window is opened with menus, butouns, I tink its name is GUI? How can I create a program of this type? Is there any free manual to learn it you advise-me?Thanks for your posts! ...
Hi..I'm trying to accept data using StringTokenizer, then manipulate that data depending on certain conditions. I thought it was working, but then I noticed that any char can be entered, and it always multiplies by the .04...any ideas? thx in advance :) import java.io.*;import ...
1834 byte By
Auzlin at 2007-9-30 2:32:46
Alright, this is difficult to explain, but I'll do my best.I have a class that when initiated opens a large file (75MB). This file is basically a database dump because the team will not give us access to the database or provide us with APIs.This file contains records, each line being a record ...
661 byte By
jac19 at 2007-9-30 2:32:47
I draw some graphics on a jPanel3 that has a null layout manager. This panel sits on another panel jPanel1 that has a null layout which sits on a jApplet. The code is: p =new DrawCurve(currentIndex);jPanel3.add(p, null);p.setBounds(new Rectangle(0,0,400,400));this works fine on initialisation, ...
ok, Im working on my first applet and this is an assignment. I'm trying to draw an X in the which extends from all four corners. The erroe im getting is "Lab3 is not abstract and does not override abstract methoddrawLine(int,itn,int,int) in Lab3" Here is the code, what am I doing wrong.import ...
Hey people I need bit of help writting a very basic program for a project due on wednesday of this week. I am new at this I wanted to see if I could get some help from you.I need basically to write a program that when you insert the year of birth it displays the chinease symbol or charater ...
Hey people I need bit of help writting a very basic program for a project due on wednesday of this week. I am new at this I wanted to see if I could get some help from you.I need basically to write a program that when you insert the year of birth it displays the chinease symbol or charater ...
150 byte By
rtram at 2007-9-30 2:33:03
Is a JPanel that is painted by the paintComponent() by ActionListeners(which call repaint()) scrollable?.The panel is added to a JFrame.
897 byte By
Ann_28 at 2007-9-30 2:33:12
Hello Everyone,**Call from main is here:replaceStringBuffer(line1,"How","Where",0,26);** Method to replace string is here:public static void replaceStringBuffer(StringBuffer input, String find, String strReplaceWith, int startPosition, int endPosition){String temp;int ...
897 byte By
Ann_28 at 2007-9-30 2:33:13
Hello Everyone,**Call from main is here:replaceStringBuffer(line1,"How","Where",0,26);** Method to replace string is here:public static void replaceStringBuffer(StringBuffer input, String find, String strReplaceWith, int startPosition, int endPosition){String temp;int ...
This may not be the correct forum for this question, but is there a way to get the latest version of java other than via download. My dialup is just to slow...or are there pieces that can be downloaded instead of the entire "multi" MB download.
4598 byte By
spy101 at 2007-9-30 2:33:53
Hello all and thank you for at least reading in to this. Ok I made this applet and I am having 1 error when I compile it. The error message is as follows:HashTest.java [35:1] cannot resolve symbolsymbol: class java.awt.Colorp.SetBackground(color.red);^1 errorErrors compiling HashTestOk sorry I ...
298 byte By
NicoCsm at 2007-9-30 2:33:56
I am trying to run a scp program using Runtime.exec()However, i keep getting the password prompt... is there a way that i can eliminate the password prompt?String command [] = {"scp filename user@host", "password"};Process p = Runtime.getRuntime().exec(command);
I need to an if/else statement or probably just an if statement to a code I am writing for a calculator to check that my Roperand is not equal to zero. I have not been able to get it on my own, so can anyone offer any help? The code is:import java.io.*;public class Calculator{private double ...
Sorry if this is a repost. But I just want to confirm my understanding about the basic concept about:"pass-by-value" Vs "pass-by-reference"With intrinsic types/primitives - it's "pass-by-value":int addint(int num1, int num2);With "Object's" - it's "pass-by-reference":void ModObject(Object ...
I have two classes, Employee.java (my problem domain) and Project1Tester (my driver). Within Employee.java I have this:package prob1;import javax.swing.*;import java.text.*;import java.util.*; public class Employee { //declare data members private String employeeName; private Date ...
Can somebody tell me why this doesn't work?String temp = "49";num = Integer.valueOf(temp);
132 byte By
Rembam at 2007-9-30 2:34:19
Is there an easy way to convert a decimal number into binary and vice versa or do I have to write a method to do this?
I have an assignment to take 10 numbers and and print them out like soNumberSquare root Even/Odd===============================================================12345678910I have two questions. What is the formula for the square root of each number and how would I format it to print out in 10 ...