36,051 Topics

Member Avatar for
Member Avatar for sam1

hi, How many libraries does java has for gui part of an application? I know about 2 of them, swing and AWT, but I dont knw the difference between the two? thanks :mrgreen:

Member Avatar for sam1
0
121
Member Avatar for hemanth.balaji

I have a href in my JSP.... say page1.jsp --------------- <a href="<%=response.encodeURL(FRONT + "/RemoveReport?reportTemplateName=Test123#&'")%>"> In my second JSP ------------------ I have String reportTemplateName1 = request.getParameter("reportTemplateName"); Now what is getting stored in reportTemplateName1 when i an printing is Test123. I am also trying to pass Test123#&amp;' and then also its not …

0
83
Member Avatar for iamthwee

Hi, I so close to getting this to work. Basically, I trying to wrap my program up in a jar file. So that wen i doulbe click it, it executes. Much like c/c++ programs do. I can jar it up from the command line, but when i double click it …

Member Avatar for jwenting
0
1K
Member Avatar for sam1

hi im new to jsp iam using netbeans. I have a image in C: called w.gif. in index.jsp i have <img src="C:/w.gif" alt="W"> but it doesnt show the picture. any help? thanx

Member Avatar for sam1
0
107
Member Avatar for DiTony

Please help I keep getting this error message after compiling the following SimpleList.java C:\jakarta-tomcat-5.0.28\webapps\Ch04\WEB-INF\classes\Ch04>javac SimpleList.java SimpleList.java:21: cannot resolve symbol symbol : class Questions location: class Ch04.SimpleList Questions questions = new Questions(); ^ SimpleList.java:21: cannot resolve symbol symbol : class Questions location: class Ch04.SimpleList Questions questions = new Questions(); ^ 2 …

Member Avatar for DiTony
0
166
Member Avatar for mariposa104

I try to run this program but I don't can. write a Java Program that calculates the length of a hypotenuse of a right triangle.the method should take two arguments of the double and return the hypotenuse as double. import java.io.*; public class Hypotenuse { public static void main(String[] args) …

Member Avatar for server_crash
0
318
Member Avatar for server_crash

I have a weird question. I'm trying to access a .txt file from a java applet, which would reside locally. When running this with the applet viewer, everything works fine. When you click on the .html file, however, you get an accesscontrolexception. I find it weird that the applet viewer …

Member Avatar for server_crash
0
196
Member Avatar for sushanti_mm

Hi, I m Sushanti here. I m doing a project for making and receiving telephone calls through PC. I have connected my telephone to my PC's full duplex voice enabled modem. I m using javax.comm package for the same. The problem i m facing is that i m able to …

0
99
Member Avatar for hatch101

Hello, im new to this forum. I have an assignment for class that I am really confused with, please can you guys take a look and help me with the code or point me in the right direction, I am not asking anyone to do it for me...I ofcoarse wouldn't …

Member Avatar for Phaelax
0
1K
Member Avatar for Phaelax

I have a JTree, the renderer uses JLabels. If I setOpaque(false), then I get display issues with highlighting tree nodes/leafs, so I keep the rendering of the jtree opaque. I'd like to display an image for the background and have the text from the jtree elements displayed over top of …

Member Avatar for Phaelax
0
179
Member Avatar for sam1

hi everyone, say i have three text boxes in jsp form. and i want them to be written in database row by row, how would that be done? thank you ps I posted it here because nobody is answering it in jsp...

Member Avatar for jwenting
0
50
Member Avatar for Ghost

Hi Everyone, I'm trying to create an instant messaging program, but for some reason the client and server won't connect. My code is below. Thanks in advanced for helping me. By the way, the client and server program are one in the same. A radio button gives you the option …

Member Avatar for jwenting
0
160
Member Avatar for namit

i have a bunch of images 1.jpg, 2.jpg etc.. I have a class called banner and wondering how to get it to randomised threw the pics? Thanks

Member Avatar for server_crash
0
134
Member Avatar for iamthwee

Hello I need help and fast, time is running me out. [B]StudentMark class[/B] A StudentMark object hasd three attributes:moduleNo(a string),studentName(a string) and mark an (int). There is a constructor which registers a student (studentName) with a module number (moduleNo) at the time of construction. There are methods that enable new …

Member Avatar for jwenting
0
157
Member Avatar for blackbabydoll

I am doing a project where I have the find the smallest value and the smallest object. In this project, you will write two methods. The first will take an array of int and will return the smallest value in the array. It will have a declaration as follows: int …

