32,204 Topics

Member Avatar for
Member Avatar for aloyssia

hey guys i have just started to learn java programming language ...i was wondering if i will be able run big java programs from command prompt...what the the advantages and disadvantages of using command prompt for running java programs...is using IDE like eclipse better than using command prompt?...if so in …

Member Avatar for NormR1
0
184
Member Avatar for winecoding

I have an existing Eclipse java project, and need to export it to the war file for deployment. By googling, it turns out that I need to covert it to a dynamic web project at first. But the menu item for this conversion is disabled. I would like to know …

0
82
Member Avatar for winecoding

My current work needs to do the development based on open soure software. There is a class defined as DirLocator.java The code is as follows [CODE]public final class DirLocator implements IResourceLocator { /** The folder relative to which resources are resolved. */ private File dir; /** * Initializes the locator …

Member Avatar for winecoding
0
8K
Member Avatar for kwins

[CODE]import javax.swing.*; import java.awt.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; public class Absolute extends JFrame implements ActionListener //Error: Absolute is not abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener { public JTextField textField1,textField2,textField3; public JLabel label1; String Operatn[] = {"Add","Mult","Divide","Sub"}; //Constructor public Absolute() { JFrame frame = new JFrame(); frame.setLayout(null); JLabel label1 = new JLabel …

Member Avatar for NormR1
0
214
Member Avatar for Buffalo101

Hello, After completing my application, my teacher told me I can't use serialization. I currently send objects using the writeObject / readObject methods. What's the easiest way of transitioning from this to something else? I'm thinking: [code=java] in = new BufferedReader(new InputStreamReader(socket.getInputStream())); out = new PrintWriter(new BufferedWriter( new OutputStreamWriter( socket.getOutputStream())),true); …

Member Avatar for Buffalo101
0
161
Member Avatar for ScubaSam

Can Someone please help i need to create a GUI out of this code for 24hours from now. Can someone please send me the code to create this gui. Its all coded in notepad. Thanks

Member Avatar for iamthwee
-2
148
Member Avatar for jemz

Hello can you help me please, Hi,.I Downloaded the Mysql community server and i installed it to my windows xp.The problem is i don't know how to set up the database.I want to use this in my program because i have never been using Mysql as my database i always …

Member Avatar for jemz
0
95
Member Avatar for harinath_2007

Hello.. I am in search of how to play a video in full screen java application. I already know how to play a video using the JMF. but i want to play the video in full screen desktop java applicaton ..

Member Avatar for JamesCherrill
0
622
Member Avatar for jwala

hello i am a computer engineering student...i want to do my mior project in java...i was thinking to do a project in "image processing + viewer" ....do u think java is an appropriate language for making a "image processor" ??? please help if u have any reference projects ,books or …

Member Avatar for \007
0
94
Member Avatar for jl.lakhnai
Member Avatar for sagngh8

have implemented robot to take the screenshot of the desktop. [code]Robot objRobot = null; try { objRobot = new Robot(); } catch(Exception ex) { } BufferedImage objBufferedImage = objRobot.createScreenCapture(objRectArea); [/code] The problem with robot is when my computer is locked the image comes as black.That is what is displayed in …

Member Avatar for turt2live
-1
427
Member Avatar for turt2live

Hello, I am trying to create a update section of a game but running into a problem of JFrames. What I want to do is have a single JFrame that will have the update script, then after the update it will start a jar file in the JFrame (With the …

Member Avatar for turt2live
0
185
Member Avatar for sariberri

This is just a small snippet of my program but it's a gui and the criteria is when the Open option comes up the user can select a text file that contains the data that is going to be loaded into the JTable. My code only places the first line …

Member Avatar for quuba
0
150
Member Avatar for I<LateNupurGuha

[INDENT]What is the [U][B]file naming[/B] conventions[/U] [I]to compile and run the programme[B]([/B]application[B])[/B][/I] if there [COLOR="Green"]exists[/COLOR] [COLOR="Red"][B],[/B][/COLOR][/INDENT]:icon_rolleyes:[LIST=1] [*]No class in a package; [*]One class with default accessibility in a package; [*]Many classes with default accessibilities in a package; [*]Many classes with default accessibilities and one class with public accessibility in a …

Member Avatar for sneaker
0
171
Member Avatar for arshi9464

i was using mysql to connect to database in java. but it is throwing an error that is" access denied for use' '@'localhost' to database 'onlinetest' while installing mysql I DIDNT PROVIDED ANY USERNAME AND PASSWORD, IS THERE ANY PROBLEM WITH USER AND PASS AND WHAT TO WRITE IN USER …

Member Avatar for masijade
0
78
Member Avatar for solomon_13000

My question is why (i1==i2)=false,(i3==i4)=false and (i5==i6)=true? [CODE] public class comp { public static void main(String[] args){ Integer i1 = 2001; Integer i2 = 2001; System.out.println((i1==i2) + " " + (i1.equals(i2))); Integer i3 = 21; Integer i4 = new Integer(21); System.out.println((i3==i4) + " " + (i3.equals(i4))); Integer i5 = 21; …

Member Avatar for jon.kiparsky
0
155
Member Avatar for kwins

hi i really need your help i'm a beginner in java and we're having this homework here is my code its not complete and there is error please help me solve this one :( tell me what to do [CODE]import java.io.*; public class hangukFishShop { public static void main(String[] args)throws …

Member Avatar for jon.kiparsky
0
237
Member Avatar for bibiki

I have been thinking of making a graphing calculator for practice. However, I do not know how to assign to a variable an expression. What I exactly mean is: let's say x is a variable, and y a function of x. I can just define the function inside the code, …

Member Avatar for bibiki
0
115
Member Avatar for Bahubali

Getting the FileNotFound exception: java.io.FileNotFoundException: C:\Documents and Settings\User\My Documents\NetBeansProjects\MyApp\src\java\source\downloadfile.txt (The system cannot find the file specified) java.io.FileInputStream.open(Native Method) java.io.FileInputStream.<init>(FileInputStream.java:106) java.io.FileInputStream.<init>(FileInputStream.java:66) source.download.execute(download.java:25) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441) com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243) com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252) org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) …

0
51
Member Avatar for hamzamuradkhanh

Sir, I want to develop a internet booster software that boost the speed of internet from original speed to high speed.please tell me how internet booster works and which language i should use?

Member Avatar for jwenting
0
115
Member Avatar for pardeep3dec

Dear Experts i want to know about the date schedule and syllabus for SCJP exams of java. Kindly provide me link to scjp. Best Regards, Pardeep

Member Avatar for jwenting
-2
113
Member Avatar for solomon_13000

Why is the value 22 created for the code below? [CODE] public class Pregnant extends Thread{ int x = 0; public static void main(String[] args){ Runnable r1 = new Pregnant(); new Thread(r1).start(); new Thread(r1).start(); } public void run(){ for(int j=0;j<3;j++){ x = x + 1; x = x + 10; …

Member Avatar for masijade
0
126
Member Avatar for AnkitKumar

anybody tell me that java is object oriented or not . some people says that java is pure object oriented or some says it is not object oriented.

Member Avatar for jwenting
1
323
Member Avatar for apanimesh061

This is program that return a concatenated string to the main() [CODE] import java.io.*; class ConCat { public static void main(String args[]) { String a, b ,c; a = "Animesh "; b = "Pandey"; c = concat(a, b); System.out.println(c); } } static String concat(String s1, String s2) { String C; …

Member Avatar for jon.kiparsky
0
170
Member Avatar for rosey_fci

hi every body I have a problem I want to use the value in a table in other table I mean set the value from other table to the table I want can any one help me!!!

Member Avatar for mKorbel
0
38
Member Avatar for Gata_Salvaje

Hi ,There I hope you can help me with this I need a Java algorithm to help me find how much % is string A relevant to String B Example : String A => Java ,C++ ,C# ,Assembly String B => java ,c++ then Result should be => 50% relevant …

Member Avatar for ztini
0
4K
Member Avatar for 24x24

This is homework. Please do not write my code for me. I did look for this but only found things related to buttons or making a background, none of which had the answers I needed. I have been working on a game. The game has some images floating around and …

Member Avatar for mKorbel
0
160
Member Avatar for komyg

Hi, I am developing a Java SE console application that needs to connect to a web page, get its contents (using HTTP GET) and get the value of a timer that was written in Javascript. If we take [URL="http://www.elated.com/res/File/articles/development/javascript/creating-a-javascript-clock/clock.html"]this[/URL] example page for instance. When I retrieve its contents using HTTP …

Member Avatar for NormR1
0
288
Member Avatar for Sekhrian

Hi guys! Can anyone provide an accurate code for me to do this please. I'm not having any luck finding particular codes on Google that work.

Member Avatar for Sekhrian
0
182
Member Avatar for sneaker

I just bought and read Jim Waldo's "Java The Good Parts". (ISBN 978-0-596-80373-5) It is a very interesting book that gives you insight in what happens under the surface. This is not a book about learning how to program in Java. It is rather a book for those who have …

Member Avatar for sneaker
0
563

The End.