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); ...
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 ...
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)); ... ...
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 ...
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.
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 ...
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 ...
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 ...
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
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 ...
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
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 = ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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?
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
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 ...
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" ...
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 ...
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 ...
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!!
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 ...
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 ...
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 ...
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
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? ...
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 then Jframe Java help Icon?.I am using then HelpSet class and HelpBroker.I want to change the java help icon Any Idea? thanks. ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...