my help won't close, have to ctrl-c

383 byte By TrumanCa at 2007-9-28 15:14:59
Hi,My help system works great but I am having one problem with it. When I bring it down, it does not close correctly. I am having to type Ctrl+C to get the virtual machine to stop. Does anyone know how I can solve this? I made a class that starts up the help and just calls setDisplayed(true); ...

howto use javax.help.Presentation ?!?!

812 byte By grobbie123a at 2007-9-28 15:15:07
Hello,I'm trying the new features of JavaHelp 2.0 and can't seam to get this to work. What I do is this:// This what the presentation section looks like in the .hs file// (Copied and corrected from documentation)<presentation default="true"><name>mainWindow</name><size ...

Windows UIManager Override ...?

488 byte By PiratePetea at 2007-9-28 15:17:33
Does anyone know if the black background in my Desktop application with Internal Frames can be changed or overridden using the Windows UIManager? I also like Kunstoft UI but I can't change the text highlight or the background of the main application.I can setBackground(new Color(255,0,0)); ... ...

Problem with HelpSet in a jar file

547 byte By wanschuraa at 2007-9-28 15:21:27
In our application, the content of the html-pages of the helpset is not displayed ( the index is ! ) if we put the help setin a jar file. Withour using a jar file, it works fine.The problem appeared with all JavaHelp versions I tried (up to 2.0 beta)and using JREs >= 1.3.1_0x. Its funny ...

Design This Screen

254 byte By 06051979a at 2007-9-28 15:26:39
Hi all, I know that this Screen utilize the SCE Look And Feel, but how to develop screen with Title Bar / Menu Bar and put the image on Rigth Corner this form? http://java.sun.com/products/jfc/tsc/articles/sce/master.gifThanks.

WebStart & JavaHelp: can't print due to security exception

683 byte By JayDSa at 2007-9-28 15:27:39
I have gotten a simple webstart application to work, so my next step was to try to add some help to it. I've gotten the help working so the JavaHelp window comes up and all that, but when I try to print, I get:java.security.AccessControlException: access denied (java.lang.RuntimePermission ...

Highlight

499 byte By 157354a at 2007-9-28 15:37:48
Hi all,Does anybody know wheather or not there is a way to send a notify-like signal to the OS? I'm developing a chess application. When the application is minimized (in windows) and the computer is finished calculating its move, it has to send a 'give me attention' signal. For example when ...

Link from JARed page to outside page

592 byte By marchioa at 2007-9-28 15:43:11
HI, I am trying to establish a link from a page of my help, which will reside in a JAR, to a page located outside the JAR.According to the help this should work. It says: 揟he JavaHelp system actually deals with URLs. The URL may resolve to the contents of a file in a file system, a file on the ...

how to make a bean visible in jsp page

242 byte By hiran_ca at 2007-9-28 15:55:01
hi,I created a javabean which has user interface. But I needto display it on jsp page. Is it possible? I already set the 'setVisible(true);'. But it is not displaying. pls, help me.thanks,hiransatya

executable Java under Windows

786 byte By Znerolea at 2007-9-28 15:57:55
Hi there!I would like to know if there's a possibility to create a Windows-exe of a java-program, because I need to make a program runnable on Windows machines without installation of the JavaVM (as my customers generally neither have Java preinstalled nor admin-rights on their machines).Is ...

could not create event adapter

182 byte By mihir_a_vaidyaa at 2007-9-28 16:03:16
I am not able to connect beans in the bean box.. the bean box gives the following error.could not create event adapterCan anyone help me out in this?thanx

Including javahelp in a jar executable

635 byte By ewfbsmitha at 2007-9-28 16:12:59
Hi, ive just created an application and would like to include a javahelp with it, ive got it running off my local machine with the java helpset working too , but what im wondering is, is it possbile to include jhall.jar in the application jar so people who do not have javahelp installed can ...

detecting running app

756 byte By becilica at 2007-9-28 16:14:32
Is there a straightforward way to detect if an instance of an application is already running & if it is, not only exit the currently running app (before it actually starts) but also maximize/bring forward the pre-existing app?I've acheived half of this using the Preference API by setting a ...

