JDialog in Windows

338 byte By sunnyjaina at 2007-11-27 10:31:01
Hi I am poping up a JDialog from Frame object.In linux when i have not set the parent of this JDialog and modal false, then a new process ( or thread ) is shown on task bar.But in windows only one process , that is Frame is shown at task bar .How to solve this problem.thanks--sunny ...

JTable can't (apparently) have varying CellEditors in a column

140 byte By Prashant_SDNa at 2007-11-27 10:31:09
<p>JTable can't (apparently) have varying CellEditors in a column .</p><p>is there any alternative solution.</p><p>any thoughts!!!!!!!!</p>

JTable Diff

3743 byte By SharonPla at 2007-11-27 10:31:17
I have 2 Jtables on same JFrameand i woud like to paint the each Cell in the first Jtable if his matching Cell on the second JTable is diffarent (if both have same row name ie first column starting with A)any ideas on how to implement that?Thank youimport java.awt.*;import java.util.*;import ...

Add columns dynamically to a JTable

1146 byte By mmarassoa at 2007-11-27 10:31:22
Hi everybody! I know there's been a lot of discussion on this subject but the examples I found are yet a little complex for me and I couldn't make my program work as I expect. What I have is a JTable that uses a custom table model which extends form DefaultTableModel. This model has one ...

put an applet into a web page

2092 byte By ardmorea at 2007-11-27 10:31:36
Hi, my codes works well as an applet, but why no appearance in a html.<html><Japplet code = "Combox.class" archive="TestCell3.2.jar"width ="600" height = "450"></Japplet></html>One thing I must mention is I create my code that works both as an applet and as a stand-alone application.I ...

ChangingJtextfield border color

919 byte By MrSmyllea at 2007-11-27 10:31:38
Hello folks!!I'm trying to change the color with this method when a textfield is filled wrong: public void setErrorColor (final JComponent comp){SwingUtilities.invokeLater(new Runnable(){public void run(){comp.requestFocus();comp.setBorder( new LineBorder(Color.RED) );}});However, i have ...

Drag and drop Firefox issue

379 byte By MisterFlibblea at 2007-11-27 10:32:01
I've encountered a rather annoying problem with drag and drop. Firefox will always accept a drop of a custom component! For example run and drag and drop in firefox: http://java.sun.com/docs/books/tutorialJWS/uiswing/dnd/ex6/DragPictureDemo.jnlpDo you know anyway to prevent this (I know IE does not ...

java.lang.VerifyError(Eclipse vs Command Line)

3053 byte By dalchaua at 2007-11-27 10:32:30
Dear all,I'm a very new user of the java programming language. I'm experimenting with using Eclipse and Java commands built in to our University network. I've come up against a problem that I cannot resolve...In Eclipse (on Windows), i've written a class which takes routines from some External ...

Add Row From on JTable to Another

1587 byte By blackmagea at 2007-11-27 10:32:33
I'm using two JTable that use a defualt table model.My Code looks like thisJTable table;public void actionPerformed(ActionEvent e) {if(e.getSource().equals(searchButton)){//tablePanel.removeAll();DefaultTableModel model = new DefaultTableModel();JTable table2 = new JTable(model);// Create a couple ...

SGD With Active Directory

519 byte By JOlsona at 2007-11-27 10:32:50
This might seem like a silly question, but the documentation doesn't seem to indicate. If I want to use secure connections to a windows 2000 domain controller, I need to check the "Use Certificates" box.I'm following this procedure: ...

Animation problems

739 byte By cratnama at 2007-11-27 10:33:04
Hi,I'm trying to do visualization for an estimation algorithm in sensor networks.I did a model animation of how the visualization should look using power point .Now I want to implement the same design dynamically based on the input in the program as in powerpoint using SWING. Is it possible.?There ...

My child panels inherit their border width from their parent

8540 byte By Asbestosa at 2007-11-27 10:33:18
Hi all,I created a new Border (curved corners) using code that I found on these forums. Unfortunately, when I embed a child JPanel into a JPanel that is using this border, the child's border thickness becomes that of the parent's, even when the child's border thickness is explicitly set!I don't ...

Swings standalone to Applets

