JNDI lookup problem

417 byte By 06088037a at 2007-9-28 1:24:35
Hi there,I've created the beans jar file with all the appropriate files. Everything compiles, but when I try and run my Client to do a JNDI lookup of the bean I get the following error:java.lang.ClassCastException: com.sun.corba.ee.internal.iiop.CDRInputStream_1_0$1at ...

JavaHelp and JBuilder

310 byte By Haleha at 2007-9-28 1:24:49
I downloaded JavaHelp and installed locally. I can run examples usingJRE/JavaHelp, however if I try to run the .java classes in a project inJBuilder I have errors:import javax.help.*;--> JBuilder does not find this library.Any help will be greatly ...

JavaHelp Search

107 byte By nahal7a at 2007-9-28 1:32:08
how to create the search database ?how to use the jhindexer command?thanksnahal

Search URL with an ID

321 byte By Math_Francea at 2007-9-28 1:32:40
Hi, I would like to try an URL with an ID, but I don't know how do it.I succeed to verify if my ID is valid with method : map.isValidID(id, hs)And after, I wants to recuperate the url correspondly of this ID.Thanks, and I think my English is not very good but I hope you understand ...

Packaging and Distrubuting a Java App

836 byte By jmichael73a at 2007-9-28 1:36:10
Hi,I developed a java app, which I want to distrubute. The app contains:1)*.class files2) a /sound directory with sounds files3) a /images directory with images.The things I am interested in are:1) If I use jar to package everything, should I modify my code, so that it will correctly locate the ...

Application cannot run in Intel? Pentium? 4 Processor

267 byte By jackalofficea at 2007-9-28 1:40:14
Dear All I have finished an application program, which can run smoothly in PC with Intel Pentium 3 Processor, but cannot run normally in PC with Intel Pentium 4 Processor. Is it a limitation of Java plug-in?Pls help!Best RegardsJack

JInternalFrame's bug?

126 byte By X-Powera at 2007-9-28 1:40:51
everytime when I try to setMaxmin(true) a internalframe it will throw a nullpointer exception.......anyone can help me?

Using precompiled user objects

671 byte By tcbba at 2007-9-28 1:48:58
I'm trying to use one class inside of another. I created the first class "Parse" and compiled it. The file Parse.class is in my working directory. Now when I create an object Parse myparse = new Parse(); in my second class "Find", and try to compile it, I get an error stating the compiler ...

Sun beans tutorial "error" II

1524 byte By pruijtera at 2007-9-28 1:49:03
Forgot to mention the DOS messages:D:\DOWNLOAD\Java\beans\beanbox>set CLASSPATH=classes;..\lib\methodtracer.jar;..\infobus.jarD:\DOWNLOAD\Java\beans\beanbox>java sun.beanbox.BeanBoxFrameD:\DOWNLOAD\Java\beans\jars\buttons.jar: jar load failed: java.lang.Error: ...

Advice Wanted (Converting from MS to Linux)

745 byte By SkydiverFLa at 2007-9-28 1:50:17
Fellow Developers,Your advice and input it wanted... the more info the better. Thanx, in advance, for your time.I am a senior Microsoft developer (specializing in C# and .NET) and I am getting sick of Microsoft-centric development. My typical development environment is as follows...Back end ...

help me!

303 byte By nahal7a at 2007-9-28 1:57:35
hi everybody!after I created javahelpsearch folder with jhindexer command,i get the following error with the search in JavaHelp system:Failed to create URL from file:/.../Help/help.hs|d:/..../....htmlwhat isn't correct ?anyone can help me with this ? ...

Network programming

285 byte By bit1502a at 2007-9-28 1:58:40
hii want to create a program that can capture any computers' destop image present in the network and should be able to copy,or view the files present on the network. more or like network neighburhood in windows.IS IT POSSIBLE?IF YES ANY CLUE PLZ.Neo

Application Performance Suffers (WinXP, ATI Mobility M6)

519 byte By davidstriegela at 2007-9-28 2:02:37
Have written a desktop application for developing graphical layouts. When running it on a new machine with WinXP and an ATI Mobility M6 the application caused the machine to go into dead lock and eventually rebooted the system after a wonderful blue screen display.After passing ...

about jframe

69 byte By mahbubaka at 2007-9-28 2:05:34
how can i disable the close and minimize button of the Jframe?

how to add javahelp to application?

340 byte By leon_zhanga at 2007-9-28 2:11:38
Hi,I create one javahelp file . I can view the helpset use hsviewer.jar, but I can not find the helpset in my application, the findHelpSet function return null every time . Can you give some direction in how to add javahelp to the application? And any example code is very precious.Thanks a ...

Mouse Dragging slow on X Terminal (SunRay)

871 byte By snotmonstera at 2007-9-28 2:12:16
Hi,We're getting some curious behaviour with mouse drag events when running our java client app on an X Terminal (a SunRay 1 in this case).It seems that events are not delivered to the client while the drag is in progress but only after the user stops moving the mouse for about a second. ...

accessing helpset from a jar file (Help)

513 byte By cem2a at 2007-9-28 2:13:59
Hello,when I developed my helpsystem, everything worked ok, but then I put everything (ie. helpset, map, xml files) into the jar file, except the java files that actually use the helpset (ie the GUI the help will be attached to).Now when I execute the GUI, the helpset can't be found. All files ...

Please help!! Where I can find free Java-applet HTML-Editor?

79 byte By konal2000a at 2007-9-28 2:31:36
I need free Java-applet HTML-Editor. Where I can find it? Thanks.

Ghosts in the JRE

554 byte By henlnhla at 2007-9-28 2:34:10
I have a stand-alone java chat program that uses a file to share messages. Each users GUI reads the file every 3 seconds checking for updates. If one has occurred it repopulates a textfield with the contents of the message file. When a user posts a message to the file a lockfile is created to ...

applications

429 byte By geebabya at 2007-9-28 2:34:26
i wrote my program in codewarrior but i run it with a manual cmdline because it is a graphics heavy program and i need to type in -mx250 to allocate more memory to run the thing. is there anyway i can make an application that will allocate more memory like this? codewarrior automatically makes ...

XMLEncoder

430 byte By norbyea at 2007-9-28 2:50:22
I'm trying to use XMLEncoder on some of my data structures.But I get some strange error messages when I call writeObject.Here are two of them:java.lang.IllegalAccessException: Class java.beans.Statement can not access a member of class foo.bar.Baz with modifiers ...

Which Database to use as internal data repository?

1003 byte By simonecha at 2007-9-28 2:52:46
Hello all,I'm starting developing my first desktop application using Java (I've always developed java web applications or VB desktop applications) and the first question I'm facing is: "How do I store the data of my application?"I'm doing an archive of hotels, restaurants and other things ...

