32,204 Topics

Member Avatar for
Member Avatar for vicky_dev

Hi everyone, I need to be able to run a Java application (not an applet) directly, that is not from an IDE or the command line. How can this be done for a Windows PC? I have seen many applications written in Java, but are executed just like other Windows …

Member Avatar for vicky_dev
0
2K
Member Avatar for iCez

uhmmm.. we have this project, we were told to make an [B]output[/B].. [B]"A multiplication table" [/B]I know that you guys don't don't give help if we don't give it a try. It's just that I don't know how to make one or even to start it. Can I just ask …

Member Avatar for louise07
0
91
Member Avatar for ceyesuma

If there is a file created and stored in a class: [code] void setLogFile(File LogFile){ this.LogFile=LogFile; } File getLogFile(){ return LogFile; } [/code] and the FormattedWriter is created in another class and it's constructor calls super. Why won't this work? [code] FormattedWriter out = new FormattedWriter(new FileWriter(getLogFile(),true)); [/code]

Member Avatar for ceyesuma
0
65
Member Avatar for balagangadharm

Can anyone help me how to develop forums.Any related urls and content or code sothat i can develop my own using jsps and mysql..plz urgent iam new to this...

Member Avatar for peter_budo
0
104
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
73
Member Avatar for Caled

Hi, Im having a problem here. I have 3 classes/frames. After arriving at the 3rd frame, i want to get values entered in the 1st first frame. All the variables in the 1st class are declared as Private. In order for me to get this value from other class, i …

Member Avatar for Caled
0
185
Member Avatar for IT Lover

Dynamic GUI Hello people... really I dont know if this is the correct name (Dynamic GUI) but I wanna ask u how to build dynamic JButtons .. 4 example : the number of the buttons in a frame not static ... (user enter it) at the begging and the buttons …

Member Avatar for IT Lover
0
115
Member Avatar for KimJack

Hi All, I am trying to parse an xml file. Not using any of the regex or parsers, simply using only java code. Any suggestions? Thanks

Member Avatar for iamthwee
0
89
Member Avatar for balagangadharm

can any one help me out. When I take a print,the path of the document is printin at the bootom of the page.Can anyone say how to remoe it while printing It is printing as file://C:\Documents and Setting\administrator\etc... But, I don't want to print the 1. link path ex. file://C:\Documents …

Member Avatar for balagangadharm
0
95
Member Avatar for Acidburn

Hello there, I'm trying to emulate a Bluetooth connection via coding the serial port. COM6 on my machine is an outgoing connection over bluetooth... So I'm mocked up the following code: [code] package btserver1; import gnu.io.CommDriver; import gnu.io.CommPort; import gnu.io.CommPortIdentifier; import gnu.io.SerialPort; import java.io.*; public class Main { static String …

0
60
Member Avatar for kararu

Hi all, I am good in Java.But I dont have any idea about PHP. With this matter in mind please suggest me which to choose(PHP or JSP) to create my own forum. (coding my own forum..not using exixting freeware forum).... What are the pros and cons of using JSP.(I dont …

Member Avatar for jwenting
0
191
Member Avatar for awo

am still hoping on some thing, the reason for the project password authentication without data base is to circumvent the security issue of password verifier being stolen on the server which can still make the adversary to implicate a rightful user i have an idea but the only problem i …

Member Avatar for jwenting
0
137
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
155
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
104
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
80
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
28
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
122
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
136
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
101
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
93
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
83
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
90
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
94
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
114
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
97
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
117
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
77
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
53
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
124
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
79

The End.