35,618 Topics

Member Avatar for
Member Avatar for mc080201812

Question 1 You are required to write the code for sevlet which will take username and password from the html file and matches with database which contains two columns; one for username and other for password. Providing correct information leads to welcome page otherwise to a login page again. You …

Member Avatar for javaAddict
0
83
Member Avatar for funwithme

Create unlimited dynamic textbox and insert that value which is fill by user in database.how to do it in JSP, Servlet and Hibernate , MySQL explanation:suppose i fill my name "David" in 1 textbox now i clik add more generate 1 text box fill in this "Chris" if wanna more …

Member Avatar for kvprajapati
0
150
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 rudhra216

hi, any one plz tell me how to connect oracle database with the help of struts . i am begginner in struts or plz send me some tutorial in struts or plz send me some sample project in struts thank u:eek:

Member Avatar for peter_budo
0
87
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
108
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
145
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
258
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
111
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
113
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
136
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
78
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
70
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
92
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
167
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
87
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
117
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
90
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
217
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
88
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
83
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
97
Member Avatar for robbiepoo

Ok so im doing a project for school and i made an array to add up the scores. (the project is a learning module, (game)). So heres my code, i have declared everything in my main program (starting one) called science.java and my two other parts of the game (true …

Member Avatar for masijade
0
85
Member Avatar for dev.mena

if chat room members is 4 and each have mic the server receive the 4 packets and resend it in the same order here more delay in the client to run packet 1 and 2 ..... i want to merge the sound and send it to be in the real …

Member Avatar for JamesCherrill
0
110
Member Avatar for mintsmike

Hello people: I am trying to create a ComponentListener method that will resize some components when the window is resized. I have tried the following code, only to find out that it didnt work: [code] import java.awt.event.*; import java.awt.*; public class PowerEvent { PowerMath gui; PowerEvent(PowerMath in) { gui = …

Member Avatar for mintsmike
0
315
Member Avatar for suncica2222

how can I trigger anything outside the method ??? like carry the boolean a outside [CODE]public void windowClosing(WindowEvent arg0) { System.out.println("Window Closing"); a=true; // cant refer to non final variable a inside an inner class defined in a different method[/CODE] I want to use "a" in while loop for instance …

Member Avatar for suncica2222
0
278
Member Avatar for scream2ice

hi everyone Im working on a program that includes hash tables and files. What i'm doing is that I save the information (Name, Student ID, Address, Phone No.) of some students in a text file. I use a hash table to work on the students' information. Things like showing the …

Member Avatar for JamesCherrill
0
98
Member Avatar for stewie griffin

Hi, I have java code, in the code there is about 5 lines that I wont to open in new Thread, I don't wont to crate all new class for 5 lines , can I can I implement the Thread inside the method without new class?

Member Avatar for stewie griffin
0
102
Member Avatar for mbichichi

Hi I am writing a java program for a mobile database that should input from the user three entries (manufacturer, Model and Rating) save this in an array and file and be able to search from the data i the file and print on screen. I have written it but …

0
34
Member Avatar for wonder_laptop

Hello, can you PLEASE put a SIMPLE traceroute code in java. i googled traceroute but i got a bunch of compicated codes. im new in networking programming, i want to implement the traceroute command . i already managed to create a network and wrote a program for the laptops to …

Member Avatar for huj_v_palto
0
188
Member Avatar for Metahuman

Hi everyone, I am trying to set my own calendar in JAVA. What I mean is, unlike the default Calendar I want to construct my own Calendar where a day will be only 13 hours for example instead of the 24 and there will be 30 days in every month. …

Member Avatar for JamesCherrill
0
96

The End.