Difference between java class and bean

167 byte By Viplava at 2007-11-27 4:04:18
Hai all,Can any one provide me what differs javabean from ana ordinary java class or what r the extra things we have to follow while writing a java bean.

posting to a bean

147 byte By padikkathavana at 2007-11-27 4:22:51
Hi,I am entering the values in the html form.can i post this values to bean directly by form action ,method post ?thks.

beginner's question...

2033 byte By pnandrusa at 2007-11-27 4:28:21
import javax.persistence.* ;@Entity@Table(name="CABIN")public class Cabin {private int id;private String name;private int deckLevel;@Id@GeneratedValue@Column(name="CABIN_ID")public int getId( ) { return id; }public void setId(int pk) { this.id = pk; }@Column(name="CABIN_NAME")public String ...

Deployment of cross platform application

1316 byte By cendrizzia at 2007-11-27 4:29:20
I am pretty new to Java and have programmed an applet (or tray) application in netbeans using it's tools. The program uses three separate images for different states of it's tray icon. As a web developer I have run into a very uncomfortable dilemna: I don't know how to property distribute ...

Cannot convert the date format through POI

452 byte By henry_22a at 2007-11-27 4:29:38
am currently using POI to manipulate data into excel file, .......styleDates.setDataFormat(HSSFDataFormat.getBuiltinFormat("dd/mm/yyyy hh:mm"));cellG.setCellStyle(styleDates)cellG.setCellValue(processStartDate);processStartDate is Timestamp type, which value is getting from database, but when ...

Developing software in Java 1.6 and bundling the JRE when selling

973 byte By sukurianta at 2007-11-27 4:35:34
Hello,This is my first time developing software that would later be sold. I do not know what is legal, etc, and was hoping that someone might be able to help:1) Is it legal to sell software written in Java 1.6? (This code will probably work in 1.5 if that is a problem)2) I was planning to ...

Beans specification question regarding Customizers

1804 byte By ljnelsona at 2007-11-27 4:42:31
In the beans 1.0.1 specification, it says that a Customizer must extend from java.awt.Component, and furthermore that it must implement the addPropertyChangeListener() method. All fine and good; note that by extending from Component you get this implementation for free.But there's the problem. ...

Color of the form in Netbeans 5.5

285 byte By ninjasa at 2007-11-27 4:53:51
I have a problem with Netbeans 5.5 and 6. If I set background color of the form in the properties tab to some other color than standrad, it's just don't work. Nothing hapens. Is this a usual problem or what?Thanks in advance..Message was edited by: ninjas

help

779 byte By suse69a at 2007-11-27 4:54:04
I have got this exercise and would be thankful if somebody could point me in the right direction .Create a servlet that displays a list of customers (From the customer table of the database). Use the HTML table to organize the display.Hint: Use a Java Bean, e.g. CustomerBean that has the fields ...

Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space

816 byte By bharatkadaa at 2007-11-27 5:10:43
Hi, We have developed a desktop application in NetBeans 5.5 using java swings.The application has six main forms(JFrame) and each main forms has 4 sub forms(JFrames).Each form has on average 6 .png images to be displayed.In one of the main form has 28 png image icons to be displayed on the 28 ...

HTTPClient- specifying inputs from java code

