31,001 Topics

Member Avatar for
Member Avatar for VernonDozier

I'm starting to experiment around with Java Web Start since applets have some limitations. I'm using Net Beans and it's working fine except that I get this pop-up when I run it: [quote] The application's digital signature cannot be verified. Do you want to run the application? [/quote] It would …

Member Avatar for VernonDozier
0
507
Member Avatar for KirkPatrick

I'm having a problem with my countdown timer and am figuring that I'm missing something obvious. All I'm trying to do here is get my jLabel to countdown from 60 to 0. [code] ActionListener refreshListener = new ActionListener() { int counterLimit = 60; public void actionPerformed(ActionEvent e) { javax.swing.Timer refreshTimer …

Member Avatar for KirkPatrick
0
113
Member Avatar for kimbokasteniv

So I am writing a voice activated recording program, and one of the things I would like it to do is plot the current and past volume level on a JPanel. Write now I am simply reading one byte from the audio buffer, converting it to an int, taking its …

Member Avatar for kimbokasteniv
0
208
Member Avatar for exzibit23
Member Avatar for masijade
0
44
Member Avatar for alsoumhi

Hi all , I have decided to use java applets and java servlets regarding creating a form.(because I don't know other langauages except java) guys the scenario is like this , visitors will enter to website, surfing it and then they will enter to feedback form , they have to …

Member Avatar for kvprajapati
0
102
Member Avatar for grisha83

Hello, I am getting out of bound error whenever i run the program and trying to add a Node (this would be in my switch). but the error that i am getting is just above my switch statement. Can anyone help me to figure out what it is that i …

Member Avatar for grisha83
0
206
Member Avatar for abhishaki

hello friends,I made an applet to calculate sales tax but i am having a problem in executing it.It is giving error on execution. and the error it is giving is, cant create:java.lang.reflect.InvocationTargetException following is the piece of code of applet. import java.awt.*; import java.awt.event.*; import java.text.*; import javax.swing.*; public class …

Member Avatar for abhishaki
0
165
Member Avatar for SnagglezMaw

I'm trying to compare lines in two different files. The basic idea is I want to take line 1 of file 1 and compare it to all the lines of file 2 and print the results into a third file, then do the next line of file 1 and repeat …

Member Avatar for Ezzaral
0
110
Member Avatar for elnuk

i want to write an application that will use a mobile phone to make voice broadcast in java.I know it is possible,but what are the dimensions,i will be very grateful if any1 can render an opinion to help me out

0
42
Member Avatar for dev.mena

i made an audio application confernce using tcp it was good but the delay was not good i try to do it using udp but i found some problem like nat network and i can't use the same socket to send and receive in two threads tell me this socket …

0
39
Member Avatar for nagachaitanya

1. a. Create a parent class "Vehicle" with one method "turnLeft" that prints "Vehicle turning left". b. Create a child class "Bike" which overrides the "turnLeft" method and prints "Bike turning left". c. Create a Vehicle reference referring to a Bike object. Is it legal? What happens when the "turnLeft" …

Member Avatar for JamesCherrill
0
112
Member Avatar for Ankita B

Hi,Im makin a web based application.For users to access it they need to login. I m using java,jsp,html for this.I wish to know how can i prevent access to the pages of application without logging in i.e. if user types in URL of some page of application in the address …

Member Avatar for deepak_8917
0
167
Member Avatar for anshusharma

anybody online there, i want the solution of my problem.i will feel free to discuss the code of my aplication

Member Avatar for peter_budo
0
97
Member Avatar for PhiberOptik

I am trying to execute a exe file within' a jar file. My question: 1. How do I locate the exe within' the jar? I am using the [ICODE]runtime().exec()[/ICODE] to launch it. Right now I have to extract it then launch it, then after it's finished delete it. Thanks PO

Member Avatar for masijade
0
107
Member Avatar for smoore

Okay so I found some code online to create a simple chat server and I was trying to teach myself with it. I have a few questions though. First off here is the code: [B]ChatServer.java[/B] [CODE] import java.io.IOException; import java.net.InetAddress; import java.net.Socket; import java.net.ServerSocket; import java.net.UnknownHostException; import java.util.Scanner; public class …

Member Avatar for smoore
0
142
Member Avatar for suncica2222

I just inctance 5 JFrames with string drawed and its using 100% ...??? that add(panel); make the diference in CPU 5 or 100% I marked it in the comment in the code here's the code: [CODE]//import java.awt.event.WindowEvent; //import java.awt.event.WindowListener; import java.awt.*; //import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.event.*; import …

Member Avatar for sciwizeh
0
256
Member Avatar for SnagglezMaw

Is there something in Java that will perform the + or - operation? I need to compare a couple variables but the variables are not going to be exact, they'll be off by about +or- 2.

Member Avatar for peter_budo
0
108
Member Avatar for localp

1.) I want to stream Live Audio, and i have chosen JMF to do it, i am an absolute beginner to JMF, so can anyone help me by providing me with some easy to understand Source codes of a Live audio/video program, so that i could go through it and …

