32,204 Topics
| |
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 … | |
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 … | |
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] | |
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... | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. */ … | |
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 … | |
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!! ^_^ | |
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 … | |
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? | |
[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 … | |
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> … | |
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 )) … | |
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 … | |
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. | |
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 … | |
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) { … | |
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] /* * … | |
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 … | |
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) | |
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, … | |
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()); ^ … |
The End.