xml, bluetooth, j2me j2se

370 byte By bronze-starDukes at 2007-11-26 12:12:37
hello, i have a question: i need to write a client-server application (the client will be running on a mobile phone using j2me and the server on a windows PC) that would communicate using xml documents over a bluetooth connection. My question is: is there a simple way to send and parse ...

CAn someone help me fix this i keep getting errors! PLEASE HELP

6885 byte By bronze-starDukes at 2007-11-26 12:12:38
import java.awt.*;import java.awt.event.*;import java.util.*;import javax.swing.*;public class DrawCurves extends Frame{CurvCanvas cBoard = new CurvCanvas();// Create area/Canvas for drawingsprivate ArrayList<Coordinate> drawPts;private boolean closedCurve;private int numSides;private ...

Regarding J2ee1.2.1 installation

861 byte By bronze-starDukes at 2007-11-26 12:12:41
Hi allI am having problem installing J2ee 1.2.1 version in windowsXP.I have installed j2ee1.2.1 in C:\j2sdkee1.2.1 directory.and set the following environment variable: J2EE_HOME=C:\j2sdkee1.2.1 JAVA_HOME=C:\PROGRAM FILES\JAVA\JDK1.5PATH=C:\j2sdkee1.2.1\bin;c:\program files\java\jdk1.5\binnow ...

is the code from the email form tut safe?

328 byte By bronze-starDukes at 2007-11-26 12:12:42
Yesterday I noticed that using the send-email form in the below tut, it's possible to add any header you want. For example, you can just write "date: 12/12/2004" and this header will be added. Is this really safe? http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/ema ...

usebean and Tomcat 5.0.27

625 byte By bronze-starDukes at 2007-11-26 12:12:44
I am trying to create a simple HelloWorld jsp page that calls from a java bean.I compiled the test.HelloWorld class and copied it into the tomcat classes directory so it is as follows: .../WEB-INF/classes/test/HelloWorld.classWhen I try running the page for the first time I get:a HTTP STATUS ...

Preventing system clock roll-back

408 byte By bronze-starDukes at 2007-11-26 12:12:45
I am trying to implement some license checking functionality by verifying that the application is being used within a specific range of valid dates.However, if someone turns back their system clock, they can circumvent this validation. Is there any way to get around this problem? Is there some ...

Extending MyFaces components

846 byte By bronze-starDukes at 2007-11-26 12:12:47
I am fairly new to JSF, and have a requirement to extend JSF components to enable or disable themselves without having to explicitly do this via JSF expression language. I was thinking the best way to do this was to overide getRendered(), and setRendered(). Apart from this method, I don't need ...

Java 1.6 30% faster than 1.5! (Server)

251 byte By silver-starDukes at 2007-11-26 12:12:48
Wow - I didn't expect such a performance increase: our server app that already had a 80% performance part of database access increased by almost 30% just by switching the 1.5 JRE (with server HotSpot) with the new 1.6 JRE! This looks good! :-)

Java Roll out

424 byte By bronze-starDukes at 2007-11-26 12:12:49
Our programmers have recently rolled out a new Java app to our company and are concerned that Java autoupdates may break the interface. Under MS, I have the ability to filter all the MS updates through a WUS server that allows me to test the update before releasing it to my computers. Is there ...

How expensive are volatile reads?

620 byte By bronze-starDukes at 2007-11-26 12:12:50
Hello,I just wonder how expensive volatile reads are, because I've to read an variable which is written once but read by many threads and which can't implemented using ThreadLocal tricks.I read the java-one paper about Java's memory model and it mentions that volatile reads are "very ...

what is the path of my program?

349 byte By bronze-starDukes at 2007-11-26 12:12:51
hi there,is there anyway to tell what is the path of the program I'm running? (io wise)this works, but I dont understand the ././././.public class File4{public static void main(String[] args)throws Exception{System.err.println(new ...

Question

1660 byte By gold-starDukesed at 2007-11-26 12:12:53
I had a question on a test that I thought was poorly worded (that was apparently on an actual AP test). I wanted to see what you guys think. Here it is:A certain interface provided by a Java package contains just a single method:public interface SomeName{int method(Object o);}A programmer adds ...

SDK - JDK differences

322 byte By bronze-starDukes at 2007-11-26 12:12:54
Hello, Somebody knows what is the difference between SDK and JDK?I have searched in many sites, but the answer always is "they are the same thing". But, that's not true at all because the download page ask you for the "SDK no JDK" download, or the "SDK with JDK" download. Thanks a ...

Insallation of v6, official release

276 byte By bronze-starDukes at 2007-11-26 12:12:55
I have just installed the latest version of JRE on three PCs.Only on one of them was I given the option *not* to install support for additional languages. I wanted to do this on all my PCs.Any idea what could be 'special' about one of my PCs?TIA.

Multiple Java Updates.....do I need them all?

521 byte By bronze-starDukes at 2007-11-26 12:12:56
Hi, looks like my computer has the following programs:Java 2 Runtime Environment, SE v1.4.2_03J2SE Runtime Environment 5.0 Update 2J2SE Runtime Environment 5.0 Update 6J2SE Runtime Environment 5.0 Update 9Question is, do I need all this or should I just keep the most updated one (I'm assuming ...

Editing JTextFields using button clicks

2093 byte By bronze-starDukes at 2007-11-26 12:12:57
I have to create a GUI that works to navigate through an already created list of plants in another class. The user should be able to cycle through the plants in the in the list, and edit the list with the GUI. I have the GUI set up, but I can't figure out how to display new plant info in each ...

How do I use J2S Keytool?

638 byte By bronze-starDukes at 2007-11-26 12:12:58
I'm not a programmer, but I need to use Sun Java products for my job. I need to sign up for Sun Java Signing from Verisign. They say I need to follow these instructions here http://www.verisign.com/support/code-signing-support/code-signing/digital-id.htmlI've done step 1 and downloaded the J2E ...

Netra X1 installation

146 byte By bronze-starDukes at 2007-11-26 12:12:59
I have a Netra X1 and it have two HD. i disconnect the IDE0 and connect a cdrom. how i do to recognize the cdrom for boot in it SOLARIS 10?

Reverse Engineer MD5 Hashes

169 byte By bronze-starDukes at 2007-11-26 12:13:00
HiIs it somehow possible to reverse engineer md5 hashes ?I mean, i just found [url] http://md5.rednoize.com[/url] and i wondered how this site works.

Drawing a Christmas tree w/ nested for loops and from JavaScript to Java

768 byte By bronze-starDukes at 2007-11-26 12:13:01
I need help in making this code compatible with Java (I use BlueJ):It's JavaScript... Thanks in advance!<HTML><BODY><CENTER><SCRIPT> var width=1; for (i=0; i <= 5 ; i++) { for (x=0; x<=4; x++) { for (y=1; y<=width; y++) { var Number=Math.random()*10; var ...

renaming multiples files in a directory by removing similar charecters

1447 byte By bronze-starDukes at 2007-11-26 12:13:02
Hi.I have got a problem. I have got 100 mp3 files in a directory. All the mp3 file names start with E_. I want to programatically rename all these mp3 files by removing the charecters E_ from the file name. I used the below program but it is not working. Iam using java 1.6. import ...

Netra X1 boot

256 byte By bronze-starDukes at 2007-11-26 12:13:03
i have this message when i type:boot cdromok boot cdromBoot device: /pci@1f,0/ide@d/cdrom@2,0:f File and args:Can't read disk label.Can't open disk label packageCan't open boot deviceHELP ME PLEASE

Get referring servlet

299 byte By bronze-starDukes at 2007-11-26 12:13:05
I have a webapp made up of many servlets. Is there a way to retrieve the servlet that linked to the current servlet?IE: My login servlet redirects to my main menu servlet. Is there a way for my main menu servlet to find out if the client was properly redirected from the login

Implementing a JDBC Connection Pool(DS) without a Server(Container)

481 byte By bronze-starDukes at 2007-11-26 12:13:07
Hi, My name is Sergio.I磎 trying to implement DBpool(DataSource) whithout an aplication Server, i have an aplication that it is used by 6.000.000 of user to the day, and it makes at least 48.000.000 DataBases Connection in 8 hours. and i磎 not using a Data Source.you can help me to implement a ...

PopupFactory.getSharedInstance().getPopup acting strangely

4032 byte By bronze-starDukes at 2007-11-26 12:13:08
Hi everyone. I noticed a strange behavior from PopupFactory.getSharedInstance().getPopup, I don't know if it's a bug or I'm just missing something.Try this:1. run2. click the "Click me" button3. reposition the window or maximize itThe popupPane is detached from the main JPanel. Now do the ...

can someone point to me to a source of understanding about switching SDKs?

1525 byte By bronze-starDukes at 2007-11-26 12:13:09
hi all,I have 1.4.0 and want to upgrade to 1.4.2 or even 1.5.0 because of a commercial app which needs at least 1.4.2But installing 1.4.2 (or higher) causes an exception in one of my own developed apps which doesn't occur when I run 1.4.0. This occurs after multiple framework calls finally ...

Ok now everything Compiles but i can't get it to draw anything!HELP!

11994 byte By bronze-starDukes at 2007-11-26 12:13:10
/*NAME:Christopher BensonDATE:*/import java.awt.*; public class Coordinate extends Point// implements Comparable<Coordinate>{public Coordinate(){super();}public Coordinate(int diffX, int diffY){super(diffX, diffY);}public Coordinate(double diffX, double diffY){super.setLocation(diffX, ...

Program help?

3441 byte By bronze-starDukes at 2007-11-26 12:13:12
Hey, fellow java programmers.I've been working on a "Pig" program, which requires a class called "PairofDice" and a "Pig" class.I've gotten the "PairofDice" down without too much trouble. The driver program shouldn't be too hard to write...but I have NO clue on how to write a "Pig" ...

HELP ME PLEASEEE!!!!!! ITS A LEGITAMENT PROBLEM!!!!

11954 byte By bronze-starDukes at 2007-11-26 12:13:14
/*NAME:Christopher BensonDATE:*/import java.awt.*;public class Coordinate extends Point// implements Comparable<Coordinate>{public Coordinate(){super();}public Coordinate(int diffX, int diffY){super(diffX, diffY);}public Coordinate(double diffX, double diffY){super.setLocation(diffX, ...

Tarantella 3.3 - Solaris Support

103 byte By bronze-starDukes at 2007-11-26 12:13:15
Hi,Can any buddy tell me, if tarantella 3.3 is supported on Solaris 8 or 9?Thanks!

scstat error

393 byte By bronze-starDukes at 2007-11-26 12:13:16
Hi All ,The below error message is extracted from /var/adm/messagesDec 11 10:51:22 DIRPRN1 Cluster.CCR: [ID 544775 daemon.error] libpnm system error: bind failed.: Cannot assign requested addressThe error message is occurying during execution of scstat command. Please give me the suggestion how ...

convert to a different layout

2531 byte By bronze-starDukes at 2007-11-26 12:13:17
im only familiar with the border and flow layouts, is there another one i could use for this code? import java.awt.BorderLayout;import java.awt.Container;import java.awt.GridLayout;import javax.swing.BorderFactory;import javax.swing.JButton;import javax.swing.JCheckBox;import ...

Text from Scanner or Keyboard?

1550 byte By bronze-starDukes at 2007-11-26 12:13:18
HiWe are using Scanner or key board to read "product barcode" or command like "cmdAdd" or "cmdDelete".So if the text scanned is numeric value then its barcode or else it will interpret as a command. Basically the user does not need to touch the keyboard. Simply scan the product barcode and scan ...

What's wrong?

4249 byte By bronze-starDukes at 2007-11-26 12:13:19
import java.util.*;import java.lang.*;import java.io.*;public class Grades{public static void main(String []args)throws Exception{// check to see if user entered file name// Get the name of the data file from the screen// You should prompt user to enter the name of the// file with data for the ...

Reading & writing to file using ArrayList<String> incorrectly

5284 byte By bronze-starDukes at 2007-11-26 12:13:20
Hi Java Experts,I am running out of ideas on why my findSnomedCodes.java program is filling up the output file (Snomed-Codes.txt) with the same information ([M44110|T33010, , M92603|T10350, ]) continuously. This program goes through a dummy patient result file and pickup the 3rd line of each ...

The Spring Experience

255 byte By platinum-starDukesEa at 2007-11-26 12:13:21
Just came back from The Spring Experience in Ft. Lauderdale, FL.If you're not using Spring, try it. Awesome stuff from an awesome team. This is how Java EE should be done. Simple, yet powerful.I'm very excited by what I saw.%

IS THERE NOONE OUT THERE WHO CAN HELP ME?!?!?

11954 byte By bronze-starDukes at 2007-11-26 12:13:23
/*NAME:Christopher BensonDATE:*/import java.awt.*;public class Coordinate extends Point// implements Comparable<Coordinate>{public Coordinate(){super();}public Coordinate(int diffX, int diffY){super(diffX, diffY);}public Coordinate(double diffX, double diffY){super.setLocation(diffX, ...

Transient modifier to sleeping thread?

1010 byte By bronze-starDukes at 2007-11-26 12:13:24
HiI'm messing about with the 'transient' modifier when serializing a threaded object; I have written a delay into the thread to slow it down however the delay stops me from serializing it. Does anyone know how I can apply the transient modifier to the following code? Or perhaps give me a ...

Recursion

611 byte By bronze-starDukes at 2007-11-26 12:13:25
Hey, I have a program to write and have no clue what to start with. I was asked to write a Recursion program (program that calls itself) about palindromes. What it needs to do is to ask the user for an input of a string, then take that string and check for all possible palindromes inside of it. ...

Proxy Class (for compiling purpose)?

2503 byte By bronze-starDukes at 2007-11-26 12:13:26
Since JDK 1.3, there is a Proxy class that allows us to dynamically generate Java object classes from scripts. We can use it to implement interface functions etc and calls to these functions would be redirect to a hook.My question is, will Sun consider to extend this functionality to compiled ...

Effiecient method to get number of lines in a JEditorPane

1032 byte By bronze-starDukes at 2007-11-26 12:13:27
My Computer Science class has a major grade project to complete by Dec. 15. For my project I've decided to make a tabbed Java IDE with save, open, compile, run, and some font options. Due to the need to make Java use the command prompt to compile and run, it will be Windows specific.Now, next ...

how to bring the new window in front of old window

551 byte By bronze-starDukes at 2007-11-26 12:13:30
Hi everyone,Here is what I have:there is a hyperlink on Page1.jsp, which opens another page Page2.jsp through onclick=window.open('./faces/Page2.jsp','mywindow','width=500','height=600');However, after Page2.jsp is opened in a new window, it is always behind the old window with ...

I need a method for ignoring empty lines

247 byte By bronze-starDukes at 2007-11-26 12:13:31
Hi to all,i need a method for ignoring empty lines when my program reades a file like thatstart of fileprint "xoxox"//ignore this lineprintln"xaxaxa"//ignore this lineend of filecheers

gathering data

6018 byte By bronze-starDukes at 2007-11-26 12:13:32
i would like to get my radio buttons to display below, a string of text, how would i go about doing that?/* * swingMakeup.java requires no other files. */import java.awt.*;import java.awt.event.*;import javax.swing.*;public class swingMakeup implements ItemListener, ActionListener{JPanel cards; ...

Sending files without closing the socket output

3838 byte By bronze-starDukes at 2007-11-26 12:13:33
Hi all!I'm new to sockets, and I'm trying to get a file from a Server...the problem is that unless I close the socket output stream the Client will hang...Here is the code:Clientpublic class FileClient {public static void main(String[] args) {try {Socket socket = new ...

Sending files without closing the socket output

3838 byte By bronze-starDukes at 2007-11-26 12:13:34
Hi all!I'm new to sockets, and I'm trying to get a file from a Server...the problem is that unless I close the socket output stream the Client will hang...Here is the code:Clientpublic class FileClient {public static void main(String[] args) {try {Socket socket = new ...

JEditorPane setUI()

110 byte By bronze-starDukes at 2007-11-26 12:13:35
Hi, I'm pretty new to java programming and I would like to know how to use setUI() for my JEditorPane.

gathering the data

5242 byte By bronze-starDukes at 2007-11-26 12:13:37
how do i make it so that when the radio button is clicked, a string of text is displayed below it? everytime i make an action listener for one of the radio buttons, my application won't run import java.awt.*;import java.awt.event.*;import javax.swing.*;public class swingMakeup implements ...

Ensuring order of child properties with JPA/EJB3?

541 byte By bronze-starDukes at 2007-11-26 12:13:38
When I have a one to many relationship, a simple parent child relationship, I specify the relationship like this:@OneToMany(cascade = CascadeType.ALL, mappedBy = "reportType")private List<ReportTypeValue> values;But when the List is populated, the actual order of the elements is ...

Performance issue with JDBC Oracle BLOB insert !

1004 byte By bronze-starDukes at 2007-11-26 12:13:39
Hi All,I'm facing a peroformance issue in inserting BLOB data in Oracle db using standard jdbc. Here's a code snippet I'm using :File binaryFile = new File(fileName);InputStream is = new FileInputStream(fileName);insertSql = "INSERT INTO JMS_MESSAGE_TEST ( JMS_MESSAGE_KEY, JMS_MESSAGE_TEXT ...