Member Avatar for saini.amit007
0
112
Member Avatar for sciwizeh

Hello all, it's been a while since I've had a question, but I'm back. I'm trying to write a Vector class which can be any type. The problem I have is that generics can only hold objects, so when I try to say x+=vec.x it says that it cannot do …

Member Avatar for sciwizeh
0
134
Member Avatar for kartheepanmirra

Hi i am working swing based applet application which is deployed on a [B]jboss3.2.6[/B] webserver.the jar file [B]application.jar[/B] size is 140kb.i compressed the jar file using sun java pack200 technology as [B]application.pack200.gz[/B] file.now the jar file size is 46kb.the jar is deployed on application.war file with context-path [B]/application[/B] on the …

0
77
Member Avatar for Xessa

In my textArea the strings ' and " are passed to my Java method as unicodes. So instead of ' what i see is ’ What can i do to prevent this because it is also updated in the database as its unicode representetive.

Member Avatar for JamesCherrill
0
69
Member Avatar for brandongood

Im working on a program that requires you to create an array with 10 elements, and asks the user to enter values for each array. Then, you need to copy the contents of the first array into another array, in reverse order. Can someone walk me through this one? Im …

Member Avatar for brandongood
0
91
Member Avatar for puneetkay

Hello, I just discovered that we can use unicode anywhere in the program. EG :[CODE=java] public class CheckUnicode { public static void m\u0061in(String\u005B\u005D args) { System.out.println("Hello World!"); } } [/CODE] \u0061 = 'a' .. \u005B = '[' .. \u005D = ']' This program will execute fine without any errors. But …

Member Avatar for puneetkay
0
164
Member Avatar for brandongood

Ok, I have to write a code snippet that prints out the value of 2 to the powers of 1 – 31 in a 10 character width, right-justified column. You may not use any literals or Math methods. Seeing as Im not allowed to use Math.pow, the only other option …

Member Avatar for brandongood
0
85
Member Avatar for suncica2222

I need timer that is going to make pause in running of main thread. Like Thread.sleep() does,just I don't want to create Exceptions like this does. So I want to use Timer class. "java.util.Timer;" this one. I want to make class and to use her constructor where I need pause,like …

Member Avatar for JamesCherrill
0
113
Member Avatar for gitech

Hai friends, i want to invoke .net webservice([url]http://www.meizlik.com/Service.asmx[/url]) in java, how can i invoke, pass parameters to get result. please help me for this problem.

Member Avatar for kvprajapati
0
89
Member Avatar for Hockeyfreak889

ok so have been assigned to make a 2 player tic tac toe game for my final project this year in school. However since this is a fisrt year java course we are using like "fake java" just to get the hang of it. Except now i have to work …

Member Avatar for BestJewSinceJC
0
215
Member Avatar for mintsmike

Hello People. I have set up my simple Java GUI to use a JTextPane. I need it to display the following 3 lines over and over again: [LIST=1] [*]A line with input from a variable (aligned left) [*]A line with output from a variable (right aligned) [*]A blank line [/LIST] …

Member Avatar for BestJewSinceJC
0
83
Member Avatar for robbiepoo

I posted before but i had to repost to add the code thing. So heres the program. [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; import java.awt.Color; import java.awt.Font; public class Testknowledge3 extends JPanel implements ActionListener { //Declare objects JButton Next; JButton Back; JLabel label; ImageIcon icon; JTextArea title; …

Member Avatar for BestJewSinceJC
0
81
Member Avatar for weblover

hi all , how are u? i have a question , i have a java project and i want to check if a fucntion is called or executed while the execution of the program ..how can i do this ?....thnx in advance...

Member Avatar for weblover
0
95

The End.