javaHelp -- double standard?

537 byte By pnandrusa at 2007-11-26 22:19:41
hi, i wrote a pretty simple little java help screen. It launches from a java app. When I have it in eclipse and launch it everything works fine. However, when i jar the whole thing up and launch the help it doesn't load images and html files. Thesefiles all work when done from Eclipse.my ...

Java PDF Adobe Acrobat Viewer

1791 byte By FBLa at 2007-11-26 22:20:09
I've been doing some extensive research on the easiest approach to *freely* open PDFs with Java.jPedal is amazing at this, but I'm running out of time to program the interface (JPedal's advanced interface with printing / etc is pay-only). In order to make documents readable I've had to do a ...

stopping threads

640 byte By bvdheijdena at 2007-11-26 22:28:32
I am building an agent-based application where all agent classes extend from the Thread class and therefore can run on their own in my program. The agents are started from my gui as when I press the run button:Agent agent1 = new Agent();agent1.start();...Agent agentn = new ...

not being able to run jsp bean

3929 byte By needhelpforprojecta at 2007-11-26 22:33:50
User.javapackage com.jspbook;public class User { protected String name = null; protected String password = null; public String getName() {return name; } public void setName(String name) {this.name = name; } public String getPassword() {return password; } public void setPassword(String password) ...

XML help...

2506 byte By kponenationa at 2007-11-26 22:43:01
Thanks for clicking on my question!Basically I want to do find and insert on an existing xml file.The following is the xml I work with:<?xml version="1.0" encoding="UTF-8"?><cfg xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="cfg.xsd"><node ...

30 day trial

85 byte By MarySandovala at 2007-11-26 22:55:46
Hi,How can I make a desktop application that has a 30 day trial... thx!

How to exit a class? - can't find information - please :)

711 byte By boromba at 2007-11-26 22:56:23
Hello!This maybe an stupid question but I can't find much information about it.I have one class that start one other by clicking on a button. This second class has a "close" button and when I click on it it closes even the first class.Everything is made in NetbeansExit code:private void ...

Platform's default preferene location

433 byte By honhwanga at 2007-11-26 23:00:32
Hi all,Is there a standard method of obtaining the default user's preference file location?For example, for Unix and Linux OSes, this would default to a hidden file on the home folder, e.g., ~/.myjavaapp/For Mac OS X, this would return something like ~/Library/Application Preferences, ...

Java Desktop Applications - Hiding the command prompt when executing bat file

323 byte By Jatin_Kulkarnia at 2007-11-26 23:05:03
Hi,I hava a bat file which contains followingjava -jar MyJar.jarWhen I execute the bat file, the jar file is executed. But a command prompt also opens along with it. I dont want to display the command prompt to the user. Is there any way to hide that command prompt ...

JavaBeans - my jsp javabean wont work with jdbc connectivity

807 byte By newBiea at 2007-11-26 23:12:07
Hello there, warm greeting I'm a newbie. Recently I have constructed a java class that encapsulates the JDBC connectivity. I tried it in a simple java application and it works in a breeze. The method for the class works fine and its return all the row in the constructed table. Then I tried to ...

Java Desktop Applications - What thick client technology should we use?

762 byte By kyle.bobera at 2007-11-26 23:14:55
I am working on a project that involves the creation of several JSR-168 Portlets for our Portal server. We are using JSF/MyFaces, Spring, Hibernate and a bunch of other open-source frameworks to implement our design. We also need a thick client for our people in the field who will be on the ...

Java Desktop Applications - JFileChooser going behind the JFrame

435 byte By Passion4Javaa at 2007-11-26 23:23:41
I have a Java App that opens a JFileChooser, however if the program is minimized or it loses focus, the JFileChooser gets "hidden" behind and the JFrame is unresponsive until the JFileChooser is brought to the front. At first, I didn't realize why the JFrame wasn't responding -- and ...

JavaBeans - writting html forms

201 byte By fandi_yacinea at 2007-11-26 23:30:15
hi,i have a school project which consist of making an application that able the user to customize a web form (.html)is there any bean , or do i have to code everything from scratch

JavaBean Error

2216 byte By Nidhuggura at 2007-11-26 23:36:24
type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: /ttest.jsp(10,0) The value for the useBean class attribute connection.ConnectionBean is ...

single document interface, start a new JFrame in a new thread

1063 byte By jakestera at 2007-11-26 23:40:25
i decided to have my java application use the single document interface (SDI) approach. my problem is how to start a new JFrame application from an existing one. below is some simple code that does NOT work. please help.public class MyGuiForm extends JFrame implements ActionListener {private ...

Syntax Highlighting

143 byte By student@sunDNa at 2007-11-26 23:49:29
Hi,I am making an editor in java and I want syntax highlighting support.Is there any way in java for syntax highlighting?/

Change windows wallpaper

67 byte By student@sunDNa at 2007-11-26 23:50:09
Is there any way to change windows wallpaper using Java API?

Creating Jar File

39 byte By student@sunDNa at 2007-11-26 23:59:17
How to create a proper jar file?

package javax does not exist

232 byte By petr88a at 2007-11-27 0:01:54
<code>import javax.ejb.EJBObject;class test{}</code>compile error:test.java:2: package javax does not existWhat *.jar file contains javax.ejb?Message was edited by: petr88

Help creating a bean

524 byte By eastendersa at 2007-11-27 0:02:15
I have a servlet that checks if a valid selection was made on a html page, If not valid i go to a page. If it is valid i want to be able to make a bean with the selection passed into it. This bean will then do some processing on the data.Can somebody tell me how i would go about doing this or ...

Value cannot refresh using Java bean

1678 byte By wesleygcha at 2007-11-27 0:02:29
When I use java bean to get a value. It suppose to refresh and show new value but it doesn't. So any code can help to resolve this issue.here is my code(Testing.jsp)<html><head><title>Page 3</title><link rel=stylesheet type="text/css" ...

Windows Registry

56 byte By student@sunDNa at 2007-11-27 0:05:17
Can we handle windows registry using Java API's?

Doubt in bean creation

311 byte By NewJavabeea at 2007-11-27 0:19:06
Hi all, I have a very basic doubt. Is it possible to create an array of objects for a bean class as following:FileDetails_Bean FileBean[] = new FileDetails_Bean();NoteFileDetails_Bean is a bean class.clarify my doubt ...

Java 5 updater fails to update to version 6?

545 byte By xlinuksa at 2007-11-27 0:42:26
Hi,Looks like java 6 is oficially available on java.com, and our java 5 updaters all started notifying us about new available updates, however: the first 3 computers (winXP prof) that were/are running Java 5 in our office failed to update successfully to Java 6. Do other people experience such ...

Moving a button

533 byte By totua at 2007-11-27 0:44:09
Hello, I'm getting problems moving a button. The code should move a jButton to mouse location after releasing the mouse, instead it moves to another location. Could someone tell me how to do it? Thanks.private void jButton1MouseReleased(java.awt.event.MouseEvent evt) {// TODO add your handling ...

SWT inside of Swing?

255 byte By gjbeyla at 2007-11-27 0:53:16
Simply put, can I use an SWT component inside of a JDialog, JFrame, or JInternalFrame?I've been searching for this answer all over and while apparently I can use a Swing component in SWT I cant find any example of using SWT inside of Swing.

java bean implementation

310 byte By soumayaa at 2007-11-27 0:56:27
i 'm developing a web service, in my service part , i got a complex type that i should return in a java bean.I have a class in which i have defined my java bean, in an other classI have extracted content from a database, i don't know how to process it to the java bean.please ...

How to get the List of IP Address, of Computers accessible from a Computer

176 byte By Siva.Prakasha at 2007-11-27 1:13:09
I just want to get the list og IP Address of systems in the network whic uses a server.OR How do I connect to a computer in a network using username and password.

Calling java method in jsp

5649 byte By mohan_82a at 2007-11-27 1:28:05
================ My Jsp Page ==================<jsp:useBean id="obj" scope="page" class="com.reppract.UserSupport.ConnectionDBBean"/><%@ page import="java.io.*, java.util.*"%><% String username; String password; boolean con; username = request.getParameter(username); password = ...

Resizeable button

272 byte By totua at 2007-11-27 1:28:51
How should I do to have a button that when I click on it, becomes similar to this one?(link to picture) http://img58.imageshack.us/img58/5328/buttonresizepointsxa1.pngOf course, I need to be able to know when I'm over a dot.Thanks, totu.

Java App system tray that counts key presses - Is there a way?

342 byte By Zangrelaa at 2007-11-27 1:32:19
Hi, i need to make an app that starts minimized and counts whenever the user press for example the '/' key in the keyboard.I have already done this in Swing, but the program only works when theJFrame has the focus.Any tips to lead me how to write the software will be really appreciated.Thanks ...

Newbie getting: component cannot be instantiated make sure it is a JavaBean

2098 byte By TheFida at 2007-11-27 1:47:55
I've been doing the JavaBeans Trail. Didn't get far.Created MyBean.java (included at the end) and added it to the palette. When I try to drop it on a JFrame, I get:"The component cannot be instantiated. Please make sure it is a JavaBean."What must I do to make sure it's a JavaBean?(I made ...

MDI Aplication -JButton and JInternalFrame

662 byte By DrSnakea at 2007-11-27 1:51:44
Hi.I am starting to learn MDI, already made some test, but i have a problem that i cant resolve.I have a small application where the objective is, going to menu, click on "new doc". When i click i add a button to a toolbar and at the same time create a JInternalFrame in a DesktopPane. My ...

beans extension

193 byte By S-kugana at 2007-11-27 1:52:22
Hi,I'm totally new to java and it's beans. just writing the Hello World program. How do u save the java beans file?..i mean the extension.It's .jsp or .javathanks

Non-standard desktop GUI

608 byte By atantca at 2007-11-27 2:00:41
I am not sure whether have someone discussed this issue before.I am trying to develop a cross-platform desktop application. My first problem is the GUI. Java is the way to go but I can't find anything on having a customised window frame.What I am trying to do is create an application that ...

Java Beans

162 byte By Ethan_Hunta at 2007-11-27 2:03:18
I've got a java bean that extends a text field but when i select and drop it to the form its not visible, not even in the inspecter window of the NetBeans

Enum properties

5753 byte By TheFida at 2007-11-27 2:40:21
I am trying to learn how to create a bean with an enum property. As an exercise, I have implemented the following.../* * TitleHorizontalAlignmentEditor.java * * Created on April 23, 2007, 3:53 PM * * To change this template, choose Tools | Template Manager * and open the template in the editor. ...

Application Control

238 byte By zmunkza at 2007-11-27 2:43:36
Is there any equivalent to Visual Studio's SPY++ tool for Java? I have a 3rd party application that I want to automatically control (through the gui) using java. Does anybody have any ideas how to do this?Thanks in advance!

Application Icon in Windows

200 byte By RobertoZozayaa at 2007-11-27 2:43:42
How can I change the coffe cup icon of my Java application?The icon I磎 reffering to is the one on the top-left corner of my app windows, and also when the user goes alt-tab.Thanks

where can i find bdk

62 byte By Neem-Baz-Aankhaina at 2007-11-27 2:49:29
please help me in this regard i am a new comer in beans

where i can find the learning stuff related to beans

59 byte By Neem-Baz-Aankhaina at 2007-11-27 2:49:30
where i can find the learning stuff related to beans

"Session was invalidated" error

132 byte By waheed111a at 2007-11-27 2:57:08
Can any one please explain What are the possible reasons causing "Session was invalidated" errorThank youWaheed

SystemTray Application

2928 byte By SevenHilla at 2007-11-27 2:57:47
I want to run my java application in systemtray. when i compile it as:javac -classpath jdic.jar;. SystemTrayDemo.javai get an error messageSystemTrayDemo.java:2: package org.jdesktop.jdic.tray does not existimport org.jdesktop.jdic.tray.*; for the code in 2. line: import ...

Is JavaBeans ( EJBs ) important to Sun anymore as resuable RAD components ?

2032 byte By Eldienera at 2007-11-27 3:00:37
Considering the lack of answers to my own JavaBeans question on this forum, and to many others here, I have to question whether Javabeans is important to Sun anymore as a reusable component technology.It seems as if Sun has just thrown in the towel when it comes to reusable software components, ...

Taskbar panel

517 byte By darocka at 2007-11-27 3:01:21
I apologise if this has been addressed before- I have spent the best part of a morning searching for the answer but with no success, and I'm running out of time.I want to create a panel either in the taskbar of a windows system (Microsoft or Open Source) or floating (this would mean that it ...

Coding for unexpected crashes. Recovering data

481 byte By alzoida at 2007-11-27 3:04:28
I am trying to find some best practices on how to handle unexpected application crashes. I am mainly looking for ideas on how to lose the least amount of data as possible.I like how programs like Microsoft Word and Open Office Writer can crash and then prompt you to recover your data when they ...

Changing value in jsp

858 byte By casey9a at 2007-11-27 3:06:51
Hi, I have a question, i did write a jsp code which includes java beans and coming to this code:<tr><td>Hours per day the lab is open<td> <input type=text name="hrsperday" size="5" value="8"><td><input type=submit value="Calculate">String sn1 = ...

PropertyEditor adapter

346 byte By developer_jbsa at 2007-11-27 3:18:05
How might I use an existing java.beans.PropertyEditor implementation as a TableCellEditor in a JTable? I have been attempting to wrap the PropertyEditor in a TableCellEditor implementor, then delegating TableCellEditor.getTableCellEditorComponent() to return PropertyEditor.getCustomEditor(). Is ...

Changing button state in code

392 byte By CodingFisha at 2007-11-27 3:40:26
Hi, I would like to have some kind of button in java where i can change the state (pressed / not pressed) using the code. The idea is that you have the behaviour of a checkbox but the look&feel of a button. You can do this in .net by giving a checkbox the appearance of a button, but I have ...

Preventing Application From Hang.

379 byte By monkeya at 2007-11-27 3:46:22
I've write a program to download/upload data from database to text file,when I execute the program, it will hang if I have large amount of records in my database, but after the process is finish, it will back to normal again(Application working-not hang).How can I prevent my application from ...