Member Avatar for server_crash
0
134
Member Avatar for reezal

I just started both RMI and CORBA programming, yup normal basic Hello World from available tutorial at google achieve. But apparently none of them works. So could anyone pls let me know what or which software should i use ? current im having netbean 4.0 which wont work for both …

Member Avatar for jwenting
0
96
Member Avatar for sam1

hi I have a block which is : try{ ........... try{ ............ catch{ ...... catch{ ..... finally{ .... try { ..... catch{ .... but i get errors. why is that? thank you

Member Avatar for jwenting
0
40
Member Avatar for hango

hello~everybody! I am a beginner of Java, I want to create a CA(Certificate Authority) that issues a x.509 certificate when user sends his/her identity to CA (registration). I know there is a X.509 API for JAVA,but i don`t know how to use it! Who can tell me how should i …

0
69
Member Avatar for Frank0051

I have an interesting question, I'm helping someone can help me out with this. I have been playing with the JavaSound API and I have come into contact with the FloatControls (pan and gain). Basically I know these controls only work if the line supports them. I have been working …

Member Avatar for jwenting
0
93
Member Avatar for Lexani

is there any good adsence sites out there that support just html ads? if so let me kno

Member Avatar for pulse
0
131
Member Avatar for Xtothel

hi, i have my program here [url]http://xiaobo.midnight-grove.net/doc.zip[/url] since i am new to Java, i would like some help in positioning the labels and text area and the button(everything!!!) test data: enter "91173" into the text field.

Member Avatar for server_crash
0
102
Member Avatar for sam1

hi everyone, I have to talk about the java's architecture in general. Do you guys know what to talk about? I already talked about how simple and how oop etc it is.... anything else I can add? thanx

Member Avatar for sam1
0
68
Member Avatar for hemanth.balaji

I am getting the following when I run deploytool in command prompt Starting Deployment tool, version 1.3.1 (Type 'deploytool -help' for command line options.) Could not connect to localhost --------------------------------

Member Avatar for jwenting
0
57
Member Avatar for Frank0051

I have been having this weird problem with this small part of code: [code] if(isURL) File audio = new File(name); else URL audio = new URL(name); [/code] Now isURL is a pre-declared boolean and name is a pre-declared string. I have all the proper imports but for some reason or …

Member Avatar for jwenting
0
124
Member Avatar for indianj

hi, i need someone to look at my homework and give me comment where and how should i begain with. Choose one of the stack implementations and implement a method with this specification: Object itemAt (int n) //precondition: 0<=n and n<size() //postcondition: the return value is the item that is …

Member Avatar for iamthwee
0
169
Member Avatar for wahaj_khan

Hi I need some help for HTML for embedding checkList Box. How can embed CheckList Box on HTML Page using Java Script code. Thanks

Member Avatar for tgreer
0
191
Member Avatar for sam1

hi does any1 knw how to put the path for servlets in netbeans. it is located in src/java/controll/servlet i have this in my code action = "servlet/controll.servlet" but it says directory not found thanx

Member Avatar for sam1
0
99
Member Avatar for grajeshmsc

Hi all I'm using Business Objects Crystal Reports.I want to add my Custom print image and javascript.I can remove the default toolbar.But I cant able to add the custom javascript to the image i inserted in the crystal report.Please Help.

Member Avatar for grajeshmsc
0
86
Member Avatar for apollon

Hi all , I'm a Java newbie ..... Currently , I'm having a Java project on programming to send and receive data between two computers with the support of USB dongles ... But I really dont know where to start ... Do you guys have any advices or sample codes …

Member Avatar for jwenting
0
121
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
156
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
64
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
103
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
186
Member Avatar for taylorjt4

Hey everyone, Im running Windows Xp and at certain times, programs just shut down. I think i might have a virus or a worm. Here is my hijack log. Thanks in advance Logfile of HijackThis v1.99.1 Scan saved at 6:44:34 PM, on 12/9/2005 Platform: Windows XP SP1 (WinNT 5.01.2600) MSIE: …

Member Avatar for DMR
0
124
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
69
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
181
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
60
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
277
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
362
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
120
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
81
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
211
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
172
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
98
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
106
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
95
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
135
Member Avatar for ylithian

Hi all, I'm a newbie of JSP programming... I've a great problem (but for you surely is a little thing)... I get an error on the last version of Tomcat with my webapp (weird but with the older 5.4 it runs perfectly...) this line in my index.jsp is the source …

Member Avatar for jwenting
0
282
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
89

The End.