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. ...
Hi frenz .. i need to make a particular column in to set editable false in jtable how to do this.by vinod.
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
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
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! ...
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 ...
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 ...
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 ...
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
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
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?
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 ...
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 ...
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?
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 ...
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 ...
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 ...
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
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 ...
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. ...
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 ...
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 ...
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, ...
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 ...
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.
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 ...
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 ; ...
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. ...
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 ...
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
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 ...
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 ...
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, ...
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
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 ...
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 ?
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...