JEditorPane Not Reading Quotation Marks or Apostrophes from HTML

986 byte By bronze-starDukes at 2007-11-26 12:11:41
Hi folks. I used the following code to create and populate a JEditorPane:try{pane = new JEditorPane("file:///c:/OverviewDocument.htm");}catch(Exception e){System.out.println(e);}JScrollPane scrollPane = new JScrollPane(pane);add(scrollPane);pane.setEditable(false);The HTML file being read is ...

Fooling the compiler for fun & profit

1000 byte By silver-starDukes at 2007-11-26 12:11:42
Any java grammar experts know why this compiles w/out error? I would think that it should choke on the opening curley.protected abstract void populate();{if(bean == null){throw new UnsupportedOperationException("bean field cannot be null.");}if(cause == null){throw new ...

Java sound problem with PCM -> ULaw conversion

1586 byte By bronze-starDukes at 2007-11-26 12:11:43
I'm experiencing java sound conversion from PCM to U-Law or A-Law but 'ive got a lot of problems. With or without Tritonius, i've got an unsupported conversion error. I'm on JDK 1.5, so maybe there's a problem with this version ?Here is the stacktrace of the java error : ...

Explicity specify the port number for IIOP listener

942 byte By bronze-starDukes at 2007-11-26 12:11:46
When execute the following program( calling ejb from remote pc )always "Successfully created IIOP listener on the specified host/port: all interfaces/1642" is displayed. IIOS Listener is registered in a random port. I want to know if i can specify the port for the IIOP ...

custom install question

225 byte By bronze-starDukes at 2007-11-26 12:11:47
if I install some of the JES components such as appserver and later want to install another component such as access mgr, the installer seems to complain and want to remove appserver firstany idea why?thx

nullpointerexception in my applet =(

8758 byte By bronze-starDukes at 2007-11-26 12:11:48
I have been working on this little applet forever. It uses panels, button and keylisteners, but I am just trying to get it to show up now. Whenever I go to it, the applet fails to load and it gives me a nullpointerexception in the status bar. I have checked the applet code tag on the html file, ...

help with UML class diagram

501 byte By bronze-starDukes at 2007-11-26 12:11:49
I have a number of classes and need to make a uml class document for them. I have never really used uml before but gave it a good, could someone please look at my uml diagram and tell me if i have done it correct? _ Date__<><>person<_ employee| ^<> I Store AcademicPerson ...

how do i implement action listener?

6915 byte By bronze-starDukes at 2007-11-26 12:11:50
without getting the error message that it is not abstract and cannot override action performed?/*Matthew TyeDecember 1, 2006Lab 8Description: This program shows animation and how it is used to make aship move across the screen. Loops are used. Actions are performedwhen the ship gets too close ...

File Encryption - PGP DSA Public Key - java.security.InvalidKeyException

2021 byte By bronze-starDukes at 2007-11-26 12:11:51
Hello,I am trying to encrypt a file using a PGP DSA Public Key and am receiving the following error message:java.security.InvalidKeyException: Illegal key size or default parametersat javax.crypto.Cipher.a(DashoA13*..)at javax.crypto.Cipher.init(DashoA13*..)at ...

Capture Key events

543 byte By bronze-starDukes at 2007-11-26 12:11:53
I am trying to create a program to capture key events, regardless of where the focus is. For example, any time the user presses ctrl-t, I would like to call a particular method, if the user is in Microsoft Word, Internet Explorer, Halo, or any other application. However, a glass pane would not ...

Can't run applets with 1.6 FCS and IE7 if static versioning used

651 byte By bronze-starDukes at 2007-11-26 12:11:54
I just installed the official, final release of the 1.6 JRE on my Windows XP SP2 system. I am running IE7.If I try to run an applet that uses Static Versioning (it wants 1.4.12) the JRE does not start and I get this wonderful message: "The Java runtime can not be loaded from ...

SCJP for Java6

112 byte By bronze-starDukes at 2007-11-26 12:11:55
Anyone know roughly how long it's likely to be before the SCJP exam will be available for Java 6?

how to use xpress to create an array?

313 byte By bronze-starDukes at 2007-11-26 12:11:56
I am trying to delete some accounts in workflow. When I try to get all these accounts from repository. I find in com.waveset.session.session,the method listUsers(Attributecondition[] conds) is the best for me. But I don't know how to create an array of type attributecondition.Can somebody help ...

Is read-only access to a static field correct without volatile/locking?

1297 byte By bronze-starDukes at 2007-11-26 12:11:58
Hello,I wonder wether the following code is safe:static UnicomServerCentral instance;public static void setInstance(UnicomServerCentral central){synchronized (UnicomServerCentral.class){instance = central;}}public static UnicomServerCentral getInstance(){UnicomServerCentral central = ...

SoapSecurityException

1264 byte By bronze-starDukes at 2007-11-26 12:11:59
I have written a simple 5 line client that calls a webservice running on websphere. any ideas why i would get this error? I know the id/pw are valid and i can hit the web service from .net successfully with id/pw.WSServiceLocator locator = new WSServiceLocator();WSSoapBindingStub stub = ...

trouble with Enumeration

3535 byte By bronze-starDukes at 2007-11-26 12:12:00
I have come across a cumbersome error in this little program which in itself seems relativly simple. But it has yeilded so many errors. One of which has stumped me and I can not figure out. It capalizes on 6 underlying sections. I have compiled the first 4 fixed these minor errors (of my own ...

Cross-platform my foot

2177 byte By silver-starDukes at 2007-11-26 12:12:01
Anyone running Solaris 8? If so, you could try running this demo using OpenWindows and see if you can minimize the frame:import javax.swing.*;import javax.swing.plaf.metal.*;public class MinimizeTestFrame extends JFrame{ public MinimizeTestFrame() ...

IS the search in this forum changed

737 byte By bronze-starDukes at 2007-11-26 12:12:02
I did not visit this forum for couple of months. I used to search this forum in the past. I enter a search term and get the results from just this forum (Directory Server). It looks like I can't do that any more. If I enter a search term and search it brings results from all forums.If I ...

error:Unable to find the archive to be deployed in specified location;

321 byte By bronze-starDukes at 2007-11-26 12:12:03
Hi;I am trying to deploy IDM application in Sun Application Server8.1 on Solaris 9 and do get this error below:"Error: Unable to find the archive to be deployed in specified location; requested operation cannot be completed"Am i missing anything during the deployment?Thank You ...

Binary Search not Finding item

7632 byte By bronze-starDukes at 2007-11-26 12:12:04
Ok, I had posted yesterday due to having import issues. Found the problem, so I am posting under a new string. I am working on a program that will eventually mimic a gui shopping cart. I want to get my import, sort and search going first. Problem now is my binary search it not finding my item ...

Source control for sun enterprise studio 8 (easy option)

512 byte By bronze-starDukes at 2007-11-26 12:12:06
HiI am currently going through the process of migrating to sun enterprise studio 8 from visual studio (returning back to my Java roots 兒). I was wondering if any body had any suggestions on what source control system would be the easiest to get up and running with my setup (running windows xp), ...

does coordinate system change?

356 byte By bronze-starDukes at 2007-11-26 12:12:07
Hello, girls:) I need your authority opinion. Very simple question.I have a color cube for example. I have a coordinate system x0,y0,z0. Then object appears I begin to rotate it using mouse. So, it changes x0,y0,z0 coordinate system to new x1,y1,z1 coordinate system or it just rotates an ...

Got a RMI Client problem

4058 byte By bronze-starDukes at 2007-11-26 12:12:08
HI all im really not sure how to fix this error that im having, to be honest im not really sure what i have done wrong, or where im going wrong with pulling information from my interface or and implimentation.Okies here is all the codeInterface:public interface RMIServ extends java.rmi.Remote ...

Exam Statistics

225 byte By bronze-starDukes at 2007-11-26 12:12:09
Does anyone know where I can locate statistics for the SCJP exams? For example, the number of people that have taken the various versions, the percentage of people passing the exams, the average scores...etc. ? Thanks!

xsl redirect:write reference location

226 byte By bronze-starDukes at 2007-11-26 12:12:10
Can someone point me to the reference sites for XSL element "redirect:write"Who defines these standards?e.g. for XSLT we have - http://www.w3schools.com/xsl/xsl_w3celementref.aspAppreciate the help.

window problem

260 byte By bronze-starDukes at 2007-11-26 12:12:11
I have a Panel A that will call Panel B. If the user drags Panel A over Panel B, Components in Panel B starts to erase. I want Panel A to be inactive while Panel B is on focus. When Panel B is closed, Panel A activates.What can I do?Thanks

An unexpected error has been detected by HotSpot Virtual Machine:

937 byte By bronze-starDukes at 2007-11-26 12:12:12
I am facing this error while I try to close an application by pressing CTRL+C, This used to work fine in my old laptop, but as soon as I configured everything on my new machin... this error shows up during shutdown. Does anyone have knowledge of what is going on and how I can fix this? This is ...

Timer

1508 byte By bronze-starDukes at 2007-11-26 12:12:13
Hi, I'm trying to program a poker game in Java, and have been having problems with timers. I have a panel called 'playerActionButtons' which allows the player to call raise or fold (displayed as buttons on the panel). I only want the player to see the panel for 30 seconds when it is their ...

call a method

515 byte By bronze-starDukes at 2007-11-26 12:12:14
hello,is it possible to call a method of a bean (not a set/get method)?something like this-class BeanClass{ private int x; public int getX() {...} public void setX(int val){...} public someMethod() { //someCode }}<h:outputText value="#{BeanClass.someMethod}"/> ?if it's possible, then how ...

embedding video in a gui (getting started advice)

274 byte By bronze-starDukes at 2007-11-26 12:12:15
I have a project with a swing gui that i would like to embed a video screen in. the video will stream from a web camera and provide a live picture. I am new to the idea of handling video streams so have i come to the right place? what should i look at to get started?

Where to put new application

186 byte By bronze-starDukes at 2007-11-26 12:12:16
Hey!I'm new according to programming in java ee. My question is: which folder do I put my new project in. Is it in JAVA_INNSTALL_DIR/domains/domain1/applications?T.

URGENT !!!! java.io.NotSerializableException

667 byte By bronze-starDukes at 2007-11-26 12:12:17
Hi there !!We have deployed a JSF application onto the WebSphere Portal, now when we deploy the same thing in the clustered Production environment where we intend to implement Memory to Memory replication we get the following exception: DRSW0008E: Exception is: java.io.NotSerializableException: ...

Graphical Terminal Emulator for Solaris

164 byte By bronze-starDukes at 2007-11-26 12:12:18
hi all,can anyone recommend a graphical terminal emulator for solaris? i'd like to see the solaris graphical desktop from a windows PC.thanks!

SWT question?!!

881 byte By bronze-starDukes at 2007-11-26 12:12:19
i am developing the GUI of my applicatoin using SWT (eclipse)but i get this strage error i start my application by a log in window then when the user enters his username the application should move on to the main viewi am using the same shell for the login view and the main view but each time ...

Adding To and Removing From an Integer List

4730 byte By bronze-starDukes at 2007-11-26 12:12:20
I just need somebody to check this 2 see if it is right. It compile and run, but I just want to make sure it's right. Here is my program and code below. ThanksAdd this capability to the IntegerList class. You will need to add an increaseSize method plus instance variables to hold the current ...

SSH after stsyem crash

762 byte By bronze-starDukes at 2007-11-26 12:12:21
This question has to deal with Solaris 8 as well as Solaris 9Running Solaris 8 & 9 on various boxes and debating whether to add SSH and disable telnet all around or simply leaving telnet enabled..It appears that after a system crash (depending on the "right" or "wrong" - however you look at ...

Shell Script Resource Adapter

1038 byte By bronze-starDukes at 2007-11-26 12:12:22
I am using version 7.0 and I'm trying to setup a resource using the Shell Script resource type. I am having issues with a few things:1. How do I let the system know there was an error in the shell script? No matter what exit code I use in the Actions I have configured for the resource, the ...

Enum makes problem in java 5?

125 byte By bronze-starDukes at 2007-11-26 12:12:23
I just updated to latest version and cant compile the project. Seems like enum is a reserved word? True?Thanks.

Getting started with JCOP Tools

1161 byte By bronze-starDukes at 2007-11-26 12:12:24
I have a working Eclipse + JCOP Tools installation, activated. I now also have a Cardman reader (drivers loaded) and some blank JCOP30 cards. I read through the Eclipse embedded JCOP help page, but couldn't find the answers to some simple questions:1. How can I see a list of connected readers ...

media player

159 byte By bronze-starDukes at 2007-11-26 12:12:26
hi.i would like to create a media player(eg. windows media player) using java. are there any tutorials recommended?thanks in advance......

jRegistryKey HELP

1382 byte By bronze-starDukes at 2007-11-26 12:12:27
I need Help this class..import ca.beq.util.win32.registry.*;public class RegistryKey {public static void main(String args[]){try{RegistryKey rk = new RegistryKey(RootKey.HKEY_CURRENT_USER, "Software\\newCreatekey");}catch(RegistryException re){re.printStackTrace();}}}im, tryed this , but not ...

making buttons work

727 byte By bronze-starDukes at 2007-11-26 12:12:28
why wont these buttons display the oval?public void actionPerformed(ActionEvent e) {Graphics g=this.getGraphics();if (e.getSource() == northButton){g.setColor(Color.gray);g.fillOval(0, 40, 50, 50);repaint();}else if (e.getSource() == northButton){g.setColor(Color.gray);g.fillOval(0, 40, 25, ...

java to exe file

134 byte By bronze-starDukes at 2007-11-26 12:12:29
can anyone help me please i want to know how to convert java program to file.exe to setup under windows thank you

opening a vfs driver

684 byte By bronze-starDukes at 2007-11-26 12:12:30
I am writing a vfs module (for sol10) which has a userspace file server component. The file server needs to be able to pass messages to the vfs driver. Is the best way to accomplish this by using mod_driverops modlinkage, then registering my filesystem in the _init() method? WIll I lose the ...

How can i buy an opensparc processor?

316 byte By bronze-starDukes at 2007-11-26 12:12:31
Hi all.How can i buy a opensparc processor? Is it possible to buy only the processsor and only the motherbord? My point is to avoid spending of so much money and to have a sparc.Opensparc is good idea but where can i get the physical processor available?Regards,Svetoslav P. ...

random selection.

618 byte By bronze-starDukes at 2007-11-26 12:12:32
I've been looking at the rnadom function but cant figure it out. I have three strings lets say:String s1 = "something1";String s2 = "something2";String s3 = "something3";well i cant figure out how i could randomly select one. Random(); doesnt look like it would work. And thats the only random ...

Making Java Portable

1629 byte By bronze-starDukes at 2007-11-26 12:12:33
If I had the following snippet of code, how would you suggest to change the code to make it more portable such as across different platforms?int letter, start, base, val;int inbuf = new int[50];System.out.print( "Enter a letter between A and Z: ");letter = (int) System.in.read();if ((letter ...

Making Java Portable

1629 byte By bronze-starDukes at 2007-11-26 12:12:34
If I had the following snippet of code, how would you suggest to change the code to make it more portable such as across different platforms?int letter, start, base, val;int inbuf = new int[50];System.out.print( "Enter a letter between A and Z: ");letter = (int) System.in.read();if ((letter ...

2 Versions of Java on my computer

245 byte By bronze-starDukes at 2007-11-26 12:12:35
I was checking my add remove section and I noticed that I have 2 J2SE Runtime Enviroment 5.0 update 6 at 119 meg and also one below it J2SE Runtime Enviroment 5.0 update 9 at 119 meg. Can I delete or remove one?Thanks

Problems with OBP

89 byte By bronze-starDukes at 2007-11-26 12:12:36
class Dare does not found!?each class in a various.java file,so what's up?