356 byte By deepakchandarana at 2007-11-27 5:11:24
Hi, I am developing an application which will download a software from internet.If we do it using browser we need to click accept button to accept the aggreement,we need to select a check box etc..If i am going to download through my java code how can i give this input(clicking next button, ...

jdshelp and jds-help crashing every time - Solaris 10 11/06

10040 byte By sparcmastera at 2007-11-27 5:14:39
Hello,I am running Sol 10 11/06 for sparc on a Sun Blade. I have jdk6u1 and jdk5u11 (default java) installed. My Desktop Overview and other java-related help functions do not work. I get this error:# jds-help ghelp:jdsoverview** (jdshelp:826): WARNING **: An exception occured 'Unknown CORBA ...

Communication between a web app and a desktop app

399 byte By pattchena at 2007-11-27 5:18:04
Hi,I would like to know how i can make a web application communicate with a desktop application (protocols,technologies, patterns?.And if I'm using a jsp web app and a java se app?Indeed, i have a desktop app. which use some information provided by an user via a web app,and the work performed ...

Generating Report using Java.

196 byte By monkeya at 2007-11-27 5:18:35
How do I generate report in java application?I want to build java application that can generate report.I use NetBeans as my tool and MySQL as database..Please, help me.

Java compile problem

3314 byte By Mr_Scientista at 2007-11-27 5:31:40
I have been trying to compile a java bean using javac from within Fedora Linux 5. I compiled the first bean creating a class succesfully but the second keeps on coming up with an error. Both java files are stored in WEB-INF/classes/beansHere is my code://ItemOrder.java//file location ...

Swing Thumbwheel (graphical spinner)

328 byte By John-Na at 2007-11-27 5:42:27
Does anyone know if there is an open source swing thumbwheel control available?I have not been able to find one so far.This would look like a circle with a round notch. User drags the wheel around and it rotates around a radial axis, and the control would increment or decrement a given ...

Opening file from browser with Java client application

1016 byte By l3ustinJustina at 2007-11-27 5:56:25
Hi,I am currently developing a receipt printing application that resides on users' client machine and I need some help. Currently, whenever a user clicks a "Print Receipt" button a web application I developed, the response comes back as a specific file type (a .POS file). On each user machine, ...

Java Universal Remote control

473 byte By Figoa at 2007-11-27 5:56:44
Hello Everybody,Hello everybody,For a project i need to make a java interface with xml communication. For example ; from 1 laptop I press on a java button and then i need to get a text message on the other laptop.The java interface is already created now the xml code for communication.I hope ...

setting a value of an indexed property using JSTL

976 byte By vAaka at 2007-11-27 6:02:59
Hi,I was wondering how I can set a value of an indexed property from inside a jsp-page.Suppose I have a bean instance called myBean which has 3 properties: String name;int number;String[] array;In my .jsp file I can set the name and number using:<jsp:useBean id="myBean" scope="session" ...

Where Do I find the sources of dt.jar BeanInfo classes ?

290 byte By marcossofta at 2007-11-27 6:04:22
Hi all,I would like to investigate the sources of the file dt.jar that is bundled with JDK ... I'm interested in the *BeanInfo classes that it has. Does someone know where can I find them ?Thank you very muchMarcosMessage was edited by: marcossoft

Exception in thread

421 byte By spurtreea at 2007-11-27 6:12:01
Hi,I'm getting the following message when I try to execute - java classname.class from the command promt. Message - Exception in thread "main" java.lang.NoClassDefFoundError:I'm running XP and variables are set as:CLASSPATH - C:\Program Files\Java\jre1.5.0\lib\ext\QTJava.zipQTJAVA - ...

Regarding div tag in JSF

210 byte By Me_Karthia at 2007-11-27 6:55:28
I am new to JSf and I am using h:panelgrid similar to html div for my pages.but i dont know how to use h:panelgrid properly . Can some one help me on this?Thanks in AdvanceKarthikha.

Create new user on linux

241 byte By vamegaa at 2007-11-27 6:57:52
I am seraching for a way to create a new user on a linux system through a java program. Does anyone have any idea on how i can do this.This application will be run as super-user, if that is to be of any help.Thanks a lot

conversion of webapplication into .exe file

341 byte By arasia at 2007-11-27 7:02:09
Hai,How 2 convert a webapplication(nothing but execution not from main method) into .exe file.Is it possible to covert.I found that a executable jars are used to convert a java application into .exe but no where i found abt webapplication.If possible just reply to msg as it is very urgent.Bye ...

Memory Leaks

163 byte By Manthanaa at 2007-11-27 7:07:32
Hi all, Is thr any way that i can find that the application that is running on my desktop has memory leaks or not in WINDOWS.(without using any tool)

java console app used in netbeans 5.5 ide

925 byte By dglnza at 2007-11-27 7:09:05
hi folks,got a java console app that i'm having trouble with.points are as follows...1. when i step into the app (from main) it goes well2. when i come to the code where i open a bufferedreader stream i get a popupthis popup gives me 3 or 4 options like...step out, step in, step over, ...

Making Custom Frames

362 byte By GreGeeka at 2007-11-27 7:10:02
Hi, I'm quite a beginner in J2SE, and would like to know if it's possible to make totally customized frames, for example a circular frame instead of rectangles or squares... or something like a frame with 5 or 6 bounds.. Maybe it's impossible or already exist, i really don't know and ...

Debian 3.0

210 byte By accs21a at 2007-11-27 7:11:11
Hello,I'm a newbe, so if my question belongs to another forum, please refer me to it.which java versions can i install on debian 3.0?i can't install another o\s on it.thanks

Watching Filesystem without JNI

372 byte By raynica at 2007-11-27 7:30:27
Hi,is there an effective way to watch and manage a folder without JNI?For example, if there is a huge file which gets stored in this folder, how can i check that the file finished the saving process? So that the file is ready to work with it.Maybe there exists a pattern or a framework, which ...

XMLEncoder for readonly properties

190 byte By Hef_onlinea at 2007-11-27 7:32:14
I have an object wanna to encode with XMLEncoder. It has only getters but no setter, and thus all the readonly properties can not be encoded.Any one has solution to this issue?

TOC entities

393 byte By Greenmanspirita at 2007-11-27 7:41:24
Does anyone know what the TOC uses to display to the screen the tree? I am trying to figure out if I can add support for numeric entities for characters, & #917 ;rather then & Epsilon ; since my companies online help parser/creator seems to have a hard time comprehending that we want ...

Searching a file

124 byte By student@sunDNa at 2007-11-27 7:43:17
Hey I want to search my drive for specific files in Java..Can anybody please tell me.Any links!!!!!!!!!

JAF under GPL?

73 byte By kenoaa at 2007-11-27 7:49:40
Will the JAF be available under the GPL (in addition to the CDDL)?

licence

397 byte By EvilEa at 2007-11-27 7:51:58
I'm with a small company which does'nt have an IT department and I've discovered that a few areas of my job would be a lot easer if i could develop my own software, I was wondering what kind of licence I would need to use Java to develop such programs,I've looked through the sun site but ...

Tutorial or code sample in creating a .exe for windows

263 byte By merlin_aa at 2007-11-27 7:55:45
Hi all,Can some kind soul guide me to a tutorial / materials / code sample in creating a .exe (for a java program) to run in windows ?My intention is to create a .exe such that when it is clicked, the java program runs.thanks a bundle.

session vs request

96 byte By padikkathavana at 2007-11-27 7:56:26
when do we use session scope , request scope ?can you pls. explain with an example

can any one give the difference

125 byte By Viplava at 2007-11-27 8:08:24
can any one give the differencebetween normal java class and java beanIs every java bean is a java class

How to access the selected file in your desktop

330 byte By jjmonzona at 2007-11-27 8:11:18
My project involves a Java program running in the background which is used to copy files that I have selected on the desktop or file explorer. I have a slight problem. Suppose i have a file selected on my desktop or on a a windows folder. Is there anyway that I could determine what that ...

LookAndFeel

335 byte By student@sunDNa at 2007-11-27 8:11:39
I have seen the tutorials for using Synth look and feel, but in any of the tutorial there is no description for how to apply synth lookAndFeel for a progressbar or scrollbar. It uses same image for background and foreground.Can anybody tell me how to apply synthLookAndFeel for a scrollbar?Thanx ...

different types

211 byte By rajitoora at 2007-11-27 8:12:31
hi everyoneim in a kind f situation where i want to pass object of ype my custom class Data in setter method. but in getter i need something of type List to be returned. how can i do this in a bean

Obtener la ruta de un archivo jar desde Java

854 byte By jed_ecuadora at 2007-11-27 8:19:46
Hola a todos.He buscado por toda la red y todav韆 no encuentro la forma de obtener la ruta de mi archivo jar desde java. Quiero hacer una aplicaci髇 portable que de tome como base la ubicaci髇 del archivo jar para poder acceder a otros archivos que se encuentran fuera del jar pero que est醤 en ...

trying to parse a file with SAX

1002 byte By November999a at 2007-11-27 8:27:06
Hi All,I have some code which takes a XML DTD and parses it, writing information to System.out. Or it's meant to - I cannot get the parser to see the DTD file.The code is: public static void main (String[] args) { try {Class loadedClass = Class.forName("com.ibm.xml.parser.SAXDriver");Parser ...

Private Variable

178 byte By Abhi_Upadhyaya at 2007-11-27 8:31:33
We make a private variable then public getter and setter. Why not just make variable public. Please think deeply dont go just for oops concept and acccessibility features,

create a save dialog box

261 byte By paul1430a at 2007-11-27 8:32:08
hi !i want to create a web page using jsp/struts which contains a picture & a save button. When i 'll click on the save button then a dialog box will appear & i can browse a location to save the image.I need help to create the application

Deleting a file..

641 byte By -Deba at 2007-11-27 8:45:17
I'm simply trying to delete a file using boolean success = file.delete();if (!success){System.out.println("Error deleting file.");}Sounds simple enough, except -- it isn't returning an accurate value.It returned false, and when I check the directory, the file had beendeleted.It does return ...

creating java editor

609 byte By nj_javaa at 2007-11-27 8:45:18
hi all i am creatin a small application which performs some type of functionallity as any java ide does but i have a problem in one area in my application when i create a demo.java file i compile it through runtime.exec("javac "+filepath)this creates class file now i want to run the applicaiton ...

New folder

483 byte By -Deba at 2007-11-27 8:45:19
When creating a new folder, which will be deleted with the Application exits.Is there a way to check to see if the OS/system the user is using will allow a new folder to be created. Security? Etc... I can add a check to see if the new folder was created, or failed to be created, however I ...

JTable and editable property on Java Desktop Application

302 byte By musa@oval.com.tra at 2007-11-27 8:49:25
Hi,I have created a project using Java Desktop Application in Netbeans 6.0. I have used a JTable object in this project. Even though I deactivate editable property (define "isCellEditable" method 'false'), when I load data in this object, editable property is still active. Please ...

LookAndFeel

189 byte By student@sunDNa at 2007-11-27 8:59:30
Hey I want to apply linux lookandfeel for my application.But I dont know how to apply linux LookAndFeel I mean name of methodI need help........Thanx in Advance.

Read/Write App Files Under Limited User Account

1261 byte By JimDVa at 2007-11-27 9:12:08
Hi All,My desktop app is intended for Windows only. I'm writing files to the hard disk to store app specific configuration.The applications main data source is a ZIp file that consists several XML files. The user can store this ZIP anywehre they like and the application will extract the ...