Error Message At Runtime

1611 byte By abhiSDa at 2007-9-28 2:54:26
I want to include javahelp into my standalone application where I want to use menu driven general purpose help. I have written the following code.HelpSet hs;HelpBroker hb = null; try {URL hsURL = new URL((new File(".")).toURL, "./help/BeHelp.hs"); System.out.println(hsURL);hs = new ...

New to Java Apps, Directions Anyone?

1100 byte By JediHobbesa at 2007-9-28 2:55:10
Hey All,Okay, so my previous programming experience has been everything from JavaScript to C++ to C# (uggggh) to assembler. However, I have spent most of my time developing apps under Delphi/Kylix. Due to market trend and due to the fact that the company I'm contracting out to wants me to, I ...

XMLDecoder and InputStream

1054 byte By p_hoebe73a at 2007-9-28 3:09:26
I am trying to restored an object from the database. The object was formated to xml by using XMLEncoder and write it to the database in ByteArrayOutputStream.protected restore(Resultset rsData) {//...try{ InputStream ips = rsData.getBinaryStream(index) ; java.beans.XMLDecoder xmlDcd = new ...

Beans to be used with JSP(URGENT)

4054 byte By snjy12a at 2007-9-28 3:12:14
I have coded a Base Class for connecting to the Oracle database. The code is below.At runtime it gives the errorException in thread "main" java.lang.NoSuchMethod Error.mport java.sql.*;import java.io.*;import oracle.jdbc.driver.*;import java.math.*;public abstract class ConnectionBean ...

PDF Viewer 4 Swing or PDF to JPG converter

171 byte By geberharta at 2007-9-28 3:16:38
I need to display a PDF document in a Swing applet does anyone know how to do this. Alternativly, I could convert the pdf to a JPG and then display it as an image.

How to set the font in class JTextArea

212 byte By Ren2a at 2007-9-28 3:16:54
There is a function setFont() in class JTextArea, but it seems only can set "bold","Italic" and "font size", but i want to set something like "Times new roman" and "Courier New"who knows how to set?

Java Applications

174 byte By wyntera at 2007-9-28 3:28:33
Where in the API can i find how to let my java programs access Applications running on my hard drive ... As in Internet explorer or any other program on the hard drive

Data Base handling - Please help

250 byte By nilaka at 2007-9-28 3:33:10
HiI am new for JAVA Beans.I just want to know whether JAVA Beans can be used for projects which are used for Database handling.Are there any advantages or disadvantages using JAVA Beans for Data base handling?Thanks

Difference between EJB and JAVA Beans - Please help

127 byte By nilaka at 2007-9-28 3:33:12
hiRegarding to Data Base handling what is the difference between using EJB's and using JAVA Beans? Thanks

Source code

111 byte By nilaka at 2007-9-28 3:33:22
hiFrom where can I find code sample or better tutorial regarding JAVA Beans + JDBC ?Thanks

Passing parameters

407 byte By kutty123a at 2007-9-28 3:34:15
Hi friends,I am developing a desktop application in Java.In that application I have a panel which contains 2 JTextboxes and 2 JButtons. When a JButton is clicked a new page has to be displayed and the values from the 2 textboxes should be displayed in that new page. Can anyone of you tell me ...

Prograss bar

381 byte By rupak_wa at 2007-9-28 3:34:53
i am using Applet to communicate between the database and user for quiz.After submitting the form i again send to browser next question.But before it completely downloaded if one click on submit button it skips the same.How to restrict it and can we give any progress bar or showing any message ...

Round off float values

112 byte By rupak_wa at 2007-9-28 3:34:59
If i have float variable having some value like 12.12987results round to two decimal digit (12.13)

How 2 create desktop applications

425 byte By aa384a at 2007-9-28 3:35:13
At my university we only make Java programs forexamination purposes. How do I make my own Javaapplications, which can be run on any computer - usingdesktop icons, or the program files menu in windows?Please be specific, e.g. what file type extensions do I need?Does the API have any help on ...

Best Practice for storing user preferences

158 byte By vairoja at 2007-9-28 3:42:30
Is there something like best practice or guideline for storing user preferences for desktop application such as window position, layout setting, etc. ?

MyApp is already running, how to stop a second launch?

281 byte By ridz4funa at 2007-9-28 3:49:14
Suppose MyApp is already running, and the user double clicks the icon on the desktop to launch a new one. How do I stop the second app from launching? Is there a way to query the system to see what processes are running and have main() exit if it finds an instance of MyApp?

Swing with MVC

621 byte By eschwartz2003a at 2007-9-28 3:50:39
I am working on this small excersize to create a simple application using standard Swing. It compiles with no errors, but when I run it I receive the following message:java.lang.Error: Do not use TAddMedicationOrdersApp.setLayout() use TAddMedicationOrdersApp.getContentPane().setLayout() ...

Urgent JTable Problem Data is not displaying

2918 byte By jjjnoela at 2007-9-28 3:51:29
Hello,I am trying to repopulate the table with data from a vector after getting data back from an ejb call. I tried a number things none of them see to be working. I tried super.fireTableDataChanged(); jTable1.tableChanged(new TableModelEvent(sipTableModel));jTable1.repaint(); Below is the some ...

Random Numbers

497 byte By rupak_wa at 2007-9-28 3:52:30
I have an Array of length 5.Now i want to select all the elements but randomly.java.util.Random randomNumber=new java.util.Random()String arr[]={1,2,3,4,5};String element="";for(int i=0;i<arr.length;i++){element=arr[randomNumber.getInt(5)];}But i have the problem that it repeats the numbers ...

using jsp and beans on iPlanet

2799 byte By ffsancheza at 2007-9-28 3:53:09
Hi, could you help me?My jsp looks like:<%@page import="SimpleBean" %> ( Is this line necesary? )<HTML><HEAD><TITLE>JavaBeans</TITLE></HEAD><BODY><jsp:usebean id="PrimerBean" class="SimpleBean"/>Ejemplo de utilizacion de ...

I NEED HELP

392 byte By ifeabunikeCa at 2007-9-28 3:54:08
I am fairly new to Java programming.I have been working with VB before I started my own business.Now I have a company that develops software.We have developed 2 applications. 1 working with a database.We need help to print our documents, like a tabular display in a JFrame.Please we also need a ...

Detecting Key Press at App Startup

509 byte By edster3a at 2007-9-28 4:00:05
I would like to detect a press of the Shift key (ideally) when my application starts.If the user is pressing the key, display a normally hidden dialog allowing the user to select the language to use. If the key is not pressed, continue starting the application in the default language.From the ...

PDF viewing in Javahelp

553 byte By cem2a at 2007-9-28 4:03:26
Good Morning,I view html files in Javahelp, all going fine...it is just that there are links in some html files to pdf files, which aren't rendered correctly in the viewer. I have come across similar entries in this forum, but none offer a specific answer. Is it possible to view pdf files in ...

simulator paint

123 byte By 6553a at 2007-9-28 4:06:16
How I can construction of a Project of Simulator of Paint in the Desktop or are necessary using the class canvas...

Repaint Components

849 byte By marcosraldesa at 2007-9-28 4:13:27
I'm new with this Java thing, and I'm doing a program that uses a frame to show some draws, the programs draw an image on it when the user interact with the program, and also draws other symbols, everything it's fine with that, the problem is that when another window shows over the ...

Replacing JFileChooser, need help getting Root drives..

2334 byte By buckman1a at 2007-9-28 4:16:01
Hi there,The JFileChoose unfortanately is too "basic" for our specific needs. For example, we want a few different customizable looks. One is the ability to choose just directories, but in doing so, the Files of Type drop-down and description makes no sense when you are only looking for ...

Can't write to properties file

3381 byte By tamadesana at 2007-9-28 4:19:07
Hi all,I've an application that is suppose to load a set of parameters from a properties file on the disk, if the file is not found, I'd initialise the property instance with default values. Next the users are allowed to modify these valuables through the UI. I'd then pass the modified ...

JAVABeans and JSP _ please help

524 byte By nilaka at 2007-9-28 4:24:35
I am new as well when it comes to JavaBeans and JSP. Let me ask you guys this. If I can access my database though a JavaBean. Then I could just use a JSP page to access the JavaBean. So does this mean that I could basically make my JavaBean handle all the proccess on the database? I could use ...