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 ...
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 ...
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 ...
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) ...
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 ...
Hi,How can I make a desktop application that has a 30 day trial... thx!
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
Hi,I am making an editor in java and I want syntax highlighting support.Is there any way in java for syntax highlighting?/
Is there any way to change windows wallpaper using Java API?
How to create a proper jar file?
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
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 ...
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" ...
Can we handle windows registry using Java API's?
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 ...
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 ...
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 ...
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.
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 ...
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.
================ 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 = ...
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.
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 ...
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 ...
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 ...
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
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 ...
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
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. ...
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!
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
please help me in this regard i am a new comer in beans
where i can find the learning stuff related to beans
Can any one please explain What are the possible reasons causing "Session was invalidated" errorThank youWaheed
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 ...
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, ...
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 ...
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 ...
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 = ...
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 ...
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 ...
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 ...