Hey, I am looking to do a program in netbeans 4.1 and I am looking for advice on how to create a set of methods on changing language to english to french and german. The labels are in english I wanna make this code a bean so I can change the language of the labels on the property sheet. Does ...
hi guys Pls look at my scenario:I have an html file with a username and password fields.on "submit" it access "register.jsp" page:here is the code for my register.jsp:<jsp:useBean id="user" scope="session"class="test.redusername"/><jsp:setProperty name="user" ...
Hi, I wana create a form bean and I would like it to have a customisable property of chnaging the language to French And German. I have seen a few methods ie - getLocale(), setLocale(), getLanguage(), setLanguage() however, I dont know what one I should use and how to use it. Anyone Have any ...
I have, let's say, a BaseObject class, a Party class and a Person class. I would like to expose only certain PropertyDescriptors from each class. So, when I introspect a Person instance, for example, I'd like the sum total number of PropertyDescriptors to be those returned by the BeanInfos ...
255 byte By
Theepana at 2007-10-3 0:31:42
import java.util.Date;public class Test {public static void main(String args[]){ Date dat=new Date();System.out.println(dat.getYear());}}It prints out: 106 instead of 2006.What is the problem?
490 byte By
Replaya at 2007-10-3 0:33:30
Hello Guys,How can i make a stateless Java Session Bean sleeping?i made a simulator, and this simulator contains like 40 methods, and i want to make a realistic simulator, so i want to make a little delay in every method, before it starts.i hope you understand what i want to make.i tried to ...
WellI like to use one bean for different jsps with different properties. I don't want to have setters and getters properties, I would like a HashMap with the property-values. Could I overwrite jsp:setProperty tag?Or it will be better to use a custom constructor with HTTPServletRequest ...
Am new to dynabeans.. Can anyone tell me how to use dynabeans in jsp. Am using Display tag to display all the values from database dynamically. Can anyone tell me how to retieve that without using bean.
394 byte By
Bulusua at 2007-10-3 0:46:56
Hi ,Can some one let me know if there is any API available for searching files which contain specific words in a particular directory?My objective is to get the files that contain a string from a directory.In short it should work similar to the windows search which lets you search for files ...
386 byte By
Reegza at 2007-10-3 0:53:19
Hi guys,I have a swing app which i wish to deploy on windows-based systems. I have downloaded installers which would be able to install the program. However, I would first need to find out whether the system has java installed. How do i go about doing this? Are there any standard methodologies ...
100 byte By
cloraca at 2007-10-3 1:00:44
Hello,Can anyone recommend a good online tutorial / primer for JavaBeans?Thanks
560 byte By
Sajala at 2007-10-3 1:03:35
Hi ,We want to develop an IDE in java, which will provide a GUI Designer also. It allows to Design some screens by providing some minimum controls( developed in Java Beans) . The output files fed to compiler are XML files. Could anyone tell me how to start of a development like this. Any books ...
i'm trying to make a registry editor for windows in java as my mini project. it will be similar to "regedit.exe", already present in windows. is there any class which allows reading and writing from the registry? if not then do i have to use jni?
121 byte By
s2smha at 2007-10-3 1:09:05
How can I add global classpath to NetBeans,rather than project runtime classpath?For instance,JDBC driver of MySQL
Hello all, I am developing a system using JSP, beans, Servlets and Oracle backend. I am reading data from the Db, for example, user data (real name, username, location etc) and at present each row from the resultset is taken and a bean created - then the bean info is put into an arraylist. All ...
Hi all, I tried deleting files , by executing dos command in java.It works perfectly.But i cant delete folders in the same way.Can anyone help me please.Very urgent....Thanks in advanceravisenan
126 byte By
bulba_aa at 2007-10-3 1:20:18
Hello everybody. Can anybody tell me Is it possible to make a help window modal (like JDialog)?Thank you.
841 byte By
bulba_aa at 2007-10-3 1:20:23
Hello.I bumped into a big problem. I can't see any way to solve it.My Java applet has a help system. Also there is a multilanguage support within applet. And user can switch applet's language on fly without any restart procedure. And that created a big trouble for me. I can't realize the hot ...
Does anyone know how to programmatically display the contents of a URL in the default browser for a Unix system? I found a javaworld article on doing this using Runtime.getRuntime().exec(cmd). The article gives the cmd string for invoking the default browser in Windows, and for invoking the ...
I have to check whether the user have entered a valid price.If not I've forward the user back to x.jsp. When I'm trying to do this, I'm getting the following error. java.lang.NullPointerException . Can anyone suggest me how to fix this pblm? Thanksdouble price = ...
3049 byte By
da_bossa at 2007-10-3 1:24:04
hi!I want to check if my entity beans' find methods return proper values. To do it (since I don't have a special testing database yet) I just take all the data from table using jdbc and compare to what I get from beans' home interface.This is the method I use to compare Timestamps:private ...
49 byte By
q8za at 2007-10-3 1:25:51
how can i limit my size of memory in j2me?
hi,I am using session bean facade in an application. This facade is creating SDOs for handling requests of add, update, delete or view.I have used them to create different listing servlets. But when I am adding new products or items or store etc I am facing errors.Adding etc is OK for entity ...
Hello,I'm new to netbeans and i'm just wondering how i get my app to look like a Windows XP app. When using Matisse I can do a preview and it looks fine. But when i run the app it looks completely different.thanks,ken
I try to do this ...Button tasti[1000] = null;for(int e=0;e<1000;e++) tasti[e] = new Button();for(int i=0;i<1000;i++) f.add(tasti[i]);But netbeans give me to me an error at the first line.....how can i create a Button vector with 1000 Button ...
92 byte By
Manivela at 2007-10-3 1:37:39
Dear Friends,How can i get bdk tool.Kindly ReplyThanks...
Hi all, I want to compress or zip a folder, that contains several folders and files in it.how to do that in java.Please help me...Thanks in advanceRavisenan
hi friends;Please help meplease suggest me where i am wrong, i think javabean is not instantiated in jsp file.may be it is related to the classpath of javabean. i have not set any variable for javabean classpath. and i put javabean class file inTOMCAT_HOME/webapps/test3/WEB-INF/UseDta.classand ...
164 byte By
ghhd_7a at 2007-10-3 1:58:17
How I can scan image from Scanner device There is any api in java do thator any external package do thator any way to do...thanks
Is there a simple way to get the path to a user's application data directory from the system? I don't want to hard code in something likeSystem.getProperty("user.home")+"\Application Data\";I would LOVE IT if there was a cross-platform way to find where application config data should sit for ...
have an instruction at String, how can execute?example String ah="System.out.println(\"Hello world\");";
2927 byte By
anilp1a at 2007-10-3 2:05:17
1) When I use a html mailto in a html page, it correctly opens Yahoo Mail as the default mailer.In the registry (Win XP), under HKEY_LOCAL_MACHINE\\SOFTWARE\\Clients\\Mail,Yahoo Mail is listed.2) I am trying the example from here, but get an ...
Hi AllI want to download BDK, I don't know where to go? Can any one help pleeeeeeeeeeeeeeeeeeeeeeeeeeease?
GoodDay! I would like to ask your expertise in Java?.. I am just a newbie in Java and I do not have any idea how can I minimize my application to the system tray?br>Is there anyone who has an example to this one? even just an empty JFrame example that when minimized, it will be placed not in ...
how can i create a java bean for an http session. also is it possible to access it from another java class within that session
HiWhen i try to run infobus.jar i get the following error:Failed to load Main-Class manifest attribute from .........Please Help
hihowto execute java jar file via html ?could someone pls post a html code ?kind regardsupiter77
please tell me "why String class in java is immutable?" actually i want to know what is reason so that Java required String class made to as Immutable?
747 byte By
DZaKa at 2007-10-3 2:28:10
I have a big problem with show my javahelp. If I do this from main frame and then show modal dialog (JDialog), my javahelp is not enable. So I use setActivationWindow with my modal dialog as a parameter and then javahelp works fine, but it doesn't not contain minimalization and ...
Hello All,My company is currently interested in developing tools for the Tablet PC. We would like to establish a relationship with a developer who is knowledgeable with this platform. If anyone is interested in possible application development for Tablet PCs, please contact me at ...
751 byte By
Mike512a at 2007-10-3 2:32:29
I'm developing a Plugin with the eclipse IDE. I want to insert images for using them in a TreeView. I've tryied many ways but the only one that works is putting an absolute path to the image, but that is not correct for deploying the application later.I've tryed ...
Hi I am using the preferences class to store some details for my java application. This app will be deployed to a shared folder so that many users will be able to acces it. I have included an administrator function in my app which allows the users to change certain features that other ...
171 byte By
haishaia at 2007-10-3 2:50:17
I used RMI inorder to avoid opening two window for an application. But in some machines it is not working. All the port numbers seems to be busy . What should i do?
Hi I trying to buikd a web applications.For that i need to build a components so that i can reuse them in interfaces.what are the different languages i can use fot it e.g. beans, jsp and etc.any help will be appreciatedthanks
Dear All,how can i show a table in a frame that containes a data from a database, then can edit , add and delete some records in the databasethnx 4 all
Can we create buttons with reusable components (beans).If yes, how can we make use it.
40 byte By
sa_7a at 2007-10-3 3:09:29
how to download the JavaBeans Kit
267 byte By
Jchefa at 2007-10-3 3:20:14
Hi, I'm devloping a desktop app. And I want to use jasperreport in this.I've downloaded jasperreport1.2.5, but dont' know how to use.Please anybody help to sort it out this prob. Also let me know where to save this jar file.thanx
Hi I have a small error that I can't seem to figure out, does anyone know how to stop a single cell in a table being selected? I would prefer the entire row to be selected.thanks.
660 byte By
zip184a at 2007-10-3 3:22:05
I have a jsp page with a file chooser on it. Whenever a file is choosen and the form is submitted, it says "file not found". I figured out this was because the file chooser is not returning the full path name of the file, just the name itself. I'm calling it with this line.<td><input ...