1326 byte By englewooda at 2007-11-27 10:33:34
I have a standalone swings application and i need to convert this into applets that can be executed on web browser. The main class in swings GUI extends JFrame and that depends on several other files in different packages.Basically, my GUI has nicely placed menus and buttons with icons on it and ...

How to increase or reduce the font size in JFRame Title?

2004 byte By sunnymanmana at 2007-11-27 10:33:35
Hi, Sir:How to increase or reduce the font size in JFRame Title?See code below:I hope to set String of "Borders" in JFrame frame = new JFrame("Borders");to any size I like, I use setFont etc, but not take effect,Can guru here help?Thanksimport java.awt.GridLayout;import javax.swing.JFrame;import ...

MouseDragged Flicker Image

779 byte By kerryblue19a at 2007-11-27 10:33:38
Hi, I'm trying to drag a JPanel containing 2D Graphics and I have used a mouseDragged listener. The image drags but the problem is is that it flickers inbetween two possible locations for some reason. Here is my code:public void mouseDragged(java.awt.event.MouseEvent ...

JTree: Nodes at same level placed on same row?

335 byte By hyperdragon5491a at 2007-11-27 10:33:47
Hi, I need to create some kind of custom JTree such that all nodes at the same depth in the tree will be displayed on the same row. I've been figuratively bashing my head against a wall over this for several hours now, so I was wondering if anyone had any suggestions of general strategies I could ...

JCheckBoxMenuItem & JMenuItem

525 byte By eddies1j2a at 2007-11-27 10:34:01
Hey everybodyFor my program I'm doing a JMenu and I already have that. I added a JCheckBoxMenuItem and a normal button (JMenuItem). What I want to do is the following: When I click the JMenuItem and the checkbox is not selected a certain function will be made but when the user clicks the JMenuItem ...

Showing components drawn outside JPanel boundary

661 byte By Russouea at 2007-11-27 10:34:04
Hello all,I need to draw some components in a JPanel. Usually, I need a JPanel which will have a height and width way larger than any screen can support. I thought if I add the JPanel in a JScrollPane the problem would be solved. User will scroll to view all the components. But it is not working. ...

how to export jtree into text with all the indents of the trees ?

547 byte By altojavaa at 2007-11-27 10:34:07
Hello, I have a Jtree that I need to export it into text. But I was wondering, is there a way to export only the expanded nodes with the indents that the tree has i.e: John MathewJohn SmithCarol JohnsonAl Bundy Mark ReedMonark Hertzetc..............................I was hoping to find a similar way ...

Bring JPanel to Front

309 byte By kerryblue19a at 2007-11-27 10:34:10
I'm dragging a JPanel around inside another JPanel with a bunch of other JPanels (confusing). And when I drag them around some go behind each other. I've seen other examples with JLayeredPane but it's not possible in this situation. Does anyone know of another way in which to do this? ...

Java 6 autodl install error

430 byte By sjbothaa at 2007-11-27 10:34:14
Getting this error when it tries to install:Unable to download http://java.sun.com/update/1.6.0/1.6.0_02-b05.xmlIt's trying to download beta 5?I downloaded the CAB file referenced in object codebase:https://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cabThe inf file in the CAB file ...

Cannot launch FocPro app from SGD Webtop

1307 byte By Alisamprasa at 2007-11-27 10:34:23
Dear forum users,My customer uses a FoxPro application for their IT heldesk. Basically they installed the application to their own PCs and able to launch the app.Behaviour of FoxPro IT Helpdesk app:- User login to windows Desktop.- User will double-click My Computer and check if the Shared Network ...

adding components to a JApplet using threads

2009 byte By skorulisa at 2007-11-27 10:34:28
I'm in the process of converting a game to run in a JApplet. The problem i'm running into at the moment is that when the game starts I spawn a thread to do all my processing in and want to change the currently displayed JPanel from that thread.Here is a simplified version of what i'm trying to ...

Accessing JLable within JLayerPane

1498 byte By Dino2526a at 2007-11-27 10:34:29
Hi, I am having problem dealing with JLabel object in JLayerPane so that i can restrict its movement. I have try to use board.getComponentAt() but it keep giving me error. Can anyone give me some advise? The code below is a part of 8x8 board. layeredPane = new ...

