I need some straight thinking here.I would like to add the TableSorter to a customised JTable (MyJTable).MyJTable extends JTable and uses a customsised Model (MyJTableModel) which extends DefaultTableModel.Both MyJTable and MyJTableModel are established components which work fine together and ...
Comments (17) | Promote | Bookmark
Chekong a JCheckBox in a JPopupMenuWed, 14 Nov 2007 12:39:00 GMTI added four JCheckBoxes to my JPopupMenu.before popping up I want to Check/ Uncheck these components.How can I do this?...
Comments (7) | Promote | Bookmark
JList Issue!Tue, 25 Sep 2007 07:37:00 GMTProblem: JList doesn't display all items (javax.swing.ImageIcon), only several.Background: This is part of a program that animates sprites. [1] There is one pane(w/ javax.swing.JLable) that handles animation (works fine by the way) [2] and a JList that displays the current sequence being ...
Comments (6) | Promote | Bookmark
java Swing to html converterThu, 15 Nov 2007 03:50:00 GMTHi All,I have a stand alone java swing application running successfully on my system.Now what is want to do is to run it on server.So i just want to convert my swing window to html page so that i can easily put it on my serverany ideathanks,prashant ...
Comments (5) | Promote | Bookmark
can i use swings in servletWed, 14 Nov 2007 15:35:00 GMTplz tell me if yes how it is posible..?...
Comments (4) | Promote | Bookmark
Problem with displaying the process of a time-consuming task in a JDialogTue, 25 Sep 2007 05:45:00 GMTUsing a JDialog to displaying the processing information of a time-consuming task, although I use a thread to execute the task, but the information can not be displayed in the JDialog. The following is the code:import javax.swing.*;import javax.swing.border.*;import javax.swing.event.*;import ...
Comments (4) | Promote | Bookmark
hiding/showing JFramesSun, 23 Sep 2007 08:37:00 GMThi,anyone know a good method of hiding and showing JFrames,I need to hide Frame a while I open Frame b, then when I close Frame b, I want to show Frame a again. I dont want to be initialising new instances everytime i want to show Frame a again, cheersConor...
Comments (3) | Promote | Bookmark
JTree again again - but then not quite...Mon, 24 Sep 2007 06:30:00 GMTHelloI am puzzeling whit a very annoying problem.Simplified, i have a JSplitPane which contain a JTree and a JTabbedPane.I create my tree like this...:String cNodeText = "Node";DefaultMutableTreenode cNode = new DefaultMutabletreenode(cnodeText);DefaultTreeModel cModel = new ...
Comments (3) | Promote | Bookmark
My program should notice the user about some eventWed, 07 May 2008 13:05:00 GMTHiRecently I files this question in another group, but there is not muchtraffic in that group so now I'm trying here:Any ideas as to how my program can notice the user when some event happens?The user should be noticed even if other applications are in the foreground.I see three trivial met...
Comments (3) | Promote | Bookmark
Displaying Frame/Dialog above a modal DialogSat, 22 Sep 2007 16:32:00 GMTHi,I'm creating an assistive application (helper) and I'm facing a problem.1) I start an application (userapp)2) my helper gets started by the accessibility hook (in accessibility.properties)3) both frames are displayed4) if the userapp opens a modal dialog, the helper cannot get focusedI ...
Comments (3) | Promote | Bookmark
how to keep a IconImage on TitleBar of JDialogWed, 14 Nov 2007 18:18:00 GMTHi,I need to a keep a IconImage on TitleBar of JDialog similar to keep a IconImage on the JFrame by the following method,myFrame.setIconImage(frameIcon.getImage());...
Comments (2) | Promote | Bookmark
How to avoid resizes of a frame.Wed, 19 Sep 2007 02:45:00 GMTHello all.I'd like to know how to set a Frame created window minimum size. I mean may I avoid user resizing a window?Thank you. ...
Comments (2) | Promote | Bookmark
PROBLEMSat, 26 Apr 2008 16:19:00 GMTHIhow i add JScrollPane in panelActully i m using panel as canves and i wont to add verticall scrollbar...
Comments (2) | Promote | Bookmark
JButton Multi-dimensional Array?Mon, 24 Sep 2007 20:27:00 GMTHi there. I have been playing around with Swing for a coursework I have to hand in. I've decided to make a board game (I was thinking chess) for it.I thought the easiest way of creating the board would be for each square on it to be a button and then I can put a picture on top of the button to ...
Comments (2) | Promote | Bookmark
problem with validation.Mon, 24 Sep 2007 05:38:00 GMThi all.im trying to move jbuttons with a thread, heres the relevent code:public void run(){int ypos;while (m_goMonkeyGO){for (int i = m_whereToStart; i < 5; i++){System.out.println(i);ypos = ((javax.swing.JButton)m_menuElements.get(i)).getY() + ...
Comments (2) | Promote | Bookmark
java.awt.robot helpWed, 19 Sep 2007 13:39:00 GMTHi, I am trying to do some automated testing using java.awt.robot. My problem is I cannot do automation in the internal frames. I have two java programs. One is the main program which creates the main frame, listens for action and does the automation. The other program is to create the internal ...
Comments (2) | Promote | Bookmark
jar files for swing appSun, 23 Sep 2007 22:33:00 GMThidue to the processing and size of my app i need to run the class with a larger heapso java myclass -Xmx128m etchow do i do this when packaging in a jar? how do i pass that value in the myclass.class notation?Many thanks...
Comments (2) | Promote | Bookmark
JList & value changeThu, 15 Nov 2007 06:39:00 GMTHello,I have 2 jlist in a jpanel. In my value change method for jlist1, when I select an item in jlist1 I would also select the same item in jlist2 if it exists. Jlist2's value method also does the same. However, when I do a setSelectedValue in either jlist1 or jlist2 the other jlist value ...
Comments (1) | Promote | Bookmark
MVC architecture - how it can be applied to swingsSun, 23 Sep 2007 19:30:00 GMThiI have created a program that gets data from an MS access database and displays it in Swings JFrame, with view, next, previous buttions to traverse through recordsI want to write my program in the MVC architecture model. Though i have read details about it, i am unable to apply it on new ...
Comments (1) | Promote | Bookmark
How to add a jCheckBox into a jTable ?Tue, 25 Sep 2007 01:17:00 GMTDoes any one know how to add a jCheckBox for a particular row and particular column of a jTable ?...
Comments (1) | Promote | Bookmark
Dynamic size JDialog centeringMon, 24 Sep 2007 06:32:00 GMTI have a extended JDialog, for which its size (width/height) are determined by its components, which are dynamic.With this in mind how is it possible to display the dialog centered over it's parent JFrame?Thanks in advance...
Comments (1) | Promote | Bookmark
selecting all files from a directory in a JFileChooserSun, 23 Sep 2007 12:35:00 GMTHello all...i m trying to make an application in which i simply print all the files in a directory and their path on clicking and selecting the directory or by pressing the open button of the JFileChooser.Any help would be highly appreciated.Thanx.Salman...
Comments (1) | Promote | Bookmark
ArrayIndexOutOfBoundThu, 15 Nov 2007 08:40:00 GMTHi,I am running my java code then its giving error " java.lang.ArrayIndexOutOfBoundsException: 6".................can some one help me to solve this problem.package Chemplace1;public class Chemplace1 {private static final float Pwf = 1000;private static final float Pi = 500;private static final ...
Comments (1) | Promote | Bookmark
Passing parameter between jpanel & jframeTue, 25 Sep 2007 09:47:00 GMTHi guys,First time posting, so please be nice! :pBasically, the problem i'm having:I have created a JFrame class, which adds some JPanels to itself to start with (basic layout stuff).This JFrame is created and instantiated in main.java, and just displays the basic stuff that i've added.On the ...
Comments (1) | Promote | Bookmark
Compile or Container problem?Mon, 24 Sep 2007 08:42:00 GMTI have a JPanel in a JInternalFrame from which I am launching a JDialog. The calling code from the JPanel class is the following:void jBtnAddProcess_actionPerformed(ActionEvent e){ProProperties newProc = new ProProperties(procBuild,constructs,this); //this here refers to the JPanel}In the ...
Comments (1) | Promote | Bookmark
Getting JTextPane's Document's content in reasonable waySun, 23 Sep 2007 10:49:00 GMTI have JTextPane, which does the following:1) changes style of text (bold, italic, underlined, possibly font size and family, but restricted to few categories)2) inserts my custom component which renders image (let's say something like JLabel with Icon), again restricted to few images.I need ...
Comments (1) | Promote | Bookmark
UI gets frozen when accessed 2nd time without closing browserTue, 25 Sep 2007 02:32:00 GMTI have written an applet using java swing. It works fine for the first time.When I close that applet without closing my browser for the second time, the applet gets loaded, but I can not type in the textbox or even can not use my mouse. In java console window it shows null pointer assignment ...
Comments (0) | Promote | Bookmark
problem in rotating & moving image at same time(JAVA)Tue, 08 Jun 2010 08:41:00 GMTHello every one im making a car game in which you have upper view problem im facing is that i cannot move and rotate the car(image) at the same time means if i press up and right arrow key at the same time i wont rotate and move which i want it to it just moves forward or rotate Any one who know...
Comments (0) | Promote | Bookmark
Help Array & JTable! Please!Wed, 30 Apr 2008 14:10:00 GMTHello Everybody!I need a help about Array and JTable, could somebody help me?I have some problems with the AbstractModel and the array!The file I want to parse is simple, because I want to copy theintegersinside my table:10 //this number is the dimension of the table = 10x101 1 1 1 1 1 1 1 1 11...
Comments (0) | Promote | Bookmark
Input data where cursor staySun, 23 Sep 2007 15:24:00 GMTI need to write application which read data from the card and input this data where the cursor is. si this program will act as input device.This application will apply to all application which are running while this application is running. So how can talk with windos to do so. My all input to ...
I have written an applet using java swing. It works fine for the first time.When I close that applet without closing my browser for the second time, the applet gets loaded, but I can not type in the textbox or even can not use my mouse. In java console window it shows null pointer assignment ...
Hello every one im making a car game in which you have upper view problem im facing is that i cannot move and rotate the car(image) at the same time means if i press up and right arrow key at the same time i wont rotate and move which i want it to it just moves forward or rotate Any one who know...
Hello Everybody!I need a help about Array and JTable, could somebody help me?I have some problems with the AbstractModel and the array!The file I want to parse is simple, because I want to copy theintegersinside my table:10 //this number is the dimension of the table = 10x101 1 1 1 1 1 1 1 1 11...
I need to write application which read data from the card and input this data where the cursor is. si this program will act as input device.This application will apply to all application which are running while this application is running. So how can talk with windos to do so. My all input to ...
Does any one know how to add a jCheckBox for a particular row and particular column of a jTable ?...
I have a extended JDialog, for which its size (width/height) are determined by its components, which are dynamic.With this in mind how is it possible to display the dialog centered over it's parent JFrame?Thanks in advance...
Hello all...i m trying to make an application in which i simply print all the files in a directory and their path on clicking and selecting the directory or by pressing the open button of the JFileChooser.Any help would be highly appreciated.Thanx.Salman...
Hi,I am running my java code then its giving error " java.lang.ArrayIndexOutOfBoundsException: 6".................can some one help me to solve this problem.package Chemplace1;public class Chemplace1 {private static final float Pwf = 1000;private static final float Pi = 500;private static final ...
Hi guys,First time posting, so please be nice! :pBasically, the problem i'm having:I have created a JFrame class, which adds some JPanels to itself to start with (basic layout stuff).This JFrame is created and instantiated in main.java, and just displays the basic stuff that i've added.On the ...
I have a JPanel in a JInternalFrame from which I am launching a JDialog. The calling code from the JPanel class is the following:void jBtnAddProcess_actionPerformed(ActionEvent e){ProProperties newProc = new ProProperties(procBuild,constructs,this); //this here refers to the JPanel}In the ...