war file doesnt explode

734 byte By Aharona at 2007-11-27 9:13:03
HiI'm sorry I know that this is the .jar forum and not the .war forum but I couldn't find anything more suitable.I have written a java web app which I then exported into a .war file using eclipse. I have uploaded this file into my virtual server (at godaddy.com)into the 'webapps' directory. ...

how to set a particular column as editable false

120 byte By brainvinod@yahoo.co.ina at 2007-11-27 9:13:08
Hi frenz .. i need to make a particular column in to set editable false in jtable how to do this.by vinod.

plz aid me

218 byte By stalin_gnana@sun.coma at 2007-11-27 9:13:12
i have one doubt in JTable .(1)how to set JTable's row enable is true and JTable's cell editable or enable is false... if you know plz answer me......i am wating for replybyStalin.G

plz aid me

218 byte By stalin_gnana@sun.coma at 2007-11-27 9:13:15
i have one doubt in JTable .(1)how to set JTable's row enable is true and JTable's cell editable or enable is false... if you know plz answer me......i am wating for replybyStalin.G

how to create jar and execute the jar file for my give project stuture

1100 byte By prakash.nmsp@gmail.coma at 2007-11-27 9:13:20
Hi All,I got this error Exception in thread "main" java.lang.NoClassDefFoundError:so i think its better for me showing my project struture to u pepole .am Having my project in D:workspace>D:\workspace> com.repository.watchdog!!bin! !! !-com/repository/watchdog/*.class! !!!src! ...

how to request focus for Panel hiding behind another panel?

480 byte By vishal_vja at 2007-11-27 9:14:01
Hi guys,I have two panels(of different sizes) within a JFrame, i have one button (in smaller panel)that does some query in the back end & populates the results in another panel (bigger panel), now assuming that i am in smaller panel, how is that i can bring up the bigger panel that is ...

Opposite component in Input verifier

1220 byte By charithifa at 2007-11-27 9:14:03
Hi all,I have built a component with two TextFields. There are some validations involved with these text fields. 1. Each of these text fields have a min/max value and the value should be within the range given. For this validation i have used an InputVerifier. By the input verifier it validates ...

Problem with KeyListener

2376 byte By afuschettoa at 2007-11-27 9:14:10
I'm going to develop an application with a TabbedPane including some tabs; in each tab I'd like to handle different shortcuts.Each tab contains some components (Button, TextArea, ecc) which may be focused.I added a KeyListener on each tab but when a component is focused it retains the event ...

JcheckBOx in Jtable

73 byte By socmaga at 2007-11-27 9:14:12
How to add JCheckbox on Jtable in swing and how to get value of it

text box to enter the IP address

257 byte By AlienXa at 2007-11-27 9:15:09
hi,Can I make an text box to enter the IP address which is better if I can make it like in windows. i.e - separated with dots for each 3 digits. Hope you get the idea. its like the one which is in windows Thank you Regards

Installing a JAR on windows

229 byte By ElCida at 2007-11-27 9:15:16
I have my jar file that requires 3 files to be placed in the bin and lib of the JRE folder.What are some options to do this? And is there a way to do like jre* so that it will place the files in all versions of JRE?

JTabbedPane - stateChanged

2708 byte By kulkuria at 2007-11-27 9:15:17
My text field components change the underlying data when the focus is lost. When I click on a different tab in the JTabbedPane while editing a field, at the time the ChangeListener runs, the focus is not lost on the former JTextField, so data for the input field is not yet updated, but I rely ...

from-to date java component

319 byte By bif_fa at 2007-11-27 9:15:22
hey alli am trying to query a database from my java software with certain date constraints....can i find online a ready made component that have this "from-to" component where i put a certain date and it make sure that the year is leap and all those stuffplease help.thanks in ...

jTextField

203 byte By FuRK@Na at 2007-11-27 9:15:23
Hi,I have a problem that when six characters are typed in a jTextField, i want to delete typed text in it.Simply, my problem is to delete text typed in jTextField. How can i do this?

One JFrame At A Time

466 byte By java4life87a at 2007-11-27 9:15:44
I have a JFrame made up of various boxes When the user clicks on a box, a mini-JFrame pops up. So every time the user clicks on a box a mini-JFrame will appear. Is it possible to make sure that only one mini-JFrame appears at a time?So what I pterry much am asking. if a mini-JFrame is already ...

ImageIcon

1102 byte By rj123a at 2007-11-27 9:15:46
hi, my program has a bug.private javax.swing.JLabel imagem;(..)imagem.setIcon(new ImageIcon("imagem.png"));(...)//this function update the imageIconpublic void actualizarImg(){imagem.setIcon(new ImageIcon("imagem.png"));//imagem.setIcon(new ImageIcon("imagem0.png"));}Now, the problem is: The ...

Browser 'disappears' while running Java applet under Windows Vista

663 byte By GeoffTitmussa at 2007-11-27 9:15:52
I have a big signed java applet that does dtp / web pages. It runs well under Windows XP (and iMac).Having upgraded to Windows Vista, the applet does most things fine, but when navigating to find pictures to import from the local filing system, the browser just disappears. No error message, no ...

simple JFormatted Feild example

183 byte By zerocooola at 2007-11-27 9:16:31
Hello every bodyi need a very simple JFormatted Feild exapmle which also check the that the data input is valid or not. ill be very thankful for the help.zerocool

path of class in Applet

521 byte By renga_muralia at 2007-11-27 9:16:36
Sir,i want to askshould i put the class file for this Applet in the same folder of the HTML or JSP pageor it is possible to put it in any place and write the pathwhen i did that the Applet could not see this class file how to change the path of the class example i have an HTML page inside i ...

LISTING SWING COMPONENTS FROM A DIFFERENT APPLICATION

521 byte By Guichia at 2007-11-27 9:17:01
Hello,I am developing an application where I need to get a second application already running (a third party application) and list its components. If the application is done with AWT JNI could can be used, but obviously, since SWING is a lightweight component, won抰 be listed using this method. ...

creating jTbale that reads a text file

3097 byte By ElishaWa at 2007-11-27 9:17:06
hey, i want to make a Jtable out of a text file such that if there are blank spaces it should enter the text into a new column and if there is a new line then it should be entered into a new row. ...like if there is a text file such as 1 2 3 4 5 6 then it should be entered into a JTable of 2 ...

create a simple GUI to display array objects

16206 byte By sammyboy78a at 2007-11-27 9:17:25
I need to add a GUI to my current program that displays data from an array in a GUI frame. Nothing fancy, just a frame with all the data displayed. The program in its current state displays the informationin console window. Can anyone give me a hint on where to begin? I haven't used swing or ...

JTable tooltip issues

1235 byte By cochranjda at 2007-11-27 9:17:29
I have a JTable in which each cell consists of a custom renderer. Whenthe user has their mouse over a certain column, I'd like for them to see my tooltip. I can implement all of this just fine, but here is my issue --when the user moves from one cell to the other, the tooltip never goes away, ...

Subclass of abstract JDialog -> NullPointerException

11083 byte By BinaryDigita at 2007-11-27 9:17:32
Hello!I wanted to make an abstract subclass of JDialog that will handle a few things that are common to several of the dialogs in my program. Things like creating and setting up the Ok/Cancel buttons, handling the case where the user closes the dialog with the red X as though they clicked ...

How to know the orientation of a character?

256 byte By eatinga at 2007-11-27 9:17:48
Hi, it's a bidi problem.Given a character or code point, how could I know the orientation (right to left for Hebrew Arabic, or left to right for English) of that character or code point?Does Java provide any API to that?Thanks.

Jars and .class files - security of the source code

1107 byte By dayrinnia at 2007-11-27 9:17:50
Hi,I have an app that is in a jar file with the .class files (so no source code).I'm wondering how difficult it is to attain the source code from these .class files in my jar? Looking through the contents of the .class files it seems there is a large amount of readable text. For example I see ...

Bind Data to JTable

4944 byte By Bugayaa at 2007-11-27 9:17:57
I'm using NetBeans 5.5 :How could I bind data from table from MS Access DB into JTable ?!!N.P. : I've made an application which reads data from the DB & use the following line of code to show the data .System.out.append(rs.getString("Blob")Now I want to display the data using some GUI ; ...

How to wrap the text in a jTextArea

819 byte By Shahna at 2007-11-27 9:18:01
Hello all, I am currently developing a simple simulation program for our scientific research group. My boss asked me to employ the program with a GUI. However, I am new to Java Swing. It is nice to have you guys that may provide a helping hand to my problem. My problem is with the jTextArea. ...

Guide me plz

347 byte By stalin_gnana@sun.coma at 2007-11-27 9:18:06
i am using JTable component in my application,in which i have one doubt..(1)how to release the cursur point of JTable's cell after editing the value of JTable's cell (2)how to use the JScrollPane in JTable and to intialize the scroller at starting position of JTable's row in both ...

how do i set Shortcut key for activating some operation for JButton

238 byte By stalin_gnana@sun.coma at 2007-11-27 9:18:07
while using the JButton component,one question is arising in my mind that is(1)how to set Shortcut key instead of using JButton actionPerformed event.I need a shortcut key for the similar operation has to be performed

Applying the Shortcut key Tab to JTextField to focuse one by one

347 byte By stalin_gnana@sun.coma at 2007-11-27 9:18:18
how are we Focusing the JTextField one by one by using the Shortcut Key Tab,as per our specified ordering of JTextFields. In my application,i used the Shortcut key Tab for JTextField by focusing the JTextFields for each JTextField key event...but i could not get the result successfully.Do u ...

help: JPanel/JFrame display complexities, wrong size

5930 byte By gildedwinda at 2007-11-27 9:18:19
I am trying to make a simple game of worms.I wan't to draw a rectangle in the center of the window where in the middle the game is played and on the outside score, lives and other such things are displayed. The problem is the rectangle won't draw properly because the window is the wrong size ...

JTextArea and JScrollPane problem

3628 byte By Pawel34a at 2007-11-27 9:18:23
Hi I have a problem adding scrolls to my JTextField. I've tried different ways but nothing seems to work. this is my code:import java.awt.*;import java.awt.event.*;import java.applet.*;import javax.swing.*;import java.util.*; public class Aplet extends JApplet implements KeyListener, ...

get treenode

263 byte By sur321a at 2007-11-27 9:18:45
Hi all,how to get Treenode from Treepath..I useTreePath path = getSelectionPath();DefaultMutableTreeNode node = (DefaultMutableTreeNode)(path. getLastPathComponent());Its giving ClassCastException Thanks,sur

Please solve this : java.awt.Headless Exception

1067 byte By muthu2007a at 2007-11-27 9:18:46
Hi GuysWhen i call my program from servlet to bean (Swing component) then this exception will be thrown [It was not occur in local but occured only in onLine)Please solve the problemPlease i am in a trouble so, pls solve and help meand the exception is java.awt.HeadlessException: No X11 DISPLAY ...

How to switch tab by click a JButton

144 byte By jiong_ronga at 2007-11-27 9:18:49
A JTabbedPane has 2 tab, name t1, t2, where t1 has a component of JButton. How to switch tab from t1 to t2 when click the t1's Jbutton ?

Problems With Scroll

2674 byte By blackmagea at 2007-11-27 9:19:05
I have this problem with JScroll where no matter how I change the sizes, the scroll bar doesn't show up or it doesn't scroll when panels are added to the main panel. Btw, the mainPanel adds other panels too it, and when the amount of panels gets out of bounds, its suppose to scroll the ...

JTabbedPane problem

2885 byte By jiong_ronga at 2007-11-27 9:19:10
This is the example of coding:** Tabmain.java **============================================import java.awt.*;import java.awt.event.*;import java.awt.event.WindowAdapter;import java.awt.event.WindowEvent;import javax.swing.*;public class Tabmain extends JFrame{JTabbedPane tab;public ...

Memory management HashMap versus ArrayList.

927 byte By monaPillaia at 2007-11-27 9:19:44
Hopefully this is the right place to post this!Okay, here is my question. I have been trying to research on the memory hit an application is going to incur if it uses a HashMap instead of an ArrayList and I have not been able to find a satisfactory answer. Suppose I have say 10,000 objects and ...

Swing freezing (not a SwingWorker problem)

1407 byte By Edilmar_Alvesa at 2007-11-27 9:19:56
Hi,I have a JDK6 Swing app. It runs in a LAN with WinXP JRE clients and, for remove access, there is a Windows Terminal Server. Then, there are WinXP local LAN clients and WTS 2003 remote clients. With Firebird RDBMS.Sometimes, in different JInternalFrames or JFrames or JDialogs, not always the ...

Cr@ppy grey/gray background

264 byte By BigBadBurrowa at 2007-11-27 9:19:59
I'm fed up of the default background colour that Java uses (a boring grey/gray colour), is there any gloabl setting I can use to change it (e.g. to yellow?), without needing to set the colour on eeeevery single GUI object in my app?Thanks,BBB

Problems running installer for JRE

477 byte By Jayinatera at 2007-11-27 9:20:13
hello,i tried to run the online installer for the JRE, and it waited for 5 seconds, and displayed a message:"Please refresh the page to restart installation"I tried refreshing the page and trying to restart the installation, but the message keeps repeating every time i try to install JRE. It's ...

how to connect with a Real time system

640 byte By vsdbvjsdka at 2007-11-27 9:20:27
hiiActually i have a html front page which consist of differnt currency values and also it is connect with a sql database,so that i can add and delete the currecies according to my wish.Now i want to connect this whole thing with an xyz Website (a website which consist of differnt values of ...

how to hieghlight an row on its value change

308 byte By jamesgoslina at 2007-11-27 9:20:38
hi all,i am making an application in which the rows of jtable are getting updated from live data coming from forex market my problem is that i wanst to make the row highlight as soon as the data changes and goes back to normal condition after few minutes plz sujjest me.thanks in ...

Desperate help needed with writing files

448 byte By Chrisdigitya at 2007-11-27 9:21:03
I need to know how i can write files with an applet to a directory so that i can retrieve the files for later use. I need to know how to do this step by step as i am a beginner. i've tried looking for tutorials and i just can't seem to get it working. can somebody PLEASE provide me with some ...

Scaled component repaint problem

6665 byte By Numaina at 2007-11-27 9:21:08
Hi, the posted (runnable) code below shows the effect I am talking about.I have a custom component with overridden paint method to scale its content.A thread regularly checks some data and adjusts the visibility of some of the children placed in this component. After this update process it ...

Double Click Speed

450 byte By James_Vagabonda at 2007-11-27 9:21:32
On a Windows platform, I can configure the mouse's "double click speed" through the Control Panel. On other platforms I can imagine that there are similar means to configure the double click speed centrally. How can I access this parameter from my Java application? My guess is that this ...

JRE 1.6 won't install on Solaris 10 i586

444 byte By forgeuka at 2007-11-27 9:21:35
Out of all the operating systems I've installed JRE 1.6 onto recently, Solaris 10 seems the hardest...which is quite funny I guess.So, I'm trying to install 1.6 onto the i586 version of solaris, installing seems about the same as Linux, I agree to the licence, it installs all the files and ...

Automatically focus JInternalFrame when starting the application...

396 byte By Jacklera at 2007-11-27 9:21:36
Hi,I wonder why my JInternalFrame is not selected (focused) when I start the application - in NetBeans GUI editor I have set the following properties to make my JInternalFrame automatically selected when the app starts:o enabledo selectedo visibleCan anyone tell me how to make my JInternalFrame ...

JTable: calculate result from 2 cells and put it in another cell

1183 byte By xpantaa at 2007-11-27 9:21:58
hi,I have implemented this method in my JTable variant:public void tableChanged(TableModelEvent e) {int column = e.getColumn();DefaultTableModel model = (DefaultTableModel)e.getSource();if (model.getRowCount() > 0 && column > 0){double pos = (Double)model.getValueAt(1, ...