Filtering in JFileChooser

203 byte By egckhada at 2007-11-27 10:34:31
<p>HI,</p><p>I am using JFileChooser and I want to input something such as *abc* and</p><p>then press Open. It will help me to filter out the files.</p><p>How can I do that .</p><p>Thanks.</p><p>Ivan</p>

About ToolBar

4024 byte By youhaodiyia at 2007-11-27 10:34:35
I added two ToolBars in my program see below. It works fine until i move the toolbar. An exception was thrown:Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: cannot add to layout: constraints must be a GridBagConstraintat java.awt.GridBagLayout.addLayoutComponent(Unknown ...

Does Java have any compoent for displaying audio?

145 byte By youhaodiyia at 2007-11-27 10:34:36
<p>Does Java Swing have any compoent for displaying audio? It should contain play, pause, stop buttons, a process slider and a volume slider.</p>

ArrayIndexOutOfBoundsException: 0 >= 0

2384 byte By SUSHANT_Ja at 2007-11-27 10:34:47
Hi, AllI have developed a swing based application and somtimes while running the application Application gives Exception as .... -- Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0 >= 0at java.util.Vector.elementAt(Vector.java:427)at ...

Which LayoutManager for this topic

448 byte By schorschi6a at 2007-11-27 10:34:50
Hi there!I'm trying to arrange 3 JPanels in a JFrame like this:++-+| panel1| panel2|++-+||| panel3|||||+--+On a resize, I want to maintain the relative size of the single panels, e.g.:panel1.height = 1/4 of frame.heightpanel3.height = 3/4 of frame.heightand the same for the widths of panel1 and ...

trigger event with button

90 byte By shagya at 2007-11-27 10:35:08
<p>could anybody tell me if it is possible to trigger event of Jtextbox with a Jbutton</p>

need a JFrame with JApplet example

167 byte By lostonthebeacha at 2007-11-27 10:35:17
<p>is there an example of an applet or JApplet that opens a bunch of JFrames with menu and scroll bars and changes graphics on the JFrames based upon mouse events?</p>

Changing Panel view from JComboBox

3621 byte By RafalJa at 2007-11-27 10:35:47
Hi all. I hava a problem with my Gui. I have: 1 Frame with 2 panels (JPanel) on first JPanel I have JComboBox object and on second panel i want to have different objects for each JComboBox Item :(JSlider, JTable etc) and i dont know how to do this. I'm beginner in java My code that works bad ...

How to remove underlying JButton image?

722 byte By fdgfda at 2007-11-27 10:35:52
HiI have this code to place an image over the standard JButton. But if the image is smaller or transparent, the underlying standard image is still seen. Is it possible to remove this image and just have the background of the panel showing?[code]public class ImageButton extends JButton {public ...

disabling the windows xp start button,and disable ALT+TAB

291 byte By java_everywherea at 2007-11-27 10:36:02
<p>hi all, i am writing an internet cafe management system, and its required that clients do not access the start button, although it will be visible but will not respond to mouse clicks or keybord events.</p><p>And also how do i disable ALT+TAB when my program is running.</p><p>thanks.</p>

applet woes

4090 byte By dgrifa at 2007-11-27 10:36:07
I was hoping someone could help me out figure out whats wrong with my applet.. for some reason its not loading on everyone's computers that I've had test it so far, out of 5 people, it only works on 2 computers. I setup a fresh win2k virtual machine, with just the jdk installed and it ran ok ...

how to tell source of resizing

1484 byte By Developer_Named_Aarona at 2007-11-27 10:36:31
Hi all, I want to implement the following policy:1) if Java runtime resizes the window to fit GUI components in there, I want it to stay the size it is or larger (not shrink).2) if the GUI is resized by the user, allow the GUI to get larger or smaller depending on how the user resizes it.I can ...

How to get real size of the JLable with wrapped text

1029 byte By flexeda at 2007-11-27 10:36:32
Hello all,I have a JLable, which should display error message or some tips to the user. Text can have different length. Something like this:jlblText.setText("<html><body>Error. Please do this and that. </body></html>")view.pack();The lable is on the top of the JDialog.If user typed ...