Exception DefaultSearchEngine

2371 byte By adebebeha at 2007-9-28 16:41:26
Hi,How to implement the search feature in JavaHelp?I tried this:in the Java code:try {URL url = new URL("file:/c:/help/help.hs"); //actual location of the help setHelpSet hs = new HelpSet(null, url);HelpBroker hb = hs.createHelpBroker();helpButton.addActionListener(new ...

How to send an email attachment!

242 byte By Fushengluoa at 2007-9-28 16:50:12
Hi, everyoneCould anybody tell me how to send an email attachment using javax.mail.* packages? For example how to send a word document through an email? Any suggestions or code help are greatly appreciated!!Fusheng

java.net.ProtocolException

538 byte By vikalp_setyaa at 2007-9-28 16:51:16
Hi all,I am having Java Help support in a JApplet. I have a jar file which has the application data e.g. applet classes,resources etc along with the help contents and support search files.The problem is that when i open the help, java.net.ProtocolException is generated saying :didn't meet ...

java printing problem how to print in multiple pages

17194 byte By san_droa at 2007-9-28 16:52:16
hi alli'm trying to print the output of my applicationno problems with the 1st page but i'd like to tell to my app to print in a brand new page if the content exceed the printable length of the first page. i have 2 classes: printer and Document. the last one implements PrintablePrinter ...

JTables

1557 byte By mulatrona at 2007-9-28 16:52:50
I am trying to create a "Table Panel" extending JPanel that I can call from within my application and when called it will show the table as part of the main window. I have tried loads of different things and no matter what I do the table won't show up. Here is the code:class tablePanel extends ...

deploying java bean

1377 byte By maharajanpa at 2007-9-28 17:01:12
Hello everyone, i am new to this forum and im a java beginner.this is my sampleBean.java programpackage FEWDBeans;public class SimpleBean{private String message = "Message not yet set";public String getMessage(){return (message);}public void setMessage(String message){this.message = ...

stylesheets + J2sdk 1.4

682 byte By mbachlera at 2007-9-28 17:02:37
I have recently migrated my code from j2sdk 1.3.1_03 to j2sdk 1.4.1_02. I am using JavaHelp 1.1.3. All my html pages where previously successfully imcluding a style sheet for displaying the help. In 1.4.1_02 the style sheet is not being applied. I have tried putting the styles in the head ...

GridBagLayout

841 byte By mulatrona at 2007-9-28 17:04:29
I want to use this layout in my application to position my JPanels correctly in the JFrame. However when I try to do this, the 2 panels get squashed into the center of the JFrame. Heres the code... Ant help much appreciated!!!Container contentPane = getContentPane();GridBagLayout gridbag = new ...

Having problem with Tomcat and javabean

1982 byte By awthomas100a at 2007-9-28 17:04:42
Hi, Im currently building a project for uni, using Tomcat, JSP, HTML, javabeans. The only problem is that tomcat cannot find my javabean file.The directory stucture is:BooksOnlinewhich has folders:builddocswebsrcand file build.xmlthe web folder has folders html and WEB-INF and index.html file. ...

weird error when my jsp page calls on a javabean for help

1777 byte By david_eberhardta at 2007-9-28 17:06:49
I have a web page that is asking the user to select from a choice of check boxes and sned it to a jsp ( http://localhost:8080/card_trick_results.jsp) for processing.the jsp page calls on a javabean (CardTotal.class) to process the logic:here is some of the code from the top of the CardTotal.java ...

XMLEncoder w/immutable base class

480 byte By johnsa at 2007-9-28 17:07:38
Given the class definitions below, is there a way to persist an instance of MyClass1 using XMLEncoder? public class MyBaseClass {String name;intsize;inttype;public MyBaseClass(String name, int size, int type) {this.name = name;this.size = size;this.type = type;}}public class MyClass1 extends ...

How to deploy the application, after we have made it.

2744 byte By Martin42a at 2007-9-28 17:08:08
I don't know if this is the correct forum to use but here we go:We have written an application in java, which is supported on 4 different platforms. MacOSX,MacOS classic, Windows, and Other(*nix)We have 3 different versions of the installer depending on which platform our user have(This is ...

Swing ActionListener probelm

726 byte By mulatrona at 2007-9-28 17:12:17
I have create my own panel containing 4 buttonsaddButton = new JButton("Add");addButton.addActionListener(this);This gets added into a mainPanel which is then called to make up part of the JFrame:bp = new bottomPanel();My problem is that I can't get the actionListener to work. If I put it in ...

JAVA_FONTS environment variable?

5036 byte By dcba09030a at 2007-9-28 17:15:23
HeyI keep receiving the following error (see below) when i run my code.I have done what one help page suggested of setting the environment variable JAVA_FONTS to the fonts directory in windows, but this did not solve my problem.The code i am trying to run does work, and does not cause errors on ...

NullPointerException at javax.help.plaf.basic.BasicTOCNavigatorUI.reloadDa

1936 byte By kannan_manirajana at 2007-9-28 17:26:43
I tried to call a JavaHelp file from my JavaWebStart application.My class and the .hs,.jhm,.xml files are in the directory as shown below /HelpDocAppClass/docs/ Help.hs mapl.jhm MyHelpTOC.xml HelpIndex.xmlMy code is as follows./*********************/ClassLoader loader ...

Project Workspaces and Directory Structures

608 byte By ezekiel61a at 2007-9-28 17:29:50
Hello All!I come from a web development background and I'm used to organizing web apps with directories to help me organize and I want to do this for my java apps too.for instance, for my application I have a MenuServer class, TabServer class, and a ContentWindow class. I want to put all these ...

keeping that red line in the BeanBox!

283 byte By guray2a at 2007-9-28 17:30:00
You know that red line that you use when you connect two beans in the BeanBox? Is there a way to make it so that it does not disappear as soon as the connection is established?Or is there a way to show all of the red lines (i.e, connections) that have been established?

please help! hiding a JMenu !

192 byte By hhdhdhdhdha at 2007-9-28 17:32:56
All I'm looking for is the command(s) to "discard" (or hide) all currently open menus, basically to produce the same effect as when you click outside the menu.Thanks in advance

connecting JTable to database using JDBC

7193 byte By mulatrona at 2007-9-28 17:53:53
I am trying to design my application so that I only have to create 1 instance of my DBConnection class or that this gets passed into the constructor of my Panels so that they have access to the connection. This is the way I have it working at the moment. Can anyone tell me a better way?//-the ...

how to get images from sybase database

3329 byte By fpearsea at 2007-9-28 17:54:50
i have been trying to fix this code and so far after 10 hours have no succes my jsp page is coded like so...///////////////////<html><head><title>JSP The Short Course - Lesson 13 </title></head><body><jsp:useBean id="myBean" scope="session" ...

Outputting ResultSet into a JTextField

457 byte By mulatrona at 2007-9-28 17:59:00
I use this method to execute queries on the database public ResultSet runQuery(String s) throws java.sql.SQLException {Statement stmt = connection.createStatement();System.out.println(s);return stmt.executeQuery(s); }For the query I'm having problems with there is only 1 result in the ...

CheckBox problem

326 byte By mulatrona at 2007-9-28 17:59:18
I use a JCheckBox to allow users to choose 1 of 6 options. This information is then sent to a database. When I try to write the information back out to the relevant "text areas", it won't allow me write this back out because the area is not a Text Component. Is there any way around this?Any ...

JTable ListSelectionListener question

213 byte By mulatrona at 2007-9-28 18:00:43
The functionality I require is that when the row is selected, a record is kept of the first elemant in the row so that it can be passed in as part of an SQL queryAnyone have any ideas?Cheers!!

Problem populating textfields from sql query

4513 byte By mulatrona at 2007-9-28 18:02:09
As seen in the code below I pass a String and a database connection to the constructor of this class. If I use the query commented out in the code the connection works fine and the values text fields get populated with the data. However if I use the uncommented query, the connection fails and ...

Print java api

1729 byte By ksimons1982a at 2007-9-28 18:02:55
Can anyone give me an example of how to write simple text to a printer on an NT platform.I have tried input and outputstreams, outputstreams and now i try strings. I always get invalid flavor but when i check the supported flavors the flavor is supported.This is the latest sourcecodeimport ...

java bean with string tokenizer

398 byte By TrayDawga at 2007-9-28 18:05:12
I've never used a bean before and I'm trying to implement the use of one. I am trying to retrieve a column from a database containing comma separated values. I was thinking that I'd use a javabean to retrieve the data and then use string tokenizer to separate the values. Does anyone have any ...

Q: How to display file using native app (based on MIME type)

257 byte By gary_kepharta at 2007-9-28 18:06:08
Given (for example) an HTML file, I'd like to call up Netscape or IE or whatever the app is that is associated with HTML files. How do I do that?I took a look at the CommandMaps and Preferences, but they don't help.Thanks, Gary

Changing LookAndFeel of a Sun One Application

312 byte By g00dlifea at 2007-9-28 18:06:36
I've spent the last 2 days searching the net for an answer to this problem:How do you change the LookAndFeel of an application you are working on in Sun One Studio (or NetBeans)? Is it even supported in the IDE? Or can you only change the look and feel by editing the main or init methods? ...

Image Previewer

186 byte By kowolskia at 2007-9-28 18:10:44
Im writing am application and want the user to be able to open an image , using JFileChooser, and display it in a panel. really stuck,any help?thanks,kowolski

How can I change the Jframe Java help Icon

183 byte By sanjeev_ecia at 2007-9-28 18:27:21
How can I change then Jframe Java help Icon?.I am using then HelpSet class and HelpBroker.I want to change the java help icon Any Idea? thanks. ...

Getting Started/ Tutorial for Java Help?

325 byte By jaygordona at 2007-9-28 18:33:42
I'm an experienced Java programmer but I've never seen or used Java Help. I just downloaded the help api and browsed the javadocs but I don't even know where to start.Is there a tutorial or some type of instructions on getting started with Java Help? I don't even know what class to start ...

Java or .NET

822 byte By Jgerbila at 2007-9-28 18:36:38
I'm hoping to find objective viewpoints (the key word here being "objective") to the following question. Please...if your just plain anti-Microsoft / Bill Gates, I respectfully ask you not to respond. Thank you in advance.A client wants a Web based accounting system to be designed and ...

really need help

750 byte By jiketiea at 2007-9-28 18:41:55
The Bean Builder is a general application builder that uses dynamic component assembly.There are several ways that you can experiment with your own beans. 1.You can load the beans onto the palette by invoking the Load Jar File command. 2.You can add the beans to the classpath and edit the ...

Money - Conversion

526 byte By musskopfa at 2007-9-28 18:49:11
Hi all!!I am starting on Java, and my teatcher gave me a work: He wants I do a program that say me how much of each type of notes of our money I have to return to anyone when he/she buy something on my store. For instance, if he/she buy R$ 241,95 and give me R$ 1000,00, I have to return him/her ...

read only bound property?

730 byte By oscarhoba at 2007-9-28 18:52:05
Is there such a thing as a read only bound property ? I have a case where property A gets set when propertyB is set, but there are some listeners who are only interested in when property A gets changedprivate Foo foo;public String getTitle() {return foo.getName();}public Foo getFoo() {return ...

JTextArea & JScrollPane

312 byte By klegesdala at 2007-9-28 18:52:10
I am reading in a textfile, line by line, and appending it to my JTextArea. I then create a JScrollPane(JTextArea)...all is good...except my verticle scroll bar is always at the end of my document. I would like it to be at the top of the pane at the initial opening state. suggestions ...

java client/server...performance

454 byte By klegesdala at 2007-9-28 18:52:18
I am very new to java...and really enjoying it! I have hopes of writing a client/server application to serve 75-100 clients. My application would be a basic business app....create, edit, view, a customer record, create/generate reports...that sort of thing. My question is ...will an application ...