About Experts Sitemap - Group 31 - Page 80 2016-02-09

Java: Error Message from a Serialization Project, awt event, java awt
awt event, java awt, midterm question: oh right you also need to switch the arguments you are using... Your constructor has String,float while you have float,String As for the second part... it depends on what the format of Order.dat is. Serlization is a way of saving the data. So you could...

Java: Error in Running Java classes, java examples, java files
java examples, java files, java object: well once you compile check the directory to see if the .java and the .class files are in the same directories. Also yo uhave to make sure that the main method that you breate is compiled in the same folder as the class fill. So if you have Spell.java and...

Java: Exception in Code., java 2d, java code
java 2d, java code, last question: Jules, I tried looking at the code, but had some trouble getting it to work. Your page did not include the class LoadedImage12. Fortunately, I was able to substitute the class javax.swing.ImageIcon. Anyway, the exception I observed was a java.lang.ArrayIndexOutOfBoundsException....

Java: Exception Error please help, image processing in java, applet implements
image processing in java, applet implements, array index: Jules, Thanks for sending your code, it made analyzing the problem easier. Anyway, it took me a while to find the problem, because I was testing your code with a JPG image, but the problem only occurs for GIF and other 8-bit pixel value images. ...

Java: Exception, checks
checks: Checked exception happens at compile time. the compile checks to see if you are doing many thing incorrect ie.... casting a object to a int. and runtime exception is when the program compiles and u are expecting a int and the user enters a string of letters...

