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 ...
<p>JTable can't (apparently) have varying CellEditors in a column .</p><p>is there any alternative solution.</p><p>any thoughts!!!!!!!!</p>
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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: ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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? ...
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 ...
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 ...
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 ...
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 ...
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>
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 ...
<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>
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 ...
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 ...
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>
<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>
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 ...
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 ...
<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>
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 ...
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 ...
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 ...
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 ...
<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>
<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>
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 ...
<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>
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 ...
<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>
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>
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 ...
<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>
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 ...
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>
<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>