35,618 Topics

Member Avatar for
Member Avatar for claudiu_is

I have a Dialog window with a [INLINECODE]Button ko[/INLINECODE] and a [INLINECODE]JLabel l[/INLINECODE]. The button`s label refreshes at 1000ms from 5 to 1. There are 2 problems: the [INLINECODE]JLabel l[/INLINECODE] it`s not displayed before the counter starts, it`s displayed after that, and the button doesn`t work during the countdown, if …

Member Avatar for claudiu_is
0
157
Member Avatar for himanjim

Here is my code for an applet in java it runs well but shows error unreported exception java.io.IOException; at the functions highlighted in green I wanna ask the functions i've highlighted highlighted in green in code are supported in applets? Thnx in advance /* * Java(TM) SE 6 version. */ …

Member Avatar for masijade
0
106
Member Avatar for soda0091

I am trying to set up a java server page and mysql. I have installed jdk and all of the neccessary tools and drivers. I am using Tomcat for the servlet container. I have also set up an account with a password on mysql. I think that the only issue …

Member Avatar for masijade
0
583
Member Avatar for nikhita
Member Avatar for balagangadharm

Can any one help me in generating a billing report in java without using any reporting tool. I should get the header, footer and pagebreaks.If the billing takes two pages then header should cum in first page and footer in last page..please help me I would be favourable for u …

Member Avatar for masijade
0
83
Member Avatar for othz08

can someone help me with my assignment ^__^ pls give me the code of magic squared that will ask the user to enter the size of array matrix thank you!! ^_^

Member Avatar for masijade
0
30
Member Avatar for awo

i have a project on password authentication, and i have simulated and already implemented two very secure algorithms but i also need any body who could assist me with developing a password authentication technique that would not need any database for storing the database and it will not need any …

Member Avatar for awo
0
125
Member Avatar for Steven_C

Hi all, I am want to know how an array looks like and I need a sample code. Basically i want to know how to add, delete and edit records using an Arraylist. Can anybody help please?

Member Avatar for jwenting
0
139
Member Avatar for ankit_nasa

[B]Run the algorithim for n>6. to introduce non- determinism, number each process 0..n-1; In each iteration, generate a random number r<=n.choose r processes randomly and allow only the chosen ones to execute the protocol. token sending/ recieving can be emulated by updating appropriate recieved[] bits. ignoring the diffusion part, see …

Member Avatar for orko
0
102
Member Avatar for KimJack

Hello All, I have working for this simple little thing for the past few days and I am stuck. Can anyone tell me or explain a regex formula that will extract words from xml. [B]Example:[/B] <person> Sue Smith <age> 32 </age> <sex> female </sex> </person> <person> John <child> <name>Jim</name> <age> …

Member Avatar for Ezzaral
0
95
Member Avatar for IT Lover

Hi all ... I'm new member here and I would like to ask you plz if someone knows how to create a setup file 4 my JAVA project ... that installs my project as a program like any other one ((on program files,on desktop and may create a shortcut )) …

Member Avatar for IT Lover
0
85
Member Avatar for leroi green