Java: Exceptions, instanceof, public string
instanceof, public string, subclasses: public String unimplementedMethod() throws Throwable { Throwable t = new Throwable(); throw t; } public void aMethod() { try { unimplementedMethod(); } catch(Throwable t) { if(t instanceof ThreadDeath) ...

Java: Executing a java program from another directory, rama krishna, java present
rama krishna, java present, java name: Hi, For your first problem, you might try passing the run command as a complete string to the exec method and getting any errors that output e.g. try { Runtime rt = Runtime.getRuntime(); Process prcs = rt.exec(full); // full = java programName...

Java: Executing a java program from another directory, java classpath, rama krishna
java classpath, rama krishna, java present: First, java.exe does not take a directory structure to start, rather it takes the name of the class. You can speficy the classpath if you don t want . as the classpath. E.g. To run your Temp_prog from Current you could use: java -classpath Sub Temp_prog...

Java: Executing a java program from another java program with platform independence, output string, platform independence
output string, platform independence, getinputstream: If you want to wait until the process is finished you can read from the processes stdout and write that to a file. If you want to perform other tasks while this is happening you should do this in another thread. Your code will look something like this....

Java: Executing a java program through another using Runtime.getRuntime.exec(), output string, java tool
output string, java tool, java program: Hi, You need to do something like this: public class Using { public static void main(String args[]) { try { Runtime rt = Runtime.getRuntime(); Process prcs = rt.exec(java Hello); // Get the feedback...

Java: Executing with java vs javaw, java process, jtabbedpane
java process, jtabbedpane, java jar: I can t really say what the issue is. Is might be related to the command window being visible or not. You could narrow this down by executing java without a window (write a test program that uses exec from Runtime to execute another java process try this with...

Java: Exel access through java, java excel, intrinsyc
java excel, intrinsyc, java app: Hi, There are a number of libraries available to read/write to excel. Have a look at: http://sourceforge.net/projects/jexcelapi/ http://www.javaworld.com/javaworld/javaqa/2001-08/02-qa-0824-excel2.html http://j-integra.intrinsyc.com/support/com/doc/java_excel/intro.html...

Java: Exiting Aprogram, deamon, system exit
deamon, system exit, threads: A program can exit normally if all the non-deamon threads end. For example, if you simply have a main methods that doesn t create any threads (and doesn t perform any GUI operations). Then when main ends, the program exits. You could mark all threads aside...

Java: Are the elements of which of the following data structure retrieved in the order of addition?, test length, string test
test length, string test, output c: Hi, Here is an example to show the oerder of addition for the given colelction and dictionary classes. import java.util.*; class CollectionTest { static public void main(String[]p) { new CollectionTest(); } CollectionTest() { String[]...

Java: When I enter (ctrl + D), the jvm will terminate. why?, jvm, java program
jvm, java program, ctrl c: Izzzz - That seems strange to me. On Windows and Unix, Ctrl+C will terminate most programs when running from a console. On Unix, Ctrl+D means end-of-file, so if you type that to a Java program attempting to read input from the console it will probably...

Java: entering a given .class file!!, stack class, basic library
stack class, basic library, import java: Maki, If your teacher wrote the class in the simplest way, you don t have to do anything special in order to use it. Just put the .class file into the same directory with your .class files. Then you can write code using the MyInput class immediately....

Java: entering a given .class file!!, stack stack, stack class
stack stack, stack class, import command: You must make sure that the .class file is in your classpath. E.g. If you run javac on the commandline you would use: javac -classpath . MyClass.java Assuming that the .class file is in the current directory. The import command has nothing to do with...

Java: equality with objects, java textbook, java api
java textbook, java api, string object: Hi, Been busy as I am about to complete a project and I have been busy with its closure and delivery. Three things - 1) In order to compare two custom objects (not defined by the java api, but your own) you need to inherit the Comparable interface and...

Java: error with Java applet, awt event, java awt
awt event, java awt, applet implements: The first error is due to not correctly declaring a method that is called itemStateChanged that takes one parameter a java.awt.event.ItemEvent. Or you are implementing an interface that you did not mean to implement. The second error is due to the fact...

Java: deprecated API, memory footprint, java nio
memory footprint, java nio, incorrect password: As the documentation states the reason that getText() in JPasswordField is depracated is that it leaves a memory footprint of the password in memory. The reason that getPassword does not work depends on how you are using the char[] that it passes back instead...

Java: What is the error(s), public void print, grid arrays
public void print, grid arrays, keyboard error: Hi Gaby, Well this code is actually all correct, and does compile. The reason it doesn t seem to do anything, is because this class contains a bunch of methods that nothing calls. I assume you got this file from the internet or school or somewhere, and...

Java: exception handling, public void paint, byte values
public void paint, byte values, paint method: 1st do not have file operations in your paint method, you do not want to reparse the file every time the screen needs to be redrawn. Second... use a try-catch block. e.g. try { File inputFile = new File( map.gz ); FileInputStream in = new FileInputStream(...

Java: about exception while running the program, noclassdeffounderror, japplet
noclassdeffounderror, japplet, appletviewer: if you want to run an applet that does not have a main function, you must create an html file for it to use. You can use the appletviewer on the html file to see if it works. The other option is to add a main function that servers the same purpose as the applet....

Java: exe, lionel
lionel: There is no .exe file created. .exe is supposed to be windows specific! The equivalenet .class file is created in java! and it is stored in the same directory or in any directory that you redirect to using the -d option while compiling! Thanks and Regards,...

Java: expandable windows & design, java gui programming, fancy icon
java gui programming, fancy icon, unix functions: Sorry been very busy with my project work and deadlines to meet. Ok try this 1. maximize/restore window this.setExtendedState(JFrame.MAXIMIZED_BOTH); and also override the jpanel s getPreferredSize as given below - public Dimension getPreferredSize()...

Java: ; expected. Why??, array
array: You should declare totalarea up front instead of redeclaring it in the for loop. Also (assuming circle is an array) do not add () after length. E.g. double totalarea = 0.0; for(int i = 0; i circle.length;i++) { totalarea += circle[i].carea(); ...

Java: Why extending multiple classes is not supported in java, multiple inheritance, lionel
multiple inheritance, lionel, ambiguity: This is to avoid dangers like ambiguity that is present in C++. Say pkg1, has class A pkg2, has class A if you inherit both at the same time, the compiler gets confused as to what class has to be used... and hence multiple inheritance is avoided....

Java: extract data from access database, yahoo api, yahoo account
yahoo api, yahoo account, good library: Hi, I have never done anything like this, but here is a very good library you can use to get data from an access database. http://jackcess.sourceforge.net/ As for creating the Yahoo account, I would need more data on what you want to do (how to go...

Java: extracting portion of text sing java, word positions, string method
word positions, string method, string text: Hi, Look for the starting and ending word positions using the String method indexOf(). e.g. int start = indexOf( start ); int end = indexOf( stop ); Then get the substring between these points. String text = allText.subString(start, end); ...

Java: extracting records from my database(ms access) and display in gui format java swing...., microsoft access driver, system dsn
microsoft access driver, system dsn, swing program: Hi, Here is some code that may help you: /** * Gets the DSN s from the user and system DSN lists. * p * @return vector containing the DSN s */ private Vector String getDSNs() { if(!SystemToolkit.doesSupportRegistry())...

Java: Faqs, jaspreet singh, google
jaspreet singh, google, java sun: Hi Karun, There are lot of sites, you can search in www.google.com. Anyways, following are few good sites: java.sun.com (best site - you can post your queries in their forum) www.javaranch.com www.javaworld.com (another good site) www.onjava.com...

Java: FIFO, node class, queue class
node class, queue class, zip folder: Queue (java.util.Queue) is an interface that defines simple operations for a Queue. If you want to make your own Queue class you should probably implement this interface. The source code for the java standard libraries is located in the src.zip folder in...

Java: File, convenience class, input bytes
convenience class, input bytes, fileinputstream: Hi, The answer is there in the Java API. File: An abstract representation of file and directory pathnames. i.e. Used for creating, modifying, deleting, etc files and directories. FileInputStream: A FileInputStream obtains input bytes from a file...

Java: File Choosers, file chooser, jfilechooser
file chooser, jfilechooser, static method: Its hard to determine what is happening... 1st are you puting out debug statements to determine if the method used to show the JFileChooser is getting called. 2nd how are you displaying the chooser on the screen? Are you using the static method showOpenFileDialog...

Java: File filters, tempory files, mearly
tempory files, mearly, java documentation: Well its fairly simple: there are two methods that are needed to be implemented: accept(File f) this method is called for every file that the user may see (including directories!). You simply return true if you want to show it or false otherwise. ...

Java: File name of java, java source code, mylist
java source code, mylist, java compiler: Ravi, It is written in every book, when we save Java source code then it should be same as class name under in which main is define.But when we save file with another name it also run. why? If all your code is in one source file, or if...

Java: Files' MetaData extraction, apache tomcat, solidsnake
apache tomcat, solidsnake, frame count: Nope, even if I was just using c++ I wouldn t have a clue on how to expose this information. I know that apache tomcat has some work into it since its default directory listing shows file types and the like. Im pretty sure your just going to have to handle...

Java: Files Metadata Extraction, frame count, image properties
frame count, image properties, microsoft project: Hi, Cool name Snake; You need to stop playing MGS. lol well i am not really clear on the question but you can use the java.util.Properties class but this is only useful for config files and it tends to be of type String. it is usually just a text file....

Java: "Final Year Project Ideas", cataloging books, drawing program
cataloging books, drawing program, creating tools: First java has three main areas of development: J2ME for cellphone applications J2EE for server stuff, databases. J2SE for creating tools and the like. If you are not sure then J2SE is a good choice. Since java is good at making guis, you could create...

Java: Find the greatest sum with moving cursor, empty location, grid location
empty location, grid location, programming question: Lets say you have a MxN grid. Then initilize N states which include the current progress and N new states for next progress. When starting out: oldState[0] = 0. oldState[*] = -1. newState[*] = -1. So initilize all states to -1 except for oldState[0] which...

Java: Flash background colour, java panel, timer class
java panel, timer class, red thread: My guess is that your doing these operations on the Event Thread, usually happens when you respond to a button click. If you are on the event thread, then no updates will occur until you leave the method. Create a new thread (or use the timer class) to do...

Java: Flash Frontend to Java App, client server model, java app
client server model, java app, liking: If you use a client server model you can have Java on the back end while flash is on the front end. Depending on what you are doing this might be a good idea. Closer interactions are possible but significantly more difficulty. Java can do (most) everything...

Java: Forms, jaspreet singh, problem solution
jaspreet singh, problem solution, waste your time: Hi, You can submit the values to your servlet from page A and in servlet either bind those values individually in request or make an DataValue Object class and set the submitted value in DataObject class. And set the DataObject class in request or session....

Java: Frames and their hiding nature, names show, click show
names show, click show, jframe: Hi there, You should use JFrame s setVisible(boolean) method. You don t have to do anything extra to preserve the frame and what s in it - on the contrary, if you want to make sure the frame is destroyed you have to explicitly call it s dispose() method....

Java: FTP, goverment, source code
goverment, source code: The term copyright material is rather undefined. Copyrighted by who? Do you mean registered by US goverment. Maybe the European Goverment. Its not really possible to determine this, no more than to determine if a sentence you find randomly on the internet...

Java: Abstract Classes in Java & Concrete Examples, object oriented programming, generic number
Java: Abstract Classes in Java & Concrete Examples, object oriented programming, generic number, abstract concept

Java: What API is used to sort collection?
Java: What API is used to sort collection?

Java: Assiging java Script variable to jsp variable, variable value
Java: Assiging java Script variable to jsp variable, variable value

Java: how to access winamp controls(buttons like play etc ) through java program, d drive, main string
Java: how to access winamp controls(buttons like play etc ) through java program, d drive, main string, string args

Java: applet keep loading but not run, double quotes, prob
Java: applet keep loading but not run, double quotes, prob, xxxx

Java: applet signed certificate, hi friend, validity
Java: applet signed certificate, hi friend, validity

Java: Is array a data type in Java and C++ ?, java in a nutshell, array types
Java: Is array a data type in Java and C++ ?, java in a nutshell, array types, relevant point

Java: BLUEJ, geeky, oop
Java: BLUEJ, geeky, oop, universities and colleges

Java: build a mail server, kick start, jdbc
Java: build a mail server, kick start, jdbc

Java: Character By Character Input In Java, inputstreamreader, input values
Java: Character By Character Input In Java, inputstreamreader, input values, bufferedreader

Java: Chess Program, minimax algorithm, chess engine
Java: Chess Program, minimax algorithm, chess engine, game tree

Java: get a Class path, string url, getfile
Java: get a Class path, string url, getfile, getclass

Java: Constructor and destructor, garbage collection, java language
Java: Constructor and destructor, garbage collection, java language, memory

Java: Cpu, java cpu, memory utilization
Java: Cpu, java cpu, memory utilization, point accuracy

Java: Create a window in Java with 2 circles ramdomly move in the window, awt event, java awt
Java: Create a window in Java with 2 circles ramdomly move in the window, awt event, java awt, new timer

Java: Creating an English-My Language dictionary in Java, store, dictionnary
Java: Creating an English-My Language dictionary in Java, store, dictionnary, hashmap

Java: How to calculate and show the remaining time left in a JProgressBar, better solution
Java: How to calculate and show the remaining time left in a JProgressBar, better solution

Java: why we can change the value of a String variable when we put the String variable inside ArrayList ?
Java: why we can change the value of a String variable when we put the String variable inside ArrayList ?

Java: class's signature ?, class myclass, signature
Java: class's signature ?, class myclass, signature

Java: closing/ending JFrame applications, attribute
Java: closing/ending JFrame applications, attribute

Java: combobox value in JSP, combo box, form text field
Java: combobox value in JSP, combo box, form text field

Java: How to compare datetime (Urgen), public class test, mmss
Java: How to compare datetime (Urgen), public class test, mmss, import java

Java: concat two strings, string concatenation, memory footprint
Java: concat two strings, string concatenation, memory footprint, java one

Java: convert an audio file from 8 bit into 16 bit, logic
Java: convert an audio file from 8 bit into 16 bit, logic

Java: core java oops concept, common interface, time example
Java: core java oops concept, common interface, time example, package java

Java: creation of object in interface, area of rectangle, rectangle class
Java: creation of object in interface, area of rectangle, rectangle class, class rectangle

Java: cursor, point 0, string name
Java: cursor, point 0, string name, cursor

Java: Data Extraction and analysis(HTML parsing), relevant data, weather forecast
Java: Data Extraction and analysis(HTML parsing), relevant data, weather forecast, crawler

Java: Date Conversion, d2, dd
Java: Date Conversion, d2, dd, yyyy

Java: How the Driver Manager come to know that Driver is Loaded., sekhar, mast
Java: How the Driver Manager come to know that Driver is Loaded., sekhar, mast

Java: What is the difference between ActionListener and MouseListener?, ui changes, java code
Java: What is the difference between ActionListener and MouseListener?, ui changes, java code, buss

Java: What is the difference between creating object by using new and newInstance ?, string classname, c class
Java: What is the difference between creating object by using new and newInstance ?, string classname, c class, class c

Java: difference between .eqauls() method and == operator, string object, true system
Java: difference between .eqauls() method and == operator, string object, true system, object references

Java: What is the difference between implicit conversion and casting?, floating point
Java: What is the difference between implicit conversion and casting?, floating point

Java: Is digital dice possible ?, type o
Java: Is digital dice possible ?, type o

Java: displaying the content of HTML File, java application, bugs
Java: displaying the content of HTML File, java application, bugs

Java: dynamic array/ array list of arraylists
Java: dynamic array/ array list of arraylists

Java: dynamic array initialization, string args, main string
Java: dynamic array initialization, string args, main string, println

Java: what is Encapsulation in java, can u give one real time example ?, confusion
Java: what is Encapsulation in java, can u give one real time example ?, confusion

Java: error in JDBC driver, open mode, access database
Java: error in JDBC driver, open mode, access database, possibilities

Java: Why extending multiple classes is not supported in java, class myclass, void abc
Java: Why extending multiple classes is not supported in java, class myclass, void abc, multiple inheritance

Java: extracting records from my database(ms access) and display in gui format java swing...., vector data, java awt
Java: extracting records from my database(ms access) and display in gui format java swing...., vector data, java awt, javax swing

Java: File name of java, compilation unit, class definitions
Java: File name of java, compilation unit, class definitions, java source

Java: "Final Year Project Ideas"
Java: "Final Year Project Ideas"

Java: Flash background colour, public void paint, awt event
Java: Flash background colour, public void paint, awt event, java awt

Java: filesize
Java: filesize

Java: GUI Program Assistance, prgramming, java programming
Java: GUI Program Assistance, prgramming, java programming, lower case

Java: how to generate serialVersionUID ?, new java, java util
Java: how to generate serialVersionUID ?, new java, java util, date time

Java: generating XML using JSP/Servlet, dynamic xml, thanks in advance
Java: generating XML using JSP/Servlet, dynamic xml, thanks in advance, jsp

Java: How to be a good java programmer?, professional programmer, learning platform
Java: How to be a good java programmer?, professional programmer, learning platform, logics

Java: How to be a good programmer?, expert programmers, programmer
Java: How to be a good programmer?, expert programmers, programmer

Java: Host Access Class Library X Host Access Beans, vb6 code, host on demand
Java: Host Access Class Library X Host Access Beans, vb6 code, host on demand, mainframe

Java: How to hack into runescape?, word one, runescape
Java: How to hack into runescape?, word one, runescape, sans serif font

Java: get hardware static and dynamic info, using java, harddisk
Java: get hardware static and dynamic info, using java, harddisk, informaton

Java: Inner classes, stack frame, instance variable
Java: Inner classes, stack frame, instance variable, local variable

Java: Installing Java on HP/Compaq Windows Vista Home Premium, hp vista, new hp
Java: Installing Java on HP/Compaq Windows Vista Home Premium, hp vista, new hp, sun java

Java: Is Integer passed by reference ?, public static void, cheers
Java: Is Integer passed by reference ?, public static void, cheers

Java: Interface with other apps, java program, robot
Java: Interface with other apps, java program, robot, program window

Java: Where is Iterator Interface Implemented?
Java: Where is Iterator Interface Implemented?

Java: Where is the Iterator interface implementation?, array, implementation
Java: Where is the Iterator interface implementation?, array, implementation

Java: Java
Java: Java

Java: Is the Java bytecode the same as the binary code?, java virtual machine, bytecode
Java: Is the Java bytecode the same as the binary code?, java virtual machine, bytecode, java compiler

Java: Java Excel
Java: Java Excel

Java: Java New Window, dumbass, ug
Java: Java New Window, dumbass, ug

Java: Java Palindrome Program, string word, word length
Java: Java Palindrome Program, string word, word length, punctuation marks

Java: Java password program, study java, passwordchecker
Java: Java password program, study java, passwordchecker, class pattern

Java: Java: polymorphism, time duration, object creation
Java: Java: polymorphism, time duration, object creation, run time

Java: Java Question - How to
Java: Java Question - How to

Java: Java and Sound Editing, human voice, practise
Java: Java and Sound Editing, human voice, practise, e mail

Java: Java Virtual Machine Launcher
Java: Java Virtual Machine Launcher

Java: JFrame and options, jdesktoppane, jframe
Java: JFrame and options, jdesktoppane, jframe, true method

Java: JTextPane and mouse disabling, mouselistener, mouseevent
Java: JTextPane and mouse disabling, mouselistener, mouseevent

Java: java, virtual functions, virtual function
Java: java, virtual functions, virtual function, subtle issues

Java: java - MULTIPLE INHERITANCE, conflict problems, void foo
Java: java - MULTIPLE INHERITANCE, conflict problems, void foo, class x

Java: is java pure object oriented language, object oriented language
Java: is java pure object oriented language, object oriented language

Java: java random character, sum sum, main string
Java: java random character, sum sum, main string, import java

Java: java reverse prog, f system, d system
Java: java reverse prog, f system, d system, main string

Java: java web crawler, java awt, import java
Java: java web crawler, java awt, import java

Java: jsf internationalization in arabic, ascii character, equvalent
Java: jsf internationalization in arabic, ascii character, equvalent

Java: jsp,servlets, java code, jsp
Java: jsp,servlets, java code, jsp, programmer

Java: Keypresses and Key events, true case, switch case
Java: Keypresses and Key events, true case, switch case, public void

Java: Linked Binary Tree, constant time, balancing act
Java: Linked Binary Tree, constant time, balancing act, node

Java: Linked List, java util, lionel
Java: Linked List, java util, lionel

Java: local variable vs. instance variable and instance variable vs. static variable, instance variables, static variables
Java: local variable vs. instance variable and instance variable vs. static variable, instance variables, static variables, heap

Java: Mastering Java for Beginner, foremost priority, java course
Java: Mastering Java for Beginner, foremost priority, java course, nice price

Java: Math.random() method, math
Java: Math.random() method, math

Java: makin dictionary in java, class dictionary, false success
Java: makin dictionary in java, class dictionary, false success, class exception

Java: Is the method overloading polymorphism ?
Java: Is the method overloading polymorphism ?

Java: about null in HashMap and Hashtable, hash table, hashmap
Java: about null in HashMap and Hashtable, hash table, hashmap, compilation

Java: where does the output of Runtime.getRuntime().exec("ls -l") go?, string commands, result count
Java: where does the output of Runtime.getRuntime().exec("ls -l") go?, string commands, result count, inputstreamreader

Java: Passing by Value, searching the web
Java: Passing by Value, searching the web

Java: Polymorphism definition, oriented programming language, shape polymorphism
Java: Polymorphism definition, oriented programming language, shape polymorphism, inheritence

Java: Prime numbers, prime system, currenttimemillis
Java: Prime numbers, prime system, currenttimemillis, int num

Java: Prime numbers, c check, println
Java: Prime numbers, c check, println, system exit

Java: How to Print a Simple Text File in Java?, awt toolkit, java awt
Java: How to Print a Simple Text File in Java?, awt toolkit, java awt, awt event

Java: Problem in Core Java Program, stuf, thr
Java: Problem in Core Java Program, stuf, thr

Java: Problem making a java program that involves Monotone sequences
Java: Problem making a java program that involves Monotone sequences

Java: if (pageContext != null) pageContext.handlePageException(t); error, datasource name, jsp
Java: if (pageContext != null) pageContext.handlePageException(t); error, datasource name, jsp

Java: portable java, java exe, bin folder
Java: portable java, java exe, bin folder, jre

Java: print a text file in java, test quiz
Java: print a text file in java, test quiz

Java: getting processor id, lan card, mac address
Java: getting processor id, lan card, mac address, address changes

Java: Reverse number, readline, remainder
Java: Reverse number, readline, remainder, string args

Java: Does RMI use any port by itself, not RMI registry ?, server port number
Java: Does RMI use any port by itself, not RMI registry ?, server port number

Java: RSA java !, java math, gcd
Java: RSA java !, java math, gcd

Java: Run/Execute Code in a String Variable
Java: Run/Execute Code in a String Variable

Java: refreshing browser
Java: refreshing browser

Java: runescape account hacking/cheats, password list, moniter
Java: runescape account hacking/cheats, password list, moniter, whole time

Java: runescape bot creation, runescape
Java: runescape bot creation, runescape

Java: SCJP
Java: SCJP

Java: Simple java applet problem, gcc website, java helloworld
Java: Simple java applet problem, gcc website, java helloworld, gcj

Java: Sort 2 attributes with collection sort, attributes, logic
Java: Sort 2 attributes with collection sort, attributes, logic, apache

Java: Static method override, static methods, misconception
Java: Static method override, static methods, misconception, choices

Java: Sub programs in Java, dummies book, blank space
Java: Sub programs in Java, dummies book, blank space, strut

Java: System Date
Java: System Date

Java: socket programming : chat program, swing application, socket programming
Java: socket programming : chat program, swing application, socket programming, sockets

Java: Is there a standard way to implement out parameter in Java?, andrew tomazos, quotient
Java: Is there a standard way to implement out parameter in Java?, andrew tomazos, quotient, public void

Java: Is the statement "Iterator also known as Cursor" correct?, typical methods, data structure
Java: Is the statement "Iterator also known as Cursor" correct?, typical methods, data structure, trough

Java: Trying to write to text file but it just ends up erased., filewriter, bufferedwriter
Java: Trying to write to text file but it just ends up erased., filewriter, bufferedwriter, array length

Java: Can't we declare variable insdie while like for loop?, correct syntax, string line
Java: Can't we declare variable insdie while like for loop?, correct syntax, string line, expression

Java: tomcat, java jdk1, c program
Java: tomcat, java jdk1, c program, lionel

Java: Unloading and Loading another window?, myapplication, args
Java: Unloading and Loading another window?, myapplication, args

Java: Urdu Language Display in Swing, external failure costs, management appraisal
Java: Urdu Language Display in Swing, external failure costs, management appraisal, conformance

Java: I wan to learn java, professional java developer, demo class
Java: I wan to learn java, professional java developer, demo class, java course

Java: i want help to search a file from different folders, null pointer exception, getname
Java: i want help to search a file from different folders, null pointer exception, getname, string name

Java: I want to know whether or not System.exit(0) and finally can be used together?, finnaly, system exit
Java: I want to know whether or not System.exit(0) and finally can be used together?, finnaly, system exit, main string

Java: I was wondering that "super" in Java refers to the immediate parent or parent's parent ?, public void, main string
Java: I was wondering that "super" in Java refers to the immediate parent or parent's parent ?, public void, main string

Java: How to zip directories in java ?, write buffer, infinite loop
Java: How to zip directories in java ?, write buffer, infinite loop, len

Java: file matching, null pointer exception, int length
null pointer exception, int length, null value: NullPointerException is a very common error that arrises when you try and call a method (or access a field) on an object that is null. This could either be because you tried to use an unitilized field, called a method that returned a null value, or you set...

Java: file streams, computer science engineering, character streams
computer science engineering, character streams, nextline: If you want to use some other terminator e.g. user types in END you could add a check before writing it and break out of the loop then. Control-Z would still end it, since control-z represents end of file, and input after control-z is entered is not well...

Java: files, java component, svg file
java component, svg file, prints: I am not familiar with S.o.p Usually when a user wants to print to a file they select print and then select a printer that prints to a file. You can draw a java component to an image and then save that to a file, or you can use Batik to save it to an...

Java: filesize, java class libraries, java extensions
java class libraries, java extensions, java extension: Joe, I don t know anything about writing Coldfusion Java extensions, although I know it should be possible. I can tell you how to get the size of a file in bytes. Take a look at the length() method of the java.io.File class. You could use it this...

Java: filestream, string args, access file
string args, access file, main string: import java.io.*; public class AppendByte { public static void Main(String[] args) throws IOException { for(int i = 0; i args.length;i++) { RandomAccessFile file = new RandomAccessFile(args[i], rw ); long fileLength...

Java: filestream, j2se documentation, api methods
j2se documentation, api methods, access file: I would suggest you to visit java.sun.com and look at the j2se documentation (http://java.sun.com/j2se/1.4.2/docs/api/index.html) for all such queries. In case you still have difficulties in using the api methods, please let me know. regards, Lione...

Java: filestream, filewriter, access file
filewriter, access file, newline: Hi, here is the snipplet of writing data BufferedWriter out = new BufferedWriter(new FileWriter( test.txt )); out.write( test ); out.newLine(); out.write( blah ); out.close(); // the close is very important if it left out then you will not see the...

Java: filtering, public static string, import java
public static string, import java, ioexception: Hi, You should dispose of the PreparedStatement, ResultSet and if necessary the Connection by setting them to null. The garbage collector will then be able to clean up these resources. Use Connection.close() to close the database. Use Socket.close()...

Java: final year project, online ticketing system, gov agency
online ticketing system, gov agency, final year project: Hi, You could try making an online ticketing system for an gov agency like the railways or travels or an airline or stock market status for a share or a news update of interested topics that a user is subscribed to. Hope these ideas help. Thanks and Regards,...

Java: final year project, java j2me, memory constraints
java j2me, memory constraints, final year project: Hardik, J2ME (JavaME) is a platform for developing apps for small, mobile, and wireless devices. There are several different versions or editions available. The one you probably want is the Toolkit for CLDC , but if you are thinking about bigger...

Java: How to find a number a float o not, university computer science, faculty of engineering alexandria university
university computer science, faculty of engineering alexandria university, egypt alexandria: If you want to know if a number can be represented exactly as an integer you could: double myDouble = ...; if((int)myDouble == myDouble) { //It can be represented as an int } else { //It cannot be represented as an int } Searching for a...

Java: floating-point, max value, mantissa
max value, mantissa, mail: Hi, Been busy with the project closure. Its delivery time. Sorry. Missed your mail. I feel that option 1 is not possible as it would exceed the max value of Float.MAX_VALUE A value such Float.MAX_VALUE * 2 would only result in Infinity. Thanks and Regards,...

Java: Why cannot the following code be compiled?, public class test, main string
public class test, main string, string args: Izzzz, The problem with this code is that it is ambiguous. The compiler does not know which overloaded println method to call: println(String) or println(char []). To fix the code, you could do this: public class Test { public static...

Java: Why does the following code print nothing?, public class test, string s1
public class test, string s1, value int: well it should print out true , but not Equal . This is because Strings can only be equal to Strings. Generally speaking the equals operator will always return false if the two objects being compared are not of the same class. The implementaion of equals...

Java: what does the following sentence mean?, factory approach, static factory method
factory approach, static factory method, flexible java: Izzzz, By using static factory methods, an API can return objects without making their classes public. Yes, this is a true statement. It is talking about a fairly common technique in creating flexible Java APIs. The idea is that you define...

Java: I found I can create an object with the name same as its class, should we usually do likt that?, member variables, class names
member variables, class names, lowercase letter: Izzzz - Yes, this is permitted, because local variables and member variables are in a different namespace than class names. However, you should NOT do this. In Java, you are always supposed to follow the convention that class names begin with a...

Java: I found that we can not write constructor, super and this in an interface, is it because interface can not initialized?, java language specification, public interface
java language specification, public interface, instance method: Izzzz - we can not write constructor, super and this in an interface, is it that because interface can not initialized? An interface cannot have any instance method defined, nor can it have any constructors defined. Since this makes...

Java: About Garbage Collection, garbage collector, garbage collection
garbage collector, garbage collection, instance variable: Hi, The question is very generic. Now let me make assumptions to answer your question. 1. The variable is an instance variable. a. Used within methods in the class. - Destroyed only when the class is not used any further. b. Never used...

Java: Garbage collection in applet, serial execution, jvm command
serial execution, jvm command, garbage collection: Hi Ravi, Parallel garabage collection is useful only if you are running on a multi-processor machine. In the case that you mentioned (lot of local variables), parallel GC will be useful (on multi-processor machine), as it will reduce the serial execution...

Java: Gegorian Calendar in Java, leap year, january to december
leap year, january to december, java util: Talia, I want to write a code in java that constructs a gregorian calendar Java already has such a class, java.util.GregorianCalendar. You can see the documentation for it here: http://java.sun.com/j2se/1.4.2/docs/api/java/util/GregorianCalendar.html...

Java: Generating unique numbers in java, serial keys, those keys
serial keys, those keys, web interface: Hi, This could be handled in a step of 3. 1. Create a random number thats 8 digit and convert it to hexa. 2. store it in a file 3. when you load the program again, generate a number again and check if this number exists earlier, elase create a new one...

Java: Generics in Java 1.5, generic info, type java
generic info, type java, bytecode: Well the code itself would not case the problem. It is possible that when the jar is created some of the generic info was removed by an optimizer. Also make sure that IPCBaseObject is not generic. The workaround for this would be to compile with ApplicationHelper.java...

Java: Generics and Type Erasure problem., member variables, output queue
member variables, output queue, type java: Shawn, You are essentially correct that the type erasure is what s generating your warning. There is no way to get eliminate the warning without changing your code or your build process. There are several approaches to changing your code that...

Java: Generics and Type Erasure problem., type java, bytecode
type java, bytecode, jar file: Hi, I have faced the same problem in JDK 5 with generics. Unfortunately, I had to play around a little until I found the answer to my problem. You could try using generics in a few places, but I m not sure how this would affect you code, e.g. public...

Java: GUI Pauses, graphical card game, computer opponents
graphical card game, computer opponents, timer class: You do want to create another thread for this. But you may need to repaint after the thread is finished sleeping since you are not on the event thread anymore. You can also use the Timer class to schedule events. Look at the Timer tutorial for more information:...

Java: GUI Program Assistance, awt event, java awt
awt event, java awt, string s2: Sorry, I was out of station and just came back. So, am sorry that I could not reply to you earlier. Try this import javax.swing.*; import java.awt.*; import java.awt.event.*; public class JFrameTester implements ActionListener { private JTextField...

Java: GUI Program Assistance, string s2, uppercase lettering
string s2, uppercase lettering, harvey answer: You cannot compile on the commandline like that. You first create a file Uppercase.java and save the code in it. You then compile it using javac: javac Uppercase.java This will generate a .class file in the current directory. After the code compiles...

Java: (GUI) question about action listeners, awt event, java awt
awt event, java awt, jlabel: Hi, To write action listeners for a checkbox, try the following: 1. Add an item listener to the checkbox yourJCheckBox.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { yourJCheckBox_itemStateChanged(e);...

Java: GUI wrappers, unix functions, mac os x
unix functions, mac os x, unix terminal: I m not sure what you mean by wrappers for unix functions . Do you mean creating buttons that have the same effect as using various unix terminal commands, or perhaps you mean calling some of the unix kernal functions. Being able to run your application on...

Java: garbage collection, garbage collection, gaurantee
garbage collection, gaurantee, lionel: Hi, Sorry, I could not answer your question as I out of the country for a while. There is no gaurantee that the finalize code is always executed. One may invoke it, by giving the compiler an instruction by setting the object to null and also by calling...

Java: garbage collector, garbage collector, garbage collection
garbage collector, garbage collection, boooks: When control has returned from gc as much garbage has been collected as possible. Although you are not demanding that gc be run, it is also not a request either since the garbage collection will have been completed when control returns to you. See: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html#gc(...

Java: how to generate serialVersionUID ?, serializable class, java doc
serializable class, java doc, incompatible versions: Izzzz - You don t have to generate any fancy number. You can just set any number. The only time you would set a serialVersionUID yourself is when you wanted to prevent the automatic generation of a hashed one. private static final long serialVersionUID...

Java: generating XML using JSP/Servlet, jaspreet singh, program extracts
jaspreet singh, program extracts, dynamic xml: Hi Sri, I have never tried this kind of stuff myself but anyways found some links on the net, which might be of some help. http://java.sun.com/developer/technicalArticles/xml/WebAppDev2/ http://www-106.ibm.com/developerworks/java/library/j-dynxml.html...

Java: getch() in JAVA, key listener, getch
key listener, getch, ineed: For console input java doesn t have any equivalent to getch. If you really need that function you will have to write one in C and call it from java. If you want to use text fields you can use a key listener. See http://java.sun.com/docs/books/tutorial/post1.0/ui/keylistener.html...

Java: getch() in java, java guis, swing tutorial
java guis, swing tutorial, swing gui: TN - I don t understand your question. There is no portable way to read a single character from the console in Java. You always have to wait for the user to finish entering a line of input. (Actually, there is no portable way to do that in C either....

Java: getch() in java, java bug, getch
java bug, getch, ineed: Hi, There isn t a way. You can t count on every platform to support such. Some just have line mode console input. You can simulate this functionality with a TextField to enter your data into character by character. You could also try JNI. Here is...

Java: good book for learning java?, learning java, sun site
learning java, sun site, using java: I would suggest you to read the tutorial on the sun site that is available as a free download. Other than that you may try one of the Head First series of books or Using Java or Java 2 Unleashed. They can be helpful. Thanks and Regards, Lione...

Java: How to be a good java programmer?, learning java programming, java 2 micro edition
learning java programming, java 2 micro edition, joshua bloch: Apurva, I desperately want be a java programmer. ... Can you give me some tips how to do it? Well, the best way to improve as a Java programmer is to read good Java books, and to practice your programming. A very good book is Effective Java...

Java: How to be a good programmer?, open source projects, worthwhile projects
open source projects, worthwhile projects, writing programs: Chris, If you really want to be programmer, it just takes dedication and practice. If you don t have a job where you do programming, then a good way to get practice is to participate on open source projects. There are tons of projects looking for programmers,...

Java: graphics, audioclip interface, two circles
audioclip interface, two circles, venn diagrams: Hi Mike, Use the drawOval(int x, int y, int width, int height) method in the Graphics class to draw your circles. Then, as you remember (from maths class) with Venn diagrams and boolean logic, find out when they overlap. Then all you have to do is...

Java: group by in java, public interface, s sales
public interface, s sales, public string: Not really, but its not to hard to do in a few lines of code. Although this depends on the data type you are using. E.g. public interface Sale { public String getCustomer(); public int getAmount(); ... } ... Collection Sale sales = ...;...

Java: gui design, border layout, gui component
border layout, gui component, field button: You can set the maximum size of the components using the setMaximumSize method, but I am not sure this will be what you want. I see no problem in using other layout managers, I m not sure what you mean by being syncronized with Gridlayout, all layoutmanager...

Java: gui/swing, computer science student, java programming language
computer science student, java programming language, object oriented model: The Swing library is a gui library that is written entirly in java using an object oriented model. The Swing library includes many gui components not avialable in AWT. I have not been one to rely on books, I would suggest first looking at the tutorials...

Java: gui vs logger question, application accesses, java awt
application accesses, java awt, java programmer: Hi, What you could do is include the code to write to the logger in the method that writes to the GUI. Pass a true or false parameter to the method, and based on that, log either to the GUI or to the logger. private void myMethod(/*Other parameters,*/...

Java: gui, relative locations, jlabel
relative locations, jlabel, application window: Well a basic container will do. For awt just subclass Container, for swing subclass JComponent, or just use a JPanel. These are blank containers, so it depends on how you want them layed out that is the problem. You can use a layoutmanager to put these things...

Java: Hacking, reverse enginerring, exact game
reverse enginerring, exact game, wont answer: The first thing you have to relise is the only hacking that really can be done is client hacking. Even if you did manager to hack the server you would get in big trouble really fast. This generally limits you to botting, but if your lucky you can find some...

Java: Happy New Year!, public static string, public static void
public static string, public static void, member variables: Izzzz, I can explain these two things. 1/if a class has static variable, can the class be garbage collected once if it is instanced ? Instances of the class can be garbage collected, and that will not affect the static member variables...

Java: Hash Tables, int hash, longitude and latitude
int hash, longitude and latitude, hash tables: You can store the value as a Vector (or ArrayList). Just pull out the Vector and add a value. As for the keys, so long as two keys are equal() and have the same hashcode, you don t need the origional key to get the value. E.g. private Hashtable locations...

Java: Hello,I'd be very thankful..., microsoft office xp, smart voice
microsoft office xp, smart voice, google: well microsoft office xp and office 2003 has a very smart voice recognitions software bundled with Word. you shoud check it out. Also if you have time do a search on google for speech to text with the quotes still on. You should find some good ones ...

Java: Hello sir How are..., dissasembler, javap
dissasembler, javap, java files: i am not sure what javah does but i will look into it further. javap is a dissasembler that takes class files and turn them into java files so you can read it. the htmlconverter converts html containing applets into a readable format. plugins are programs...

Java: Help, multiple inheritance, clever solution
multiple inheritance, clever solution, println: 1. There are various ways of doing this... here is a clever solution. You could also use a second for loop inside the first one to do the second half: for(int i = 0; i 4; i++) { for(int j = -i; j = i; j++) System.out.print(i - Math.abs(j)...

Java: Help with depth info on Eclipse, software project development, implementation tools
software project development, implementation tools, www tutorial: Hi, I dont know how I can help you with this. There are wonderful user guides available dude, perhaps you should use them Eclipse guide http://www.eclipse.org/documentation/main.html Ant http://www.roseindia.net/jboss/10_minutes_guide_to_ant.shtml...

Java: Help with Java, jaspreet singh, header footer
jaspreet singh, header footer, memory buffer: Hi Jason, you don t need to do all this.. .you can just use the following: Toolkit tKit = Toolkit.getDefaultToolkit(); image = tKit.createImage(bytesIn); in code above.. bytesIn is the image data received from the socket.... Enjoy!... let...

Java: Help with Java, header footer, memory buffer
header footer, memory buffer, cleint: If you know the size of the image you are about to get use it as below of If not your ll have to read the header of the image, extract the size info from that, then read it. int imageSize = XYZ; // In bytes. byte imageData[imageSize]; in.read(imageData);...

Java: Help with Java, java awt, image toolkit
java awt, image toolkit, png image: Well its not very hard: import java.net.*; import java.awt.*; import javax.swing.*; ... final String host = ... ; final int port = ...; Socket socket; try { socket = new Socket(host,port); } catch(UnknownHostException e) { e.printStackTrace();...

Java: Help with these methods, random integers, colomns
random integers, colomns, decrement: Bajanisi, can you show me how to create a method that finds the sum of rows and places it in an array, with position 0 in that array containing the sum of the integer values in row 0 and so on. Yes, this is pretty easy. public int[]...

Java: Help with programming in java, colombia south america, array value
colombia south america, array value, array values: Keep 4 arrays and populate the values as given in the matrix. answers inline to your question (a) Print the previous table with everything included. print all array values (b) Calculate and print the total number of votes received by each candidate...

Java: Help on Static Inner Class, class subclass, instance fields
class subclass, instance fields, static members: static classes have to inner classes. Differences between static classes and non-static classes: static classes are just like regular outer classes except that you reference them by OuterClass.InnerClass, and inner classes have access to private data...

Java: Help!!, class canvas, default constructor
class canvas, default constructor, instance variables: Hi, 1. A constructor is where you would call important code that needs to be set up before using the class. It can also be used to initialize variables, create an HTTP connection for example. Yes, you can exclude a constructor. If you do so, the Java...

Java: Hi Artemus,How can I remove..., artemus, jframe
artemus, jframe, boarder: The closest answer I have is to use setUndecorated(true) on the frame. Unfortunally this also removes everything, including the title bar, and boarder. You can then make your own RootPaneUI for the rootpane or the frame, drawing it however you want. Its a...

Java: Hi Lionel, inetaddress class, microsoft link
inetaddress class, microsoft link, swing application: Yes it is possible. For that you must make your program as a windows service. Links to refer: http://support.microsoft.com/kb/137890 http://www.iopus.com/guides/srvany.htm So ideally your program would be a swing application and you would execute the...

Java: Hi, Mr.Harper,Thanks for..., executable jar file, java vm
executable jar file, java vm, application deployment: 1. Its not common to require a lot of memory to run the VM. I think the default size is 90M 2. If the user does not have enough ram, then the VM will not start up, and (I think) you will get a non-zero return code. In this case you will simply have to try...

Java: Hi Mr. Harper,I want to..., numerator and denominator, simple fraction
numerator and denominator, simple fraction, operator buttons: To determine if a fraction is in lowest form, just determine if the gcd if the numerator and denomerator is 1. to find the gcd of a,b: repeat until a is 0 if b is larger then a, swap a and b let a = a mod b. repeat b is the gcd of (the origional) a and...

Java: Hi there,I'm a beginner..., java helloworldapp, operable program
java helloworldapp, operable program, java exe: hi, Please look for java.exe in the folder as given below - java_install_directory_in_your_machine in Once you know this directory, I want you to do add this to the path. Refer setting the path in the same tutorial. Once you do that you can execute...

Java: Hi, english albanian dictionary, partition tables
english albanian dictionary, partition tables, language translation: Lets break this into smaller units - 1. Data Store - you may need to keep the whole data in the database with the appropriate encoding for Albanian. you may also need to add an index on the English words so that you can search them easily. Again if...

Java: Highlighting a line in JTextArea, jtextpane, rich content
jtextpane, rich content, alan moore: see this article and the code written by alan moore and bjorn at http://www.velocityreviews.com/forums/t147950-how-can-i-highlight-the-current-row-in-a-jtextarea.html I personally prefer the one that bjorn has written as it uses a JTextPane that can be...

Java: Home page is customized screen, borderless window, example script
borderless window, example script, page id: try this piece of code script type= text/javascript function popUp(URL) { day = new Date(); id = day.getTime(); eval( page + id + = window.open(URL, + id + , toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=320,height=240,left...

Java: Host Access Class Library X Host Access Beans, java methods, host access
java methods, host access, java library: I haven t used this library myself. If the method is missing from the java library (trying looking in the index of the javadoc for the method, it might be in another class). An automated tool was probably used to wrap the c++ functions to java methods. If...

Java: Host Access Class Library X Host Access Beans, awt classes, tcp ip connection
awt classes, tcp ip connection, java awt: Zbynek, I don t think you ll find any Java package that will let you control the session already opened by the IBM Personal Communications terminal window. The VB6 objects you are using were probably specifically coded to work with the Terminal...

Java: How to hack into runescape?, runescape bots, definations
runescape bots, definations, direct access: I don t think anyone has actually hacked into runescape. Bots have been created, exploits have been found. Any exploit that has been discovered beyond a month ago has been patched and can no longer be used. Bots are only midely reliable. You are getting...

Java: haiI am new to java.Will..., java beginners, java programmers
java beginners, java programmers, beginner html: Faizal, There are many good sites for Java beginners. Start with the official Java tutorial: http://java.sun.com/tutorial/ You could also check out the resources here: http://java.sun.com/learning/new2java/ A site for new Java programmers...

Java: haiI am new to java.Will..., jaspreet singh, java sun
jaspreet singh, java sun, codings: Hi Faizal, Best place to learn is java.sun.com... they have some nice tutorials... which you can download... there are lot of sites available like javaworld.com javaranch.com but start with java.sun.com All the Best... let me know if have any doubt...

Java: hai, j orlin grabbe, sha1 hash algorithm
j orlin grabbe, sha1 hash algorithm, chinese remainder theorem: Hi, Here is an example of RSA encryption. ------------------------------------- LAYNETWORKS.COM posted with permission Java Program for RSA Encryption by J. Orlin Grabbe (1998-2001 J. Orlin Grabbe) --------------------------------------------------------------------------------...

Java: get hardware static and dynamic info, java programming language, real time system
java programming language, real time system, disk free space: Paria, There is no portable way for a Java program to obtain real-time system information. Some forms of static system info can be obtained by looking at System properties, and there are many different platform-dependent ways to obtain system information....

Java: hashCode method, hashset, string 1
hashset, string 1, hashtable: 1. Hashcode is used in various places, more spefically in classes that rely on hashing objects such as Hashtable and HashSet. 2. Impossible. The hashcode for two different objects can be the same, but the hashcode for two objects which are equal are guanenteed...

Java: hashcode() !!!!!!!!!, public int size, arraylist
public int size, arraylist, instanceof: Robert, The hashCode() method merely needs to return an int, such that the int always has the same value for the same object, and very likely has different values for different objects. If you implement hashCode(), you should also implement equals(),...

Java: hashcode() !!!!!!!!!, public int size, currenttimemillis
public int size, currenttimemillis, best bet: A hashcode is a unique number. In order to generate a unique number, the best bet would be to use System.currentTimemillis() that generates a unique number. Any calculation using mathematic operations can be used as a has code. Hope this helps. Thanks...

Java: hashcode() !!!!!!!!!, public int size, arraylist
public int size, arraylist, instanceof: Just borrow the hashcodes from addrBookName and emaList. E.g. public int hashcode() { return addrBookName.hashcode()^emeList.hashcode(); } (^ is xor) If you think it is unlikely that two address books have the same name you can simply use the addrBookName...

Java: hello sir how are you..., java api, section java
java api, section java, edition documentation: Hi, Please visit http://java.sun.com/ There you will see a link for documentation. Click j2se platform. Look at the section Java 2 SDK, Standard Edition, Documentation. View the english form of the docs there. If you hava no idea of the package structure,...

Java: hello sir how are you..., java api documentation, datagramsocket
java api documentation, datagramsocket, overview summary: Gaurav, The Java API documentation is available here: http://java.sun.com/j2se/1.4.2/docs/api/ The full Java API is composed of packages. Each package contains classes and interfaces that serve a related purpose. The overview page, http://java.sun.com/j2se/1.4.2/docs/api/overview-summary.html...

Java: hello sir I am doing software..., enterprise java beans, java server pages
enterprise java beans, java server pages, core jsp: Hi, - java beans - Consider getting the original material given by sun for its courses. Try borrowing them. They are good. Else download the tutorial from the sun site... thats nice too. - Enterprise java beans - mastering ejb by Ed Roman - java...

Java: hello sir how are you..., java api, java lang object
java api, java lang object, hierachy: Well the hierachy of classes are hard. Because its alot. the highest class is object and all types are objects except basic types like int double. anything that starts with a capital letter is a object like String. these types have methods and they can be...

Java: hello, protocall, avialable
protocall, avialable, firewire port: Its not really the language, rather its whatever API you find that will handle the video. If you find one for java you can use that, if you find one for c++ then you can use c++. If you cannot find a library and you know the protocall for the video firewire,...

Java: help!!, class canvas, instance variables
class canvas, instance variables, pseudo code: Dahlia, 1.What is a constructor and why is it important? Is it possible to write a java code without a constructor? If so, how would one go about it? Give an example. A constructor is a special kind of method that initializes an object...

Java: help, java strings, arabic letter
java strings, arabic letter, arabic characters: It is possible (but not simple) to call VB functions from Java (or the other way). To do this you would need to write a c++ dll that inter operates with java using JNI. And that could then interop with VB. If instead you are using VB.NET, you can use IKVM...

Java: help with java, header footer, memory buffer
header footer, memory buffer, cleint: Jason, There is no way to read an image from (or write an image to) a socket. You must use the methods for reading (and writing) images with streams. After you have created a socket, you can get a stream for reading from it, or writing to it. You...

Java: help please with handler(chain of responsibility), public abstract void, chain of responsibility
public abstract void, chain of responsibility, abstract object: a sample compiled code attached public abstract class AbstractStorage implements Storage { protected String criteria = null; protected String identifier ; public AbstractStorage(String identifier) { this.identifier = identifier ; } ...

Java: help please with handler(chain of responsibility), public abstract void, chain of responsibility
public abstract void, chain of responsibility, abstract object: Well I see two problems with this code: 1. you are calling super.CheckCriteria, but this class only extends object, so there is no super to call method to call. 2. if this line was in the BinStorage class then it would be checkCriteria not CheckCriteria...

Java: help please problem with Singleton, proxy pattern, proxy object
proxy pattern, proxy object, singleton: scenario 1: create a private instance of the proxy object that connects to the db. Create its public getter and setter methods too. Adv: problem solved disadv: one can directly create an object of the proxy to create multiple connections scenario...

Java: help, mediatracker, string filename
mediatracker, string filename, gif jpeg: Well if you have the gif, jpeg, or png of the map you can create an Image using ToolKit.getImage(URL url) or ToolKit.getImage(string fileName) depending on if its a local or web file. Then you use a MediaTracker to complete the loading of the image. And finally...

Java: hi, fourth generation language, present project
fourth generation language, present project, lionel: Hi, Am really sorry. Though I can answer this question I would suggest you ask this question in the section of computer science of the same site as I am pressed for time in my present project. The link is as given below. Hope it helps. http://www.allexperts.com/browse.asp?Meta=305...

Java: hi, interger, logical problem
interger, logical problem, main string: public class Entry { public static void main(String arg[]) { try { byte bt[] = new byte[255]; int length = System.in.read(bt); byte b[] = new byte[length]; System.out.println (length); System.arraycopy(bt,0,b,0,length-2);...

Java: hi, global message, client ip
global message, client ip, chat program: The tasks are as follows : server - * fetches data from each client * appends data to a global message (hold a collection of all clients, so that this is possible.) * broadcasts the same to all users * similarly fetches each client ip, and name and...

Java: Thanx i'll send u the interface..., public abstract void, interface class
public abstract void, interface class, abstract object: Hey Anthony, All but a few of the errors i m getting are complaining about StorageException . This is an exception which is neither included in the standard Java library and isn t included with your two classes. I suspect this exception came from a thirdparty...

Java: hi,A simple question,..., mearly, private key
mearly, private key, hackers: Signing a jar mearly means that you are asserting that this jar came from you and it is unmodified. There is no legal problem. The effect of having a certification authority generate it just makes it more difficult (for hackers) to determine your private key,...

Java: hi, fourth generation language, flexability
fourth generation language, flexability, gl: 3rd gen languages interact directly with the machine, you can tell the computer exactly what to do. Whereas 4th gen languages describe the results but not how it happens. Because optimizers are not perfect it is generally more efficient to use 3rd gen. 4th...

Java: highscores, fileoutputstream, high scores
fileoutputstream, high scores, data structure: A vector is just a data structure that works like a resizable array. If you are going to use exactly 5 high scores, you might as well just use an array. There are a number of ways to store the high scores. A simple one is to use a DataOutputStream/DataInputStream...

Java: Icon, awt event, java awt
awt event, java awt, swing event: It depends on what the icon is. If its an instance of the Icon interface then you can simply call its paint method. If its an Image then you can use Graphics.drawImage method (see http://java.sun.com/javase/6/docs/api/java/awt/Graphics2D.html) You can...

Java: Image to Buffered Image, image png, image object
image png, image object, fileoutputstream: 1. Simply draw the image to the buffer. 2. ImageIO class is the only class in the standard api which saves images. There are various other 3rd party libraries which save images to spefic formats. 3. BufferedImage image = ... ImageIO.write(image, png ,new...

Java: Image to BufferedImage Conversion, image object, quick reply
image object, quick reply, image type: Jules, 1. How can we convert an Image type to BufferedImage type for saving. Well, BufferedImage is a subclass of Image. But the important thing for ImageIO.write is that the object implement the interface RenderedImage. You can use the ...

Java: Image problem, chapter11, binu
chapter11, binu, drawimage: Hi, Am sorry that I was out of town and missed changing the vacation status. The delay would be present due to the fact that image is generally loaded and used only when the drawImage is called. A general note on image loading and rendering is on the...

Java: ImageCompression in java, gujarat india, dynamic gui
gujarat india, dynamic gui, javaswing: Your question is a bit hard to understand, but if all your asking is how to mimic the behaviour of winzip (no JPEG questions) then... If you just want to use the standard java zip support you will have to rewrite the file if you wish to update the contents...

Java: ImageIcon and getPath(), unc paths, path work
unc paths, path work, jlabel: Mahmoud, The simplest way to make your icon file path work in this case is to use a File object. String iconfilename = mychooser.getPath(); File iconFile = new File(iconfilename); URL iconURL = iconFile.toURL(); ...

Java: ImageIcon and getPath(), jlabel, jfilechooser
jlabel, jfilechooser, getimage: you should not have to worry about slashes at all. Chances are the image is not valid or is incorrectly speficied. Make sure you are following this format: File selectedFile = fileChooser.getSelectedFile(); if(selectedFile != null) label.setIcon(selectedFile.getPath());...

Java: Images in Game Applets - Pong, awt event, java awt
awt event, java awt, game applets: You could try buffering your image. Keep an Image field around as a buffer, create it using createImage(width,height), in your paint simply paint the buffer, use getGraphics() on the image to get the Graphics object from the image, and move your paint code...

Java: Imp Information Required, eigen vectors, eigen values
eigen vectors, eigen values, sun tutorial: hi, very busy with deliveries to my clients. sorry. I am not sure abt point a) But my answer to point b is that you could do one of the following - * Create an if in javaranch.com, and get involved in their user forums * take up the exam in the same...

Java: Impact java has on systems development, time reliability, abstract question
time reliability, abstract question, development time: This is a very abstract question. I have been personally been on java for many years now and feel that for a person who is strong on oops, no new technology can be difficult. The development time taken is as fast as other softwares, most reliable and the...

Java: Import statement in Java, import statement, import statements
import statement, import statements, package structure: Hi, Sorry for delay, problems with connection. Import statements are needed because of the package structure in Java. If all classes were in the same base directory, then what you propose might be ok. The classpath only points to the base directory...

Java: INT expression, possible loss of precision, java example
possible loss of precision, java example, casts: Hi, This happens because Java has certain automatic casts and checks it performs. In your example, the 67 is automatically read as an int, and when addition is done, a converted to an int. Thus, when you try put that value into a byte there is loss of...

Java: Inline functions, code cube, inline functions
code cube, inline functions, class demo: Hi First of all there are no inline function concept in java.Inline functions are the functions which will be replaced by the code of the function itself during execution How ever C++ does support inline functions. eg. class Demo { public...

Java: Inner classes, anonymous classes, local variable
anonymous classes, local variable, key word: Dear Naveen, Thankyou for your question. But unfortunately, i was unable to understand your code problem. You ve defined an inner class inside a function class. Secondly your program doesn t contain any valid constructor. Thirdly inside a function, an...

Java: Input file, time words, reading data
time words, reading data, registeration: lets split the problem into simpler parts 1. understanding how to identify a word 2. registeration of words 3. counting words 4. counting lines 1. now a word can be identified as all characters while reading data till a space occurs in the text. ...

Java: Input from Scanner., scanner interface, universial
scanner interface, universial, using java: Since there is no universial scanner interface, using any library that allows access to a scanner will probably only work on a single OS. There are some 3rd APIs you can use to interface with the scanner, most of these use TWAIN, so not all scanners would...

Java: InputStream and OutputStream., outputstream, inputstream
outputstream, inputstream, temporary storage: Izzzz - Considering the sentence the sender will use an OutputStream, while the receiver uses an InputStream , since we can t directly connect an InputStream to an OutputStream, do we have to employ a temporary storage such as file? ...

Java: an InputStreamReader can convert 8 bit text to UNICODE., inputstreamreader, java nio
inputstreamreader, java nio, string class: Izzz, An article says an InputStreamReader can convert 8 bit text to UNICODE. An OutputStreamWriter does the conversion the other way round. The statement is a little bit over-simplified. The InputStreamReader is supposed to convert...

Java: Inserting values into textfields in websites, javascript method, field thanks
javascript method, field thanks, sql statement: A Query Page ~~~~~~~~~~~~~~ 1. create a textfield to enter the search criteria 2. a button to submit the search results Actions: On click of the button call a javascript method to submit the to a given servlet B Servlet ~~~~~~~~~~ 1. Get the...

Java: Installing Java on HP/Compaq Windows Vista Home Premium, sun microsystems inc, java runtime environment
sun microsystems inc, java runtime environment, opera browser: Hi, My advice is to first stop using internet explorer as your primary web browser. Go to www.opera.com and download the Opera browser. It is more secure, new versions with bug fixes and updates released regularly and is a lot faster. Secondly, to install...

Java: Instance variables, instance variables, instance variable
instance variables, instance variable, cohesion: Hey again Indy, Instance Variables: Well there is good reason for making these private (however they can indeed be made public). Lets use the example I gave you last time of an instance variable datatype called pupil . We created a function called...

Java: Is Integer passed by reference ?, public class test, public static void
public class test, public static void, intvalue: Hey Izzz, I ve done a lot of research into this problem for you: Integers Cannot be changed after being itialized. However, there is a practical solution which can be used that effectively works (but actually just has the original Integer point to...

Java: Integrating two java applications, java virtual machine jvm, java virtual machine
java virtual machine jvm, java virtual machine, answer change: I understand that RunProcess has an exec() method that allows a user to do this. But what are the implications of this? Does this mean I now have two instances of the Java Virtual Machine (JVM) in memory? Yes, you would have two VMs. You could combine...

Java: Interface????, multiple inheritance, java concepts
multiple inheritance, java concepts, java sun: See http://java.sun.com/docs/books/tutorial/java/concepts/interface.html Multiple inheritance is not allowed since when java was designed it was determined that it causes too many problems and is prone to abuse (See diamond of death in C++ for one problem...

Java: Interface with other apps, winamp playlist, gui toolkits
winamp playlist, gui toolkits, notepad window: Sagar, Sorry, but this isn t really possible from Java. Communicating with other applications on the desktop is a highly platform-specific operation, and the Java GUI toolkits just don t go down to that level. There are some scripting languages...

Java: Interface, proper authentication, iterator
proper authentication, iterator, sun site: an interface in lay man s terms is a rule that you place on all its children. Lets take an example... in real life, there are rules such as all men who enter a casino must wear a shoe, or cigarettes are not allowed to be purchased by children unless they...

Java: Interfaces in java, strict school, context changes
strict school, context changes, abstract classes: Ok, let me tell you what I told during my Sun Certified Java Developer Exam for this question... it goes like this! An abstract class would allow/permit one to have a super just as in the interface version but for one important thing! An interface always...

Java: Interfaces, method declarations, public interface
method declarations, public interface, class2: Here is an example: public interface Interface1 { void method1(); String method2(); int method3(String s); int method4(char c, byte b); void update(); } public abstract class Class1 implements Interface1 { protected byte b;...

Java: Interfacing java, Ms Access and Ms Excel, free libraries, macro in excel
free libraries, macro in excel, interface java: What do you mean by interface? Run java code as a macro in ms access and ms excel or read and modify their files? As for the former there are plently of free libraries you can use to do that. As for the first... its possible but a bit out of my scope. You...

Java: Interfacing with other apps, winamp playlist, notepad window
winamp playlist, notepad window, java program: I suggest you get clever, a commandline program which allows you to control winamp, and run that using exec method in Runtime. E.g. public void actionPerformed(ActionEvent e) { Runtime.getRuntime().exec( clever next ); } You can get clever from:...

Java: Internatinalization, multilingual system, thai word
multilingual system, thai word, db table: Its hard to say. How are you getting the information from the user? It might be the interface the user is using converts the characters to UTF-8 or whatever. So you might need to decode the values, either before you put them in the table or after you retrieve...

Java: Internet, compiler java, url class
compiler java, url class, java application: Java has many operations once connected to the internet (or intranet). There might be a library that handles direct access to the computer s modem. Most OSs will auto-dial once a request has been made to access an internet resource. For access a URL see the...

Java: Invalidate session in HttpBindingListener, session timeout, doubt thanks
session timeout, doubt thanks, detail exception: Now in order to create a listener for sessions you have to create your class which will implement the interface javax.servlet.http.HttpSessionListener. eg. public class MySessionListner implements HttpSessionListener { public void sessionCreated(HttpSessionEvent...

Java: Invalidate session in HttpSessionBindingListener, infinite recursion, session timeout
infinite recursion, session timeout, httpsession: Pak, First, you don t need to invalidate a session when its timeout is reached. The servlet container will do that for you. (See the documentation for the HttpSession method setMaxInactiveInterval.) Unfortunately, you didn t say which exception...

Java: Invoking Web Services through JSP, soap client, java sun
soap client, java sun, webservice: Juliana, Ah, this is a little outside my expertise. I ve written JSPs, and I ve played with web services, but I haven t used them together. Normally, you would want to conceal the use of the web services behind an Enterprise JavaBean. You can...

Java: Where is Iterator Interface Implemented?, iterator class, c iterator
iterator class, c iterator, util package: Each class in java.util implements its own iterator. These iterators are private classes, and although you can view the name of the iterator s class via System.out.println(iter.getClass()); you should not access it though the class. Your sample doesn t...

Java: Where is the Iterator interface implementation?, hashmap java, interface implementation
hashmap java, interface implementation, iterator class: Adrien, When I look into java.util package, there is only an Iterator interface (no Iterator class) That is how the authors wanted it to work. As a Java programmer, you are not supposed to know or care how the HashSet Iterator implementation...

Java: Where is the Iterator interface implemented?, iterator class, string data type
iterator class, string data type, c iterator: Based on the source code of HashSet class, there is a method for iterator as given below that is overridden - public Iterator iterator() { return map.keySet().iterator(); } Answer to Q2. As you keep researching into the source code of objects...

Java: Its about Java, please help me!!, eco system, fastest growing segment
eco system, fastest growing segment, networked game: Ryuzaki, I can answer the question about Java technology, but not the one about network games. I haven t worked with network games professionally, and do not have any experience in implementing them. Anyway, regarding this question: n your opinion,...

Java: What is Its Purpose of Java?, program files directory, java directory
program files directory, java directory, java java: First: Java and java script are two different enties, you can have one without the other. Java is activated whenever you go to a site with a java applet (which are not that common). Javascript is activated when you visit a page that has javascript. You...

Java: id number, j2me wireless toolkit, phone id
j2me wireless toolkit, phone id, program loading: Harry, The basic Java programming framework for mobile phones and other small devices is called the Java 2 Micro Editor - J2ME. I have not worked in this area, so I m not familiar with the constraints in loading programs on to mobile phones....

Java: image, int value, java awt
int value, java awt, grayscale: Although there are spefic techniques depending on the format of the image, if you want a general technique which is bascily means getting each pixel in the image and checking to see if it is grey. First create a PixelGrabber with forcing rgb (java.awt.image.PixelGrabber)...

Java: getting images dinamically, public static string, getting images
public static string, getting images, filenamefilter: Hi, Perhaps you need to apply a filter from your serlvlet. A sample is as given below - import java.io.File; import java.io.FilenameFilter; import java.io.FileFilter; import java.util.ArrayList; public class FileFilterExample { public...

Java: getting images dinamically, full time job, getting images
full time job, getting images, core java: If you would really like me to write out some code for you, I suppose I could. This will take a bit of time however, as I also have a full time job and not much free time. I do think that you have enough information now to write some working code though....

Java: images in javaswing, javaswing, imageicon
javaswing, imageicon, jpg frame: The easiest way to display an image is to use a label that has no text, and uses an ImageIcon as its icon. E.g. to display 2 images side by side (that are located in the same directory as your compiled .class file) in a JFrame you could use: ... JFrame...

Java: getting images from remote machine using applets, mysore india, larsen and toubro
mysore india, larsen and toubro, asp jsp: 1.can we communicate with other pc using applets? 2.If no,can we communicate with host from where applet comes.if posiible Applet can communicate with only the webserver hosting it and not other machines. If it has to access other machines, it has to be...

Java: getting images from remote machine using applets, mysore india, larsen and toubro
mysore india, larsen and toubro, getting images: 1. You can communicate with the server the applet is located on. For other computers you will have to get the user to accept a security warning (which requires you sign the applet). 2. See 1. a. You can directly talk to the host server using the Socket class....

Java: getting images from remote machine using applets, mysore india, larsen and toubro
mysore india, larsen and toubro, asp jsp: Hi, 1. Can we communicate with other pc using applets? Not really. Java applets must run in a sandbox which severely limits functionality. PC to PC communication is virtually non-existant. Limited functionality can be used however, by setting up...

Java: How to implement encaptulation., public int, public void
public int, public void, obj: I guess you mean class level and method level locking! Alright, when you add the word synchronized to a method, then its called a class level lock. but if you add somewhere inside your method a synchronized block it becomes specific to the method such...

Java: How to implement an out parameter in java? can you give me an example code?, typical examples, lionel
typical examples, lionel: Simple, create an object, pass it to a method of the class. Populate the values into that object inside the method and it would function as an out parameter. Typical examples used in daily applications are creating vecotrs that get populated during a database...

Java: improving java, dynamic scoping, string test
dynamic scoping, string test, sun tools: Although java does not permit functions in functions, you can put classes in functions and functions in those classes. using nested classes you can access variables in the function provided they are final. For compiling code while a program is running...

Java: inheritance and superclass instance, jvm, println
jvm, println, myc: Izzzz - I remember when constructing a subclass, the compiler has to call its superclass constructor first, what does that mean? does that mean to create a superclass object first? Yes, when you construct an Object, the superclass ...

Java: inline fuction, inline functions, jvm
inline functions, jvm: No, there is no inline functions in java. So, you can not make your own inline methods in java. However, the JVM, esp. the server JVM will automatically inline appropriate and frequently used methods as it determines what or which would could save time...

Java: inner class and anonymous class, jdk guide, developer books
jdk guide, developer books, default constructor: Izzzz - Well, your three rules are correct, but not complete. There are actually some additional restrictions. For example, an anonymous class can implement an interface or extend a class, but if it extends a class then that class must have a no-args...

Java: Do input/output stream are always relative to the user/programmer code ?, java inputstream, programmer code
java inputstream, programmer code, programmer application: Izzzz - I wonder if the concept of the input/output stream are always relative to the user/programmer code, I mean the input/output stream always refer to the input/output stream of the user/programmer application, not the input/output...

Java: input, sql statement, lionel
sql statement, lionel, databases: what do you mean by this question? do you mean to fetch data from the database and set it into a textfield? in this case, write a sql statement to fetch the data, and then pas it to your screen where you can set the text value. hope this helps. ...

Java: int array problem, jaspreet singh, b count
jaspreet singh, b count, pos2: Hi Dennis, Sorry for the delay in reply.... First, I would like to tell you that everybody has different vision and logics hence you might find better way of doing this... anyways following code will help you to get the desired result: { int count[]...

Java: int array problem, b count, println
b count, println, lionel: Hi, I didnt quiete understand the question or the calculation as to how 1,3,2,4 became 3,1,2,0! Please explain. My understanding was that when you say arrange in descending order of array location it would mean 1,3,2,4 would become 4,2,3,1 right? Regards,...

Java: int var = 1234 ?, java language specification, ascii number
java language specification, ascii number, ascii characters: Izzz, When you express 1234 as a string of ASCII characters, it would require one byte for each, and a total of 4 bytes. Java actually stores characters as Unicode, so each character would require two bytes, and a total of 8. However, when you...

Java: integer/stack, 2d array, integer array
2d array, integer array, integer object: Heya Chris, The string it prints out isn t an error - it s actually a memory location. In Java, a String is always printed as a string, int as an int, double as a double etc etc. When a variable can t be expressed as one of these basic datatypes, Java...

Java: integration of modules, time labels, java files
time labels, java files, java one: So the labels in the popup menu of f1, f2, and f3 are not showing when you call their main method, but they do show up if you run them seprately? Some global setting could interfear with them showing.... Use some progressive testing, try just creating...

Java: interaction of Java with C, command line arguments, string args
command line arguments, string args, java virtual machine: You aren t 100% clear on what you want. You can execute the java virtual machine and pass it the parameters to java like this: java myProg parm1 parm2 which will add those parameters to the main function of the java program: public static void main(String[]...

Java: What is the internally difference if I read data as bytes, characters, string and stream?, java streams, reading characters
java streams, reading characters, data translation: Izzzz - Okay, these are not difficult questions: 1/ Are bytes and stream the same things? No, all Java Streams can process bytes, but some Streams can also process other kinds of data. Look at the class documentation for java.io.DataInputStream....

Java: I got two interview questions, could you please help?, design perspective, exceptional circumstances
design perspective, exceptional circumstances, java lang object: Izzzz - Okay, I can answer these pretty easily. why can a constructor not be inherited? Constructors set up the content of their class. They cannot be inherited because an inherited constructor would set up the wrong class. In Java,...

Java: Why isn't this generic class declaration working?, class declarations, generic class
class declarations, generic class, class declaration: F is not defined, all new types have to appear in the template list. A correct way of doing this would be: class Xyzzy F,B extends Bar F {} --or-- class Xyzzy B extends Bar ? {} The second one mearly sates that this uses any Bar. You don t need...

Java: items, david j barnes, michael kolling
david j barnes, michael kolling, iterator class: It seems rooms have items, you probably just need to add something like getItemString method to room, which is called in getLongDescription to tell the player what items there are. You should proabably not have a single field for item as you may want some...

Java: JAR Encryption, java obfuscation, code obfuscation
java obfuscation, code obfuscation, user agent string: Vijai, How can I prevent anyone from downloading it and decompiling the class file? There is no completely effective way to prevent an adversary from downloading and decompiling applet classes. There are tricks and techniques you can use...

Java: JAR encryption, jar file, thanx
jar file, thanx: Although you cannot prevent anyone from decompiling or downloading it (the jar has to be downloaded and opened for the user to use its contents and the ). You can obfusticate the jar which makes it more difficult to decompile. There are various obfusticators...

Java: JARs, java virtual machine launcher, java virtual machine
java virtual machine launcher, java virtual machine, class images: It is difficult to guess what is wrong from the information you have given. Try this. Open a console window and change to the directory which contains your jar file. Then run the command java -jar DafmansKnock.jar You will get a java error message (Like...

Java: JAVA, letter word, ch1
letter word, ch1, max 4: Something like this: int hit = 0; for(int i = 0; i 3;i++) { char userChar = userInput.charAt(i); if(userChar == ch1 || userChar == ch2 || userChar == ch3) hit++; } This is assuming that the user put in a valid string. And userInput...

Java: JAVA, microsoft calculator, button button
microsoft calculator, button button, snippet: note: this snippet will run only in windows. step 1: create an actionlistener object by inheriting the ActionListener interface. step 2: override the method actionPerformed step 3:write the following line into the actionPerformed method of your button...

Java: JAVA, microsoft calculator, parameter combinations
microsoft calculator, parameter combinations, variable declarations: Hi there! The question has 2 parts: (1) how to run an application external to the virtual machine and (2) how to react on pressing of a button. (1) To start an external process you need to get the Runtime instance (which allows the Java application to...

Java: JAVA, microsoft calculator, string cmd
microsoft calculator, string cmd, exec cmd: Hi, This is a quick answer to your question. Play around with it and you could add more functionality. The code I have written should do exactly what you have asked if simply pasted into your code. [CODE] public void jButton4_actionPerformed(ActionEvent...

Java: JAVA, emergency medical service, employment pages
emergency medical service, employment pages, flash file: Hi, The problem is that the flash file http://www.trentonems.com/logo.swf cannot be found. Try copying the file logo.swf to the employment_pages folder. You may need to edit the line in headers.js: document.write( EMBED src= http://www.trentonems.com/logo.swf...

Java: JAVA, private bufferedreader reader, input sequence
private bufferedreader reader, input sequence, indefinite length: Jane, I tried using System.in and it lets me input the sequence however I still get a zero for the longest monotone sequence. If you are going to try to supply the sequence on System.in then you ll need to use the newer version of the...

Java: JAVA!, string test, random words
string test, random words, letter word: Hi Mark, You can generated the random words in char array and then can easily make String out of it: ***For Example: *** char i[] = new char[3]; i[0] =(char)((int)5*Math.random()+(int) a ); i[1] =(char)((int)5*Math.random()+(int) a ); i[2] =(char)((int)5*Math.random()+(int)...

Java: JAVA, jaspreet singh, random banner
jaspreet singh, random banner, random images: Hi Ron, Even I use the following to open link in new window.... A HREF= YOUR LINK target= _blank IMG SRC= YOUR IMAGE /A Try this in NETSCAPE where you can see javascript error in JavaScript console... Regards Jaspreet Singh ...

Java: JAVA, string args, word string
string args, word string, length bytes: main is static since its a more minimal starting point. If main was not static then the class that contains main would have to be created. the string args[] in the main function is for passing parameters when starting. If your making a commandline program...

Java: JAVA, claculators, carret
claculators, carret, beginer: I would recomend the replaceSelection(String) method, which performs the same function as if the user typed in the text box. If there is selected text it will be replaced, otherwise the text will be inserted where the carret is currently located. Your other...

Java: JAVA, microsoft calculator, external applications
microsoft calculator, external applications, operating systems: Warning: Executing external applications may fail on different operating systems. Runtime.getRuntime().exec( calc.exe ); There are additional steps you must take if you plan to execute console applications. Also note that this method may thow IOException,...

Java: JAVA APPLET... hi lo game trouble, war card game, awt event
war card game, awt event, java awt: Hi Sophia, I have made the changes in the method drawCard(...)... use this in your code: void drawCard(Graphics g, Card card, int x, int y) { // Draws a card as a 80 by 100 rectangle with // upper left corner at (x,y). The...

Java: JAVA APPLET... making a game, war card game, awt event
war card game, awt event, java awt: The most common mistake in loading images is that they are dynamically loaded, so multiple images can be queued. Before you can display the images you have to let them load. Use the media tracker for this (http://java.sun.com/j2se/1.4.2/docs/api/java/awt/MediaTracker.html...

Java: JAVA Calendar, java applet code, java awt
java applet code, java awt, leap years: Given a date, month and year, once you can identify the start day (meaning a day in the week), then all you need to do is take care of the display! Whereby you can 1. first identify the number of days based on the month 2. identify the number of weeks,...

Java: JAVA HELP!!!!!!!!!!, correct syntax, java help
correct syntax, java help, string method: Mark, Okay, you are making progress. Once you have the string from the TextField, you need to compute the number of hits and decide whether the user has won the game. If you want to compare for string equality, the correct syntax is: ...

Java: JAVA HELP!!!!!!!!!!, random letters, java help
random letters, java help, javac: Heyas Mark, The program looks pretty good already, you ve very close to finishing it :). However there are a few parts that i m unsure about. For example you use i/k/p like ints (when you put it in a loop, add 1 to it etc), but they ve been declared as...

Java: JAVA Library fundamentals, class lib, japps
class lib, japps, dynamic settings: Hi, Probably you can read the heading - Java finds javaxcomm files in an unexpected place in the page http://practicalembeddedjava.com/tools/javaxcomm.html You have the same problem. A classpath is generally set during execution As for dynamic settings...

Java: JAVA limitations?, free heap memory, intel pentium m 760
free heap memory, intel pentium m 760, intel pentium m: Hi Peter, I am sorry about the delay in replying. JAVA in itself have so limitation of this sort, however the program you are using may have a glitch in it. This symptom is typical of a situation where external resources given to the program like DB connection...

Java: JAVA limitations?, java vm microsoft, sun microsystems java
java vm microsoft, sun microsystems java, java runtime environment: Hi, Java is not limited, but the Java version you are using most certainly is. One major problem is that you are using Microsofts Java VM. Microsoft actively tried to undermine Sun Microsystems Java and Sun Microsystems stopped all further communication...

Java: JAVA Project, astring, library class
astring, library class, tester program: Hiya, Well i ve checked over what you ve done so far and looks like it s all right. I think your library.class file is the one which the user actually interacts with to do all the tasks you enabled above right? A few months ago I actually made something...

Java: JAVA Project, astring, library class
astring, library class, tester program: Lets see here: first you will need some data structure to keep the patrons and the books, you can use a Vector, or if your concerned about speed a Hashtable So the Libaray has various functions: addNewBook(String title,String author) --or-- addNewBook(Book...

Java: JAVA RTE switches, sun microsystems inc, org namespace
sun microsystems inc, org namespace, java classpath: You can use java -help to get a list of standard commands. You can use java -X to get a list of non-standard commands (those that might not be avialable on all operating systems). Standard useage is: java -classpath Directory to compiled java code...

Java: JAVA/sql server 2005/XML, sql server 2005, java sql
sql server 2005, java sql, test taker: Venkat, I m not going to do this assignment for you, but I will tell you some technologies you ll need to use. First, you ll need to connect to a database and use it. The assignment seems to specify MS SQL Server 2005, but it won t really matter which...

Java: JAVA XML, generic answer, java xml
generic answer, java xml, xml file: Hi, Sorry did not receive this question by mail. To read a xml file you may either use a sax or a dom parser. I would suggest you go through this online tutorial first before you begin your expedition. http://www.zvon.org/index.php?nav_id=tutorials&mime=html...

Java: JAVA, string answer, letter word
string answer, letter word, max 4: well what you can do is create a separate class that check the data. here is a sample public class CheckCorrectness { public CheckCorrectness(String aGuess, String aAnswer) { guess = aGuess; answer = aAnswer; } public...

Java: JAVA2 RUNTIME, puzzle pirates, java2runtime
puzzle pirates, java2runtime, thanks in advance: There is not too many reasons to have multiple java2s. A few might be: 1. If there is a bug that exists in a newer java2, but not in an older one. 2. When developing java code, to ensure that it will work on older versions. 3. When compiling your own version...

Java: Jar Files, jdk version, java jdk
jdk version, java jdk, object oriented programming: First by opening the archive you are actually asking java to launch the application in side. If you want to view the contents of the jar you could try opening the jar with an unzip utility. As for property setting up the manifest, I can t really say since...

Java: Java, stringreader, java library
stringreader, java library, deprecation: You are using some method in the java library that is not recommend you use since it is out of date. first when you compile add the -deprication to the command line. If your using an ide then check that option in the compiler settings. Then you will...

Java: Java, public class test, fileoutputstream
public class test, fileoutputstream, documents and settings: Tan, Actually, these questions are not very complicated. First, this code: public static void main (String[] args) { ErrorLog errorlog = New ErrorLog (); } The problem is that the new operator is spelled wrong. You need to use...

Java: Java, textual menu, choice menu
textual menu, choice menu, reading lines: Hyder, I m not sure if you are asking for a GUI menu (to use with a graphical display and windows) or a textual menu (to use on the console). Unfortunately, you haven t told me your overall programming goal, so I can only give you general advice....

Java: Java, java awt, awt event
java awt, awt event, choice menu: Hey your question is unclear do you want to create the menu without any imports ?? do u require the menu to be in the GUI?? In the command mode(ie from cmd) an import of java.io*; is sufficient to do ur program For GUI u import java.awt.*; and more...

Java: Java, remote monitoring system, java nio
remote monitoring system, java nio, awt event: Tan, 1. This little program is using a facility of the Java NIO packages to lock a file. In this case, lock means that no other program on the system will be able to lock the file -- it is a form of mutual exclusion. Programs often...

Java: Java, remote monitoring system, java nio
remote monitoring system, java nio, awt event: 1. since the lock is released just after it is created, you wouldn t see anything happen. 2. It appears to be some OS issue, probably in creating a socket and the like. You should try running it though a debugger and see what part is causing the error...

Java: Java, boolean data, boolean values
boolean data, boolean values, int rows: Hyder, The code that you have written so far will correctly display a fixed 6x6 array of boolean values. The first thing you should do is put all that code into a class rather than just leaving it in main(). public class BoolArray { private...

Java: Java, choice program, desired position
choice program, desired position, true x: I dont see what is the difficulty at all. Just get the co-ordinates from the user, namely 1,2 and then all you need to do is assign the value of x to that co-ordinate, such as a[1][2] = x Once this is done, you can just iterate through the whole 2 d array...

Java: Java, queen chess, chess puzzle
queen chess, chess puzzle, java text: Well instead of replacing x and y with 0 and 0, instead get an x and y from the user (you can ask twice, once for x and once for y). if(pts[i][j] && (i == x || j == y || i - j == x - y || j + i == x + y)) well this is a big if statement... pts[i][j]:...

Java: Java, queen chess, element array
queen chess, element array, chess puzzle: Hyder, I m familiar with the 8-queens problem, of course, although I have not bothered to write a solution in Java before. From the sound of your letter, you ve got three separate issues: 1. how to structure your program 2. how to write out...

Java: Java, class helloworld, java sdk
class helloworld, java sdk, java case: lets see here first make sure you have the following: 1. Java SDK J2SE (from java.sun.com) 2. An ide (e.g. Netbeans www.netbeans.org) If you don t have either 1 or 2 you can get both of them in one download from (http://java.sun.com/j2se/1.4.2/download.html)...

Java: Java, unchecked exceptions, subclass
unchecked exceptions, subclass, restriction: If a checked exception is thrown, or you call a method that declares that a checked exception may be thrown, then you must either catch that exception (or a subclass of it) ot declare the exception (or a subclass of it) in your throws clause. Unchecked exceptions...

Java: Java, english introduction, java program
english introduction, java program, introduction html: This very much depends on the operating system of the computer. You could put the java program in the startup folder if you are running windows. Or you could run the java program as a service and have it automatically startup. (see: http://wrapper.tanukisoftware.org/doc/english/introduction.html)...

Java: Java, 9x machines, microsoft documentation
9x machines, microsoft documentation, srvany: oh yes! there is - for linux - make an entry in rc.d/init.d for windows: 9x machines - make an entry in autoexec.bat for all others - make an nt service - using srvany.exe and ntsvc.exe. for its usage, you may check the microsoft documentation hope...

Java: Java, java programing, server side programming
java programing, server side programming, java rmi: Kimsan, The project you describe is not for a Java beginner. It will be too difficult. However, I will give you some tips. I need to creat a small Chatting Room which i need to have some fields and button such as: username, password, message,....and...

Java: Java, file java, java plugin
file java, java plugin, java sun: You can download and install java plugin from this site http://java.sun.com/j2se/1.4.2/download.html click on the Download J2SE JRE link. Installing java is harmless. It allows your browsers to support java (applet) based websites. But if these...

Java: Java, security risk, java sun
security risk, java sun, java applet: You can download the newest version of Java from java.sun.com. When you run a java applet from the web, it is safe unless you are asked to trust the applet, in which case the applet may or may not be safe. Saying yes when asked if you trust an applet has the...

Java: Java, file to be downloaded, html page
file to be downloaded, html page, hard disk: Your question is not very clear. However, 1. If you want to just download the file for yourself, just type the url to the file in a browser and hit enter. Browser will come up with save file dialog. 2. If you want to provide download facility to users,...

Java: Java, string object, dateformat
string object, dateformat, string output: You should use the DateFormat to read in and write out dates. E.g. DateFormat myDateFormat = new DateFormat( MM/dd/yy ); Date borrowDate = myDateFormat.parse(s); String output = borrowDate.format(borrowDate); Be careful that there are no borrow dates...

Java: About Java, pogo, windows xp
pogo, windows xp, yahoo: just because you have windows XP doesn t mean you have java installed. goto http://www.java.com/getjava to install it. To download java and use it you need to have administrator priviliges (which you should have if you own the computer). If the automatic...

Java: Java, windows batch file, muthulakshmi
windows batch file, muthulakshmi, java command: Muthulakshmi, If you want to run a Java program that does console I/O (using System.in and System.out) then you can just run it from a normal command shell. If you want to be able to double-click on an icon and get a console to come up, the...

Java: Java, windows java, java html
windows java, java html, java program: Hi, When running a Java program, the command prompt is normally displayed. This is always the case. Please see http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html for details. Near the top of that page, it states: The javaw command is...

Java: Java, public static string, class coach
public static string, class coach, discount period: Hi, I think you mean in the public static double reservationFee() method? The code looks ok and should work as long as SeatReserved is false. It looks like you are writing your program using JBuilder. Try setting a breakpoint at the line double fee...

Java: Java, string concatenation, null string
string concatenation, null string, println: I can t help you with this too much since I am not not familiar with jsp. On a side note, do not use string concatenation to form sql queries, it leaves you vulnerable to hackers (and the search doesn t work when a is used). Use prepared statements instead...

Java: Java, manual jsp, lionel
manual jsp, lionel: Sorry, I was out of station and just came back. So, am sorry that I could not reply to you earlier. Perhaps you could visit http://www.java.com/en/download/manual.jsp and download java from there. That would fix your issue. Hope this helps. Thanks...

Java: Java, string output, palindrome
string output, palindrome, main string: Hi, You should covert the string either to upper case or lower case first and then strip all characters such as comma s, full stops, etc from the string. Only keep a-zA-Z0-9. [pseudocode] e.g. for(int i = 0; i palindromeLength; i++) { if(char(x)...

Java: Java, static methods, object instance
static methods, object instance, applications java: Ramakrishna, What is the difference between Class method and Object method? Give some example also? An object method is called with respect to a particular instance of an object class, and it can interact with or modify the state of that particular...

Java: Java, sql date, java sql
sql date, java sql, java files: Hi, A package is like a folder in windows or linux or mac. You can logically seperate the files (or classify them) by using a folder in your OS. Packages allow you the same kind of leverage. Just like your OS, you can not have two filenames in the same...

Java: Java, java language, java java
java language, java java, personal website: 1. Java is both compiled and interpreted. It is platform independant unlike script which can work only in a browser and interpreted. 2. May be helpful. But not mandatory. 3. If you are looking only for a html website.. look in for any html guide.... if its...

Java: Java, public constructor, params
public constructor, params, lionel: Hi, In an example such as the above, by calling super(config), you explicitly called the overloaded constructor of the super class. In general, super is used in the following context - as a keyword, super would mean an object handle of the super class....

Java: Java, java frames, project delivery
java frames, project delivery, lionel: Been busy with a project delivery. Missed your question. I think you need to write some code to get a print of the values in the table. You may try reading the following - http://examples.oreilly.com/jenut/HardcopyWriter.java This prints the given...

Java: Java, macintosh os x, simple computer
macintosh os x, simple computer, simple stuff: Java is not really a program, rather it is a tool required for some applications to run, espically some web based apps. If you are running Windows you can use Add/Remove programs to remove java. If you are using a Macintosh (OS X) then you cannot get rid...

Java: Java, public class test, fileoutputstream
public class test, fileoutputstream, documents and settings: 1. Well from the error message, when you run the application it doesn t have access to the desktop. Either change the location of the log file or give it access to that directory. Your main uses New not new. 2. Your problem seems to be that you named...

Java: Java(Abstract Class), strict school, context changes
strict school, context changes, abstract class: An abstract class unlike the interface counterpart gives you a lot of leverage. You can create methods and constructors within it too! Again, an abstract class allows/permits one to have a super just as in the interface version except for one important...

Java: Java API to create a temporary folder in file system ?, printstream, temporary folder
printstream, temporary folder, platform os: Izzzz - I heard that we could use Java API to create a temporary folder in file system, and OS will manage that folder, is that true? how? Yes, that is mostly true. The Java java.io.File class offers a static method that can create a temporary...

Java: Java Applet, public void paint, public class test
public void paint, public class test, awt event: This moves a square in a clockwise fashion, Im sure you can figure out how to change this to do clockwise. import java.io.*; import javax.swing.*; import java.awt.event.*; import java.awt.*; public class Test extends JApplet { int xSquare = 0;...

Java: Java Applet Question, jsobject, awt event
jsobject, awt event, java awt: Keith, Your code basically looks okay. First, be sure you are including the MAYSCRIPT attribute (or parameter) with value true . Otherwise your call to JSObject.getWindow() should certainly fail. I m guessing you must already have that, because...

Java: Java Applet, rectangular shape, single web
rectangular shape, single web, java applet: Only rectangular object are supported in Java and html. You can resize an applet by using resize(int,int). You can fake a non-rectangular shape by filling in part of the area with the same color as the background of the web page. Or perhaps use multiple applets...

Java: Java/Applets/Confusion, java awt component, public void paint
java awt component, public void paint, competent programmer: Hi Albert, Lets try to break this program into smaller parts First - public class TestApplet extends JApplet{ [PJL] This line instructs that, we will be making a JApplet. By default a JAppet, inherits all the features of an Applet, and hence from...

Java: Java ArrayList, arraylist in java, java arraylist
arraylist in java, java arraylist, int numbers: Rob, The generics facility in Java can be used only for object (reference) types. It cannot be used primitive types like int or float . So, if you wanted an ArrayList that contained only integer data, then you d need to use the object type which...

Java: Java - Arrays, java arrays, frank sinatra
java arrays, frank sinatra, java knowledge: Your list is expandable, so we re going to use the LinkedList class from Java Collection. Input is going to be a number of attributes so this must be made of another object, lets call it CD. As you said, a CD will have: artist, cd title, & number of tracks....

Java: Java: How to access a java file, true score, who wants to be a millionaire
true score, who wants to be a millionaire, web import: If I understand your question correctly: You want to load a file that has the next question so you can display it using Applets. Well the first step is to place the file you want to read relative to your .class file(s) Say that your main class is located:...

Java: Java app slow loading, virtual machine java, secured web servers
virtual machine java, secured web servers, microsoft virtual machine: Ian, I understand why your Java-based menu applet is slower and more troublesome on SSL-secured web servers. For any version of Java 1.4 and later, the Java runtime establishes a *separate* SSL connection to the server. The SSL session establishment...

Java: Java applet, set ups, plugin work
set ups, plugin work, internet explorer: Hiyas Bernardo Well first of all I should say I had nothing to do with making that web page! Java is as close a language as there is to a universal multiplatform language (one that you can use on any operatng system without changing it). However there...

Java: Java applets, java control panel, yahoo games
java control panel, yahoo games, ad blocker: This depends on a couple of things. 1st what vendor are you using java from. If you are using/want to use Sun s version you could goto www.java.com and see if redownloading the plugin will help (or using the java control panel and see if it is enabled for...

Java: Java assignment, winter semesters, java assignment
winter semesters, java assignment, winter test: you can declare arrays using the [] syntax. E.g. To create an array of 5 elements (all initially set to 0) use: int[] tests = new int[5]; To create an array of 5 elements with speficied values: int[] tests = new int[]{1,2,3,4,5}; To initialize the...

Java: Java Batch file, java source code, batch script
java source code, batch script, java file: Lucksman, I don t know what you mean by functions as a Batch file . It sounds like you want to be able to run Java source code directly, like a batch script. Java cannot run that way; it must be compiled and then run. If you want to be able...

Java: Java Beginner Program, java beginner, beginner program
java beginner, beginner program, experence: This is too general for me tog correctly answer. The program requirments are too vague, also I do not do homework, if you had a problem figuring out some step of the way I could help, but I have no idea what level of experence you have. Have you ever written...

Java: Java Book Recommendation, beginning java 2, oop languages
beginning java 2, oop languages, database connectivity: Beginning Java 2, SDK 1.4 Edition by I Horton, from Wrox publishers...You can download the source code of the book from http://www.wrox.com/books/0764543652.shtml Awt is not much used now, but for it see Schildt s Teach Yourself Java, an old book.....

Java: Is the Java bytecode the same as the binary code?, binary data format, execution instructions
binary data format, execution instructions, java virtual machine: Izzzz - Is the Java bytecode the same as the binary code? That depends on what you mean by binary code. Java bytecode is a binary data format that includes loading information and execution instructions for the Java virtual machine. In...

Java: Java or C++ ?, maruti 800, jaspreet singh
maruti 800, jaspreet singh, thick client: Hi Subramanyam, Thanks for the appreciation. I have few friends working in Bangalore. I am from Mumbai.. :-) Well, regarding your question... though I have worked little bit on c++ but I really admire it. Also, you may find it difficult to develop using...

Java: Java Calculator, java awt, dot button
java awt, dot button, button six: You can use replaceSelection to either insert text where the users cursor is or replace text if it is selected (this acts as if the user pressed the key or pasted text into the text component) e.g.: textField.replaceSelection( 1 ); The other option is to...

Java: Java and CGI, client side java, string inputline
client side java, string inputline, query string: Kimsan, Your Java code is okay, although I do not approve of hard-wiring the URL into the main method. The Perl code is not so good. It will not send any data, and that will prevent the Java code from working. Also, it will end with a non-zero...

Java: Java Classpath, public void print, java source code
public void print, java source code, package printers: Buddaboy, Yes, I understand why the compiler gave you an error in the first case. When you put an import statement in your Java source code, you must specify either the fully qualified name of a class import printers.printer; ...

Java: Java Constuctors, public class test, default constructor
public class test, default constructor, int number: A constructor is the method that is called to create an instance of a class. If you do not provide a constructor definition a default constructor without parameters is created automatically. E.g. public class Test { private int number; public...

Java: Java and cellphones, wap cellphone, writing games
wap cellphone, writing games, java sun: Sure its possible to do that. Writing games or any complex program takes quite a while to do. For cell phones companies usually spend a few months with a few developers to design them. The developer center for java is: http://java.sun.com if you are planning...

Java: Java coding, java awt gridbaglayout, awt toolkit
java awt gridbaglayout, awt toolkit, awt event: Hi, Here is the main class from a calculator app that I built some time ago. I have removed the functionality. This code basically shows you how to set up the GUI. Hope this helps. import java.io.FileInputStream; import java.io.FileOutputStream;...

Java: Java compile error package does not exist, extension libraries, error package
extension libraries, error package, jar files: Chances are the Java3D library does not exist on the other person s computer. All extension libraries are by default installed in (on windows) c:program filesjava java jre directory libext if you installed java3d it probably added a jar to that directory...

Java: Java compiled program execution, java folder, program execution
java folder, program execution, java command: Hey Monty, The main cause of this error is incorrect use of the java command. For example if your source code is called myProgram.java. Then you will need to first compile using: javac myProgram.java then run the compiled class file using: java...

Java: Java and Dll files, java expert, link java
java expert, link java, sun site: Hi, I would recommend you to learn java from the sun site itself which is http://java.sun.com - link Java Tutorial. There is nothing better than this one. As for calling the dll from your java code, please refer http://community.borland.com/article/0,1410,20679,00.html...

Java: Java doesn't work, control dialog, administrator privileges
control dialog, administrator privileges, best guess: The java console is not necessary to run java, however if the option appears in your browser java is probably installed. My best guess is that you might have installed an older versino of java, one that is not compatible with the java applet you want to...

Java: Java EditorPane class, native english speaker, browser in java
native english speaker, browser in java, frame tags: Well not easily. The way that the api does it is by setting various attributes in the style sheet. Since the java implementation of HTML is not complete, aside from reimplemeting html stuff, I would say just to parse out the Frame tags and put the content...

Java: Java/Email Conflict?, dell inspiron 600m, dell inspiron 600m laptop
dell inspiron 600m, dell inspiron 600m laptop, java email: Chances are you had an older version of java installed on the system, when you installed the newer java, the newer one superceeded the older one (although the older one was not uninstalled). When you reconfigured the MSConfig it put the older one back in action....

Java: Java Error., java class files, java error
java class files, java error, 43594: Carl, I m having a hard time understanding what you are trying to do. I tried to go to Uberscape, but the site seems to be down. The problem you are seeing, ClassFormatError, should never happen. When it does happen, it is usually the result of...

Java: Java Excel, open source libraries, javadoc api
open source libraries, javadoc api, java libraries: Hi, There are a number of open source libraries that you can use to write and parse Excel documents using Java. You could try these: http://sourceforge.net/projects/java2excel http://sourceforge.net/projects/jexcelapi http://www.jexcelapi.org Packages...

Java: Java enabled browser, java boxes, yellow button
java boxes, yellow button, java plug: Hi Sanjay, You re looking in the right place to get the Java plug in activated, however the problem is that it doesn t come ready installed with Windows. It s very easy (and free) to get though. Just go to www.java.com, and click on the yellow button...

Java: Java Floating Panels, java swing tutorial, tutorial swing
java swing tutorial, tutorial swing, index7: Here are a few examples that demonstrates a floating panel - http://www.onjava.com/pub/a/onjava/excerpt/swing_14/index7.html http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-JToolBar.html http://java.sun.com/developer/onlineTraining/GUI/Swing1/shortcourse.html...

Java: Java-Fox database, type mismatch, jaspreet singh
type mismatch, jaspreet singh, foxpro database: Hi John, I am sorry but I dont have any idea that whether Foxpro Database supports BETWEEN clause or not (I think it does). Anyways, are you passing the value dynamically or static? try printing the query if forming it dynamically. Basically I just wanna...

Java: Java Fundamentals, line separators, instance variables
line separators, instance variables, java fundamentals: Hi, To answer answer all of your questions in detail would take a lot of time. Here are some quick pointers. 1. Separators What do you mean by separators. There are line separators, windows , linux/unix . There are toolbar separators, etc. More...

Java: About Java font object, java awt, font metrics
java awt, font metrics, custom fonts: Rajesh, It is possible to use custom fonts in Java 1.3 and later. The key method you need is the static Font method createFont. You can use createFont to load a TrueType font from an InputStream. (In Java 5, you can load from a File, and you can...

Java: Java - GPA calculator, gpa calculator, input dialog
gpa calculator, input dialog, jtextfield: Hi, Am sorry that I was out of town and missed changing the vacation status. You could do something like - JTextField ta = new JTextField( Some text ); JLabel label = new JLabel( some label ); JPanel p = new JPanel(); p.add(label); p.add(ta);...

Java: Java GUI, jframe, java gui
jframe, java gui, taskbar: No, a JWindow does not show up in the Taskbar. You can hide a JWindow, but not minimize it. You can however create a JFrame and set its decoration property to false (jFrame.setUndecorated(false)) so it does not have a title bar. Then you can simply call setState...

Java: Java .... give number to lines, jcreator, learning java
jcreator, learning java, editplus: Been busy with a project delivery. Missed your question. I feel that its best you use a special editor like editplus or textpad or any IDE like JCreator or Visual Cafe. Some notepad versions also give you the facility to goto a line (press Control - G )....

Java: How does Java handle overflow and underflow?, java language specification, point infinity
java language specification, point infinity, integer operations: Izzzz - Java does not give any explicit notifications of arithmetic underflow or overflow. For example, integer operations will just wrap around if you let the operands get too big. Floating-point operations will not wrap around, but they won...

Java: Java & Internet, danish church, downloaded images
danish church, downloaded images, internet thanks: Hi, Notepad has definately taken over opening the images. Try the following: Option 1: As before, Find an image on your hard drive similar to the ones that are downloaded. Right click it and select Open with from the menu. Choose or browse to...

Java: Java J2SE GUI & JDBC, final void, java j2se
final void, java j2se, java util: Hi, You can modify the following code to do what you want. /** * Drop event. Used to open files that are dragged on to the GUI. * p * @param droptargetdropevent the DropTargetDropEvent */ public final void drop(DropTargetDropEvent...

Java: Java/j2ee, image file formats, image raster
image file formats, image raster, java j2ee: Purushotham - what is the data type used to store images in java? Several different object data types can be used for images in Java. The first, and simplest one, is the java.awt.Image. It represents an image that can be drawn in an AWT or...

Java: Java Link, java link, java program
java link, java program, windows machines: Runtime.getRuntime().exec( cmd start /c +file); This is the simplest solution. It also will only work on Windows machines, and your program will not know if it didn t (e.g. user does not have acrobat) also this throws IOException so you will need to have...

Java: Java + Linux + Remote Boot = Focus problem, legacy code, focus problem
legacy code, focus problem, remote boot: My best guess would be that a component (possibly invisible) that is loaded post boot is taking focus away from the application. If you are trying to automate the application you can work around the focus problem by directly sending events via the even queue....

Java: Java in Linux, linux executables, java executable
linux executables, java executable, standalone program: Hi, The answers are as below - 1. use javac to compile your java file and java to execute your standalone program. If you need to use applets, ensure that your OS supports a gui. If not, you may not be able to execute them. 2. You can not create executables...

Java: Java Menu, emergency medical service, java menu
emergency medical service, java menu, solution path: Hi, Though this is a question for the html and javascript experts I would give you a suggestion that if you open your html in Macromedia Dreamweaver you can move this menu to the desired location as you wish. Otherwise I would suggest that you query...

Java: Java & MySQL in Arabic, arabic support, java mysql
arabic support, java mysql, refman: Hi, Normally the encoding (windows-1256) has to be set on the jsp, the browser and mysql must be changed to the right encoding format if it was only arabic support. http://java.sun.com/j2se/1.3/docs/guide/intl/encoding.doc.html http://dev.mysql.com/doc/refman/4.1/en/charset-charsets.html...

Java: Java maze, two dimensional array, java maze
two dimensional array, java maze, maze generation: Hi, Here are some links where you can find examples of how you would go about doing this: http://www.java-tips.org/java-me-tips/midp/how-to-create-a-maze-game-in-j2me.html http://math.hws.edu/xJava/other/Maze.java http://en.wikipedia.org/wiki/Maze_generation_algorithm...

Java: Java messenger program, java sockets, protocol guidelines
java sockets, protocol guidelines, irc protocol: Yea, I don t think that there are much in the way of java IRC servlets, and if there were it would defeat the purpose of the project. If you were ambitious you could follow the IRC protocol guidelines (which would allow other irc clients/servers to interact...

Java: Java messenger, awt event, java awt
awt event, java awt, init method: Vhalerie, You can only call the getCodeBase() method on your Applet object. In the code snippet you sent to me, it looked like Messenger is not an Applet. Either you need to make Messenger extend java.applet.Applet, or you need to have another class...

Java: Java Network Traffic Generation, java network, udp packets
java network, udp packets, traffic generation: You can probably use datagrams (http://java.sun.com/docs/books/tutorial/networking/datagrams/definition.html) to do these kind of operations, I don t see any limit on java with regard to how fast you want to send data out however as long as the connection...

Java: Java New WIndow, head tags, technology focus
head tags, technology focus, blocking software: Hi, Could you please ask this question in the javascript portion of this website. Try http://www.allexperts.com/ followed by Links Computing/Technology -- Focus on JavaScript -- Javascript to ask your question(s). I answer questions only in Java....

Java: Java New Window, jaspreet singh, pop up blocking software
jaspreet singh, pop up blocking software, head tags: Hi Ron, 1. You can change your popup() function to take an argument (for width and height). for example: function popup(windowProp){ window.open( bundle.html , imagewin ,windowProp) } something like above..... I hope this is what you asked in...

Java: Java need help, interface inheritance, class inheritance
interface inheritance, class inheritance, public interface: AZ - What different between extends and implements Java uses the extends keyword for class inheritance and interface inheritance. So, you would see: public class DateDisplay extends JComponent { ... } or ...

Java: Java networking under Linux and Windows, server ip address, fedora linux
server ip address, fedora linux, java networking: Hi, There is no principle problem why the systems cannot connect. It doesn t matter that they are tunning different operating systems. The problem is either with your code, which you haven t sent, or with the network. So to the question whether the operating...

Java: Java networking under Linux and Windows, server ip address, fedora linux
server ip address, fedora linux, java networking: Siva, In general, Java doesn t care whether it is running on Linux, or Windows, or any other kind of general-purpose OS. It should behave the same on all of them. In my experience, this is true. If your program is not able to set up a Socket connection...

Java: Java networking, java networking, naming service
java networking, naming service, java client: Narayan, I think I hit the wrong button, sorry. Anyway, your question was: Is it necessary for a java client to know the port of the server to communicate with the server ? Generally, yes. For simple socket networking (using java.net.Socket)...

Java: Java I/O and Char variables followup, java input, inputstreamreader
java input, inputstreamreader, primitive type: You can use the read function of the reader. The return value is int though so you will need to cast it to char. E.g. int nextChar = reader.read(); if(nextChar == -1) { System.out.println( Woops end of file reached ); return; } char theChar...

Java: Java Object Factories, game chess, game interface
game chess, game interface, java object: Hi, A factory works on relationships. To understand a factory lets take an example. Chess is a game. It has rules, It has moves, there are players attached to it and it is played. Now tennis is also a game, and so are many more! All of them are common,...

Java: Java OOP Concepts, oriented programming language, oop concepts
oriented programming language, oop concepts, object oriented programming language: To answer these questions would require a lot of energi from my part, so I would actually recommend you to read a book about this subject :) But to give you a little information: Java is nt completely OO, but very close. Java is slower than c++, and...

Java: Java Palindrome Program, string word, word length
string word, word length, compiler errors: The method looks fine... Perhaps you just need to wrap it in a class to have it function correctly. E.g. public class Palindrome{ public static void main(String[] args) { //Do main here } public static boolean isPalindrome(String word) { int...

Java: Java Problem can't resolve!!, java problem, exact problem
java problem, exact problem, problem thanks: Hi, Sorry to be late on the reply. Network issues. No net. Am not sure what the problem definition is clearly. It raises a lot of issues. * where does this data come from? * what is the size/length of the product code and the quantity values? * the...

Java: Java Problem, java problem, ecological study
java problem, ecological study, text component: This depends on the component you are using. Most text componenets you can use the getText() method to get a String of what is in the box. If you expect the user to type in an unformatted number (e.g. no , in the number) then you can use Integer.parseInt(string)...

Java: Java Program distribution, gnu general public license, lesser general public license
gnu general public license, lesser general public license, izpack: To distribute a java program, you can create a java installer for it using one of the many free programs out there such as IzPack. You could also try InstallAnywhere (which you do have to pay for). Try search for InstallAnywhere Now! which was free. Alternatively,...

Java: Java Project, basic data types, java project
basic data types, java project, java program: Since the issueBook method for each sub class will be different, you can declare it abstract, and create a definition in each subclass. Here is a simple example of Issuing a book for the two week case. I m not sure what data type you are using for dates...

Java: Java password program, scanner system, java password
scanner system, java password, jgrasp: try this program - import java.util.regex.Pattern; import java.util.regex.Matcher; import java.util.Scanner; class PasswordChecker { public static void main(String[] args) throws Exception { //Checks for email addresses starting with...

Java: Java: polymorphism, run time system, overloading in java
run time system, overloading in java, array argument: Nilesh, Method overloading in Java is when you have several methods that have the same name, but take different arguments. public class Address { public static Address get(String a) { ... } // #1 public static Address get(byte...

Java: Java program gives error on compilation, string password, test object
string password, test object, static class: Hi Anurag, class StaticDemo { public static void main(String args[]) { Test ob =new Test(); int a=15,b=20; ob.meth(a,b); System.out.println( Values of a and b +a +b); } } class Test { void meth(int i,int j) { i=5; j=7; ...

Java: Java program to search XML, xml tag, writer writer
xml tag, writer writer, output string: Try this. It does it for one xml file. Use Fil class to get the list of file names in a directory and feed it individually to the method to append to the output. String xmlFileToWrite = filename ; SAXBuilder myBuilder = new SAXBuilder(true); ...

Java: Java programming, javaw, dos prompt
javaw, dos prompt, java program: where a window will open and not to have to use the DOS prompt Use javaw to startup an application without the DOS prompt. Also if you jar an application, the user simply has to double click the jar to launch the app with javaw. You should checkout the...

Java: Java project, winter semesters, winter test
winter semesters, winter test, java project: Hi, Try the following: 1. To calculate the mean is simple, use the formula provided. 2. Same for std. dev. 3. Declare arrays of array for the student data, e.g. for student 1 above, int[][] arr = { {15, 20, 15}, {20, 15, 20} }; To compute...

Java: Java Question - How to, java question, decimal place
java question, decimal place, system exit: Since your program calls System.exit in the while loop, I do not understand what you are doing. There is no loop here. The while condition never occurs. If you want to ask the user for input until they enter 0 and 0. Then you should include the user input...

Java: Java Question, case complexity, time complexity
case complexity, time complexity, selectionsort: a) Determining what grows the fastest depends on what is going to produce the biggest number for a BIG number. To determine this you sum all the n s that are multiplied and compare what is larger. If there is addition you take the max value. e.g. n...

Java: Java Question, interval sizes, greedy algorithm
interval sizes, greedy algorithm, java question: Let me see if I understand this correctly: If your input is: 1, 1.3, 3.2,3.3, 3.5, 4.5. So you would want [1,2], [3.2,3.5] [4.5,5.5]. Now it depends on what greedy algrothim to use. i.e. what priorty to use. The one I would guess you need to use is to...

Java: Java question, shift operators, java question
shift operators, java question, positive integer: Aside from doing multiple subtractions, additions, shift operators (i.e. emulating what is already done), there are not any methods in core java to do this. Although BigInteger does contain these operations. E.g. BigInteger i1 = new BigInteger( 1234567890987654321...

Java: Java: RMI Compatibility/Performance, rmi server, java rmi
rmi server, java rmi, java versions: None that I know of. I only see the two different versions in rmi as such. The older one that had a stub and skeleton and the new one with just a stub. In terms of rmi there has been no significant change in the variations of jdk, so I dont see what performance...

Java: Java (RS) hacking, runesscape, runescae
runesscape, runescae, running into trouble: Hi, I don t normally answer questions about Runescape. To answer your questions though, 1. People are always doing stupid things, looking for thrills, etc. 2. Look at these sites for information on how to create and use bots: http://www.robotstxt.org/...

Java: Java Run Time Environment, java run time environment, java runtime environment
java run time environment, java runtime environment, java run time: Hiya Md Abdus, Java Runtime Environment is a reference to the Java Virtual Machine. when you run a java program, the Java Virtual Machine runs which interprets the program you ve made. This is what is referred to as an environment, and performed at runtime...hence...

Java: Java Script mouseover not functioning on Linux server, array function, return document
array function, return document, indexof: Tony, Well, the Javascript code you ve got looks pretty dense. I can see what it is doing to some extent, but not enough to make definite identification of what is going wrong. I can see some things to check. First, if you look at the array initialization...

Java: Java Script Pop, internet explorer version 6, java jre
internet explorer version 6, java jre, window xp professional: Its hard to say what the problem is, but as I mentioned, java and javascript and different things. Installing/uninstalling java will not help you or hinder you in the slightest. You could try using a different browser (such as firefox the second most popular...

Java: Java and Sound Editing, java sound api, sound frequency
java sound api, sound frequency, voice changer: I haven t delt with java sound much. I know that you can record any play back sound on a mic, I think that manuliplation is limited though. The java sound API is also not easy at all to use, it tries to follow what is actually happening rather than being easy...

Java: Java + SQL, jdbc basics, java sql
jdbc basics, java sql, afirmative: Hi, Been busy, as I am about to complete a project and its delivery. All you need is a driver for the database that you are using. This has to be placed in the classpath. If its not available then it will raise an exception/error for the missing driver to...

Java: Java Superposition of Waves, superposition of waves, principles of superposition
superposition of waves, principles of superposition, graphics libraries: Hi, I have had a quick look at your code. The best advice I can give here is to look at some of the opensource graphics libraries available. You might want to look at the following links: http://sourceforge.net/projects/iwp http://sourceforge.net/projects/gradlib...

Java: Java Swing Tool bar, public class test, swing tool
public class test, swing tool, awt event: I have no good clean solution... but this example (although a bit buggy) shows how to get and set the location of the toolbar: import javax.swing.*; import java.awt.event.*; import javax.swing.plaf.basic.*; import java.awt.*; public class Test { ...

Java: Java Swings, correct id, button menu
correct id, button menu, actionevent: This depends on wether you have the pages in a JPanel or a JFrame. If you have them in a JPanel, then in the actionPerformed method you remove the first page from the frame s children (e.g. frame.remove(first) assuming that you have an instance of First called...

Java: Java socket, java socket, thanks a million
java socket, thanks a million, jmx: Hi, I would like you to have a look at the following sites. I tcould help - http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=1&t=006829 http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=1&t=002444 Do you really...

Java: Java swing, java swing, borderlayout
java swing, borderlayout, jbutton: Right. Then it seems that it will be best to use internal frames. To do this, you need to first create a JDesktopPane, which to add to your main frame and then create the frames and add them to the desktop pane. Something like: JDesktopPane d = new JDesktopPane();...

Java: Java swing, public void paint, poker variant
public void paint, poker variant, paint code: There are several drawImage methods. The one you probably want to use is: drawImage(Image image,int x,int y,ImageObserver o) use this for o. If you want to scale the image you will have to do it yourself. Even if you don t preload your images, you...

Java: Java switch statements, java switch, switch statements
java switch, switch statements, thanks a million: Hi, What you want is called falling through . This happens when you do not include the break statement. e.g. int var= 2; switch (var) { case 1: // Do nothing here because if you add // doSomething(); it will be run twice. ...

Java: Java Technology Architecture, garbage collector, control break
garbage collector, control break, technology architecture: This depends on what your program is doing. If you are using the gui then there will be an event loop. There is always the garbage collector taking any free cycles to collect unused objects. If you are using Windows you can press control break in the command...

Java: Java UDP, byte array, senddata
byte array, senddata, datagram socket: modified your code as given below - import java.io.*; import java.net.*; class CL { public static void main(String args[]) throws Exception { // args.length is equivalent to argc in C if (args.length == 1) { try...

Java: Java Virtual Machine Launcher, java virtual machine launcher, java virtual machine
java virtual machine launcher, java virtual machine, java folder: There is something set to startup when you log in that is a .jar file. The jar file for some reason is lacking or has a corrupt manifest telling java what to do. Why a jar file is set to startup when you log in is unknown. It could have been put there accidently,...

Java: Java VM graphics, java awt, mov ax
java awt, mov ax, java virtual machine: well even in java byte code calls to kernal methods take up space. But java code is compiled, and I have even seen an example of a chipset that ran java code nativly. Here is an example of a hello world program in java byte code (not exact lanuage since it...

Java: Java visual program, custom avatars, format png
custom avatars, format png, java programer: Although I haven t used jsp that much... Lots of websites allow uploading images (e.g. forums to allow custom avatars), although its often seen in shopping cart applications. If the image uploaded is a standard format (png, jpeg, gif, bmp), then using...

Java: Java Windows, yahoo mail, fragment identifier
yahoo mail, fragment identifier, location object: Hi, This is really a JavaScript question and you should post in the JavaScript location. However, the URL of the current page is represented by the Javascript window.location object. There are several components to the location object that represent...

Java: Java not working in one of my brousers, java control panel, java jre
java control panel, java jre, brousers: Java does have a plugin for IE. One thing you could try is to go into the java control panel, and under Advanced, turn on Applet tag support for Internet Explorer. If that doesn t work you can goto www.java.com and get the latest version of java (JRE) and...

Java: Java not working, internet properties, registry keys
internet properties, registry keys, java sun: Hi, Sorry for the delay in answering. It sounds like something has corrupted your files. Try deleting the folder java or jre in program files. then delete the registry keys under HKEY_LOCAL_MACHINESOFTWAREJavaSoft (Be careful, make sure you only delete...

Java: Java, player card game, empty deck
player card game, empty deck, j creator: start by designing a class Card. The card should have two private fields, denomination (int) and suit(String) (suit is optional, but will improve the game). Make the class immutable so that once created it will never chage. Add a constructor that takes in...

Java: Javac compilation, java compilation, import test
java compilation, import test, import statements: Well the -d wont help. It has to be a problem with your import statements or your folders are all messed up. remember to put something in a sepcific folder DO NOT save the file in that folder what you are supposed to do is use the keyword package and follow...

Java: Javac and JDK--Elementary Question, javac command, javac compiler
javac command, javac compiler, elementary question: javac is in the bin folder of the sdk. On windows it is located at: c:program filesjava jdk version in Once you find the folder you can add it to the path environmental variable (right click my computer and select properties. Then select the advanced...