Why I cannot Move my JLabel after I add SetToolTipText()?

8053 byte By sunnysunnygirla at 2007-11-27 10:36:36
Dear Friends:I met a tough problem that I debugged for few days but cannot solve it.after I add SetToolTipText I cannot Move my JLabel , what is wrong here?see code below, here label1 cannot move.If somebody can throw some lights, that will be wonderful,so far no progress.import java.awt.*;import ...

layout managers

166 byte By BitsLovera at 2007-11-27 10:36:55
<p>Is their any advantage of learning about the layout managers specially the complex one such GridBag, when we have so many GUI builders available.</p><p>Thanks.</p>

making seperate JFrames return objects

280 byte By tschnella at 2007-11-27 10:37:05
<p>I have a JFrame with a GUI, buttons etc. One of the buttons is supposed to bring up a seperate frame, do something, then return an object to the first frame (similar to how JFileChoosers work). I have no idea how to make new frames return something.</p><p>Thanks in advance</p>

Array of JPanel and Array of JTextField?

1179 byte By leonard_shelbya at 2007-11-27 10:37:11
Hi,I try to create array of jpanel and inizialize it in "for" , but when run it give me this error message:"Exception in thread "main" java.lang.NullPointerException"at the row: "panInsCantante.add(panInsNCC);"why?(ps. i tried in another code to create array of jtextfield and it give me same error ...

setBackgroud for JToggleButten does not work correctly

153 byte By screen_simua at 2007-11-27 10:37:33
<p>I am trying to setBackground for JToggleButton and it does not change background color unless I click it many times. Any idea what could be wrong?</p>

JTable column sizes

305 byte By hentchocana at 2007-11-27 10:37:34
iam developing an application using a JTable and i want to make the cell take the width of the text it contains , should i use a table cell renderer and set its size to the length of the text , will this work ,and how about the resizing mode of the JTable should i make it off ? Best ...

How to get Image from JPanel

249 byte By student@sunDNa at 2007-11-27 10:38:11
<p>How can I get the image from JPanel?</p><p>I have drawn an Image on JPanel and some rectangles on it, but I dont know how can I get that image back from that JPanel?</p><p>I mean how can I save that edited Image?</p><p>any idea?</p><p>plz....</p>

installing jre

118 byte By G4dg3ta at 2007-11-27 10:38:18
<p>cant get jre to install,keeps saying not enough drive space but iv got over 100 gig free any ideas how to fix ?</p>

java applets freeze with new java runtime environment 6 update 1 and 2

656 byte By jasonpeoria911a at 2007-11-27 10:38:46
Hi there, I have a strange problem. At work, I have 2 computers. Both are up to date with all security updates and IE updates as well as previous java versions. Directx and firefox/IE versions are up to date also. Anyways, on one computer, the newest java version works fine but on the other ...

getting the container/jpanel of an object

277 byte By hardcodera at 2007-11-27 10:39:04
<p>i have a jbutton that is in a jpanel.. that jpanel is another jpanel and that jpanel is in a container. right now i can get the button's panel if i pressed it.. i want to know on what container the button is if i pressed it (the main root container).. how do i do this?</p>

Servlet receiving UTF-16 parameter

1280 byte By jimmy83a at 2007-11-27 10:39:08
I am attempting to build a servlet to receive a parameter encoded in UTF-16. At this stage, I am able to receive and process UTF-8 parameters but not UTF-16. I believe this is due to the request.getParameter() method not finding the encoded parameter name. My servlet code ...

enter a under line to my list

157 byte By Gabia at 2007-11-27 10:39:21
<p>hi all,</p><p>i want to add to each cell in my jlist an under line?</p><p>for example:</p><p>each cell will contain ""</p><p>is it possible?</p><p>TIA</p>

JComboBox_Problem

264 byte By vasmhi_1981a at 2007-11-27 10:39:38
<p>Hi all,</p><p>I have a jCombobox ....when i have the list of items in that combobox </p><p>the items need not be editable ? how to achieve this ?</p><p>And background should also be in gray itslef ....can any body have idea on this ?</p><p>Thanks in advance</p>