hello everyone, i'm in class and having problems with this method declaration. i'm brand new so please don't be too rough, just trying to understand what i'm doing wrong & what will be needed to fix it [code] public static int iMethod (int i); { while (true) { if (i …

Member Avatar for Ezzaral
0
91
Member Avatar for rohit saroha

hello, i am having a problem with starting of services of tomcat server ,when i write"http://localhost:8080/" it is not opening the home page.also when i start it 's services then it automatically stops after some time. plz help...................................................it's urgent.

Member Avatar for schoolsoluction
0
96
Member Avatar for abar_sow

can anyone explain wat this program is abt. ? [code] import java.util.regex.*; import java.lang.*; import java.io.*; import java.util.*; public class ReadPara { public static void main(String[] args) { CharSequence inputStr; inputStr = "a\r\n\r\nb"; // Windows // Compile the pattern String patternStr = "(^.*\\S+.*$)+"; Pattern pattern = Pattern.compile(patternStr, Pattern.MULTILINE); Matcher matcher …

Member Avatar for masijade
0
116
Member Avatar for degamer106

One of the things that's been confusing me so far is why we have to override the paintcomponent() function after extending it. For example, this program draws an ellipse: [CODE]import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.geom.Ellipse2D; import javax.swing.JComponent; public class DrawEllipseComponent extends JComponent { public void paintComponent(Graphics g) { …

Member Avatar for Ezzaral
0
99
Member Avatar for ceyesuma

How do you use methods as args? I can not seem to get the string or file stored in the getters and setters to work as args for the printWriter.etc. Unless something else in this code is causing it. all the getters and setters work everywher else [code] /* * …

Member Avatar for ceyesuma
0
119
Member Avatar for tapannigam

class A{ void process() throws Exception{ throw new Exception(); } } public class ExtendTest extends A{ void process(){ System.out.print("ExtendTest"); } public static void main(String[] args) { A a = new ExtendTest(); a.process(); //line 1 new ExtendTest().process(); // line 2 } } Why does this program gives an unhandled Exception at …

Member Avatar for darkagn
0
80
Member Avatar for econobond007

My java task is to write a code that sorts dates from a text, using readline. so 1/04/2005 is good, not 22/44/1555.... exceptions perhaps... if anyone is free to help me, please mail or aim(acumenred)

Member Avatar for masijade
0
57
Member Avatar for JavaNewbie07

I am trying to create a queue of tokens from a file and I have the following; [code] Scanner pScanner = new Scanner (System.in); String ptoken; While ((tak = tz.getNext()) !=null) { System.out.println ("The next token is " + tak); .......//more code }[/code] This works becuase it scans every token, …

Member Avatar for orko
0
127
Member Avatar for java_starter

Below is my error which i get while i compile AppleComputer class file ( shown down below). Any help solving this error would be appreciated . Thanks [code] F:\JAVA\Java Files\Lab 5\AppleComputer.java:39: non-static method getCpuSpeed() cannot be referenced from a static context System.out.println("The Computer's CPU Speed Is: " + Computer.getCpuSpeed()); ^ …

Member Avatar for Ezzaral
0
80
Member Avatar for piers

I have a section of code in a programme I have: [B]long b; if (show>1189&&<1189*2) { b=1; } else if (show>1189*2&&<1189*3) { b=2; } else if (show>1189*3&&<1189*4) { b=3; } [/B] The variable show is an already defined string which takes a number value. So I want to output the …

Member Avatar for piers
0
85
Member Avatar for gaurav84

HI , I am using JSP + apache tomcat 5.5 . The database I am using is mysql. The database have tables , with rows 1.2 lacs and above . I have to run atleast , atleast 15+ sql query in one JSP page . while loading the page , …

0
69
Member Avatar for blanklogo

I am a student taking a java class online. its kinda hard because I don't have anyone to talk to directly. I do not want someone to do this for me i just want a simple yes or no answer. I have created a program for my second assignment. The …

Member Avatar for johnsene
0
153
Member Avatar for chrisw09

I'm working on a small program that i'd like to deploy using java webstart. I have everything working but when I launch the program using webstart/jnlp, a statusbar is added to it (see attachment) which says "Java Application Window". It's not there when i run the app locally. Any idea …

Member Avatar for chrisw09
0
116
Member Avatar for Pinky.Rozita

Hi all .. this jsp code when we use database access, to get the information by entering the price , my problem is that now iam using oracle as database and i dont know what are the changes that can be made here only ofcorse the path of database this …

Member Avatar for lookof2day
0
247
Member Avatar for tinamary
Member Avatar for ~s.o.s~
0
140
Member Avatar for Renzokouken_22

[code] import java.awt.*; import java.awt.Event.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.*; import javax.swing.*; public class UpdateRecord implements ActionListener { private ScrollingPanel fields; private JTextArea output; private Connection connection; public UpdateRecord(Connection c, ScrollingPanel f, JTextArea o) { connection = c; fields = f; output = o; } public void actionPerformed(ActionEvent e) …

Member Avatar for ~s.o.s~
0
78
Member Avatar for JavaNewbie07

I am trying to call an external class with the following line class "classname" implements "another classname" { ..I however keep getting an "Interface expected here" error at compilation. What am doing wrong, please?

Member Avatar for orko
0
121
Member Avatar for champagne
Member Avatar for orko
0
92
Member Avatar for ceyesuma

I try to set a variable in another class. It does not. It goes to that class and the variable is always 0and the program stops. I know its something basic that I should know but I need it to set the variable and continue in the calling class. Any …

Member Avatar for orko
0
90

The End.