To All Top Java Programmers !

239 byte By J_Flasha at 2007-9-30 0:51:21
Hello Experts;I'm giving enough points to any one who can answer my problem in this link : http://forum.java.sun.com/thread.jsp?forum=422&thread=494280Hoping to hear from you guys . . .Friend : Javatm

Guidance needed

888 byte By RoustNissena at 2007-9-30 0:51:30
Hi,I have been working on an application for the last month but I齧 stuck and need some pointers here.I want to build a IDE for Coldfusion and I got a xml file containing test tags, their attributes, type and stuff like that, and by using the xpathapi I can access these tags and attributes just ...

Swing Icons

263 byte By bmichottea at 2007-9-30 0:51:37
Hello,in the book Java Look and Feel Design Guidelines, there's an iconset (page 19 and next) with icons representing jfc components.Are those icons available somewhere ? I developp an gui "wysiwyg" builder and want to use them.Thanks

Modal dialogs and custom cursors

3652 byte By AndyJoela at 2007-9-30 0:52:44
I have a large application window with its own custom cursor. If I open up a dialog box, I can get the dialog to use the same cursor. However, if the dialog is modal, the cursor reverts to the normal windows cursor when it is outside the dialog box, but inside the application window.Is there ...

StateInvariantError on Linux but not XP

3192 byte By mhulse2a at 2007-9-30 0:53:26
Hi,I am using java version "1.4.2_03"Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode) on both RedHat Linux 9.0 and Windows XP Professional. When I run my app on Linux I get the error below and do not get the error ...

Scrollable JList with custom Renderer

379 byte By sackinga at 2007-9-30 0:53:41
Hello thereI'm trying to create a scrollable JList that will hold a list strings seperated by tabs.I've created a custom renderer extending JTextPane that does the tab bit fine and everything works except there is no scrolling. Then when I add in the JScrollPane the list no longer gets ...

how can i prevent a JFrame from moving ?

220 byte By marsfaba at 2007-9-30 0:53:57
All is in the subject :)I'm trying to prevent a JFrame from being dragged, and keep the titlebar of course.I did all i could but didnt suceed.Can anyone here help me ?thanks.fm.

Background in JToolBar

181 byte By hkurta at 2007-9-30 0:53:59
Hi, people!I need help.If there is a way to set background IMAGE (not just a color!) to JToolBar?Or I just have to emulate JToolBar? :(Thank you..

JTextPane still messes up the layout

2177 byte By d.busa at 2007-9-30 0:54:38
hi experts,whenever i use theHTMLDocument.setParagraphAttributes(intFrom, intLengh, mySimpleAttributeSet, true)and press the return key afterwards to insert a linebreak, the whole layout jumps apart. ( the first part of the line stays where it is, but the secont part gets aligned in the center, ...

changing background colour of JFrame

422 byte By simbra1a at 2007-9-30 0:54:51
hi, i am having problems in setting the background colour of a JFrame. does any1 have any suggestions.below is the code of how i have TRIED to add a colour to JFrame. setTitle("Card Game");setBackground(new java.awt.Color(255, 255, 255));addWindowListener(new java.awt.event.WindowAdapter() ...

Putting null into ComboBox with ListCellRenderer

1824 byte By CraftyCockneya at 2007-9-30 0:55:03
I can create a JComboBox with Vector of data that includes a null entry in it no problem, the null entry is displayed as an empty choice amongst the choices available from the drop-down box. Unfortunately, for reasons I won't go into (this is part of a larger application) I cannot put a null ...

J Scroll Panel

421 byte By peter_dublina at 2007-9-30 0:55:05
hi,i've just got a little chat area, which is a JText area..and the viewport is viewing it, but i need to set the viewport to the latest text added to the text area, or else the user will have to keep scrolling down to see new text.outputPort.setViewPosition(new Point(0,0));was trying to use ...

GlassPane / Wait Cursor the size my JPanel

291 byte By cmpalmera at 2007-9-30 0:55:14
I would like to put a GlassPane the size of my JPanel and right over it so I can consume mouse events as well as display a wait cursor when needed. I know how to put it over my whole application however I just need it over one Panel. Any ideas anyone?Thanks,Chris

Jtable not refreshing when adding a new row

11709 byte By ebraun123a at 2007-9-30 0:55:15
Hi All!I am working with a JTable and I am trying to add a new row. I am able to successfully add a new element to the data vector, but the JTable will not refresh to reflect the change. I have tried several of the FIRE events, but not having any luck. Here is my code. Thanks in ...

drawing transparent rectangle is slow

316 byte By codecraiga at 2007-9-30 0:55:56
I am allowing the user to use their mouse to draw a semi-transparent rectangle on a panel.....but it seems a little sluggish...for example, the user can move their mouse a few pixels ahead of the rectangle as its being drawn... any ideas on how to speed this up or prevent it from being ...

Problem when adding a JTable to a Panel with BoxLayout

1344 byte By rhodyfana at 2007-9-30 0:55:57
I'm adding a JLabel and a JTable to a Panel with BoxLayout Y-AXIS.....I want them to line up one above the other and both of them hugging the left side of the panel.....it works fine with two labels but when I add the table then the label keeps showing up in the center of the panel above the ...

JToolbar menu item?

221 byte By keplingea at 2007-9-30 0:56:00
Hi -Is there a widget available that is like the 'New' toolbar item in the Outlook menubar? It has a button with a separate arrow button that drops down a menu type list when clicked?Thanks,K

font color

80 byte By peter_dublina at 2007-9-30 0:56:20
how do i set the font color of a single word in a Jtext areathanks

Unicode Vietnamese

93 byte By Pmaska at 2007-9-30 0:56:32
How i can switch the normal mode to UTF8 to create vietnamese interface in my program?

ugh scrollbars

1018 byte By s_O_sa at 2007-9-30 0:56:41
I'm trying to add JFrame to JScrollPane as shown below the frame appears as does the Jlabel with the image in it but for some reason the Scrollbars are not appearing can anybody help? thanks...i am also really trying to add scrollbars to jlabel not a frame so is there a way to do that like do ...

JInternalFrame Bug (?)

445 byte By jpw1981a at 2007-9-30 0:57:11
I don't know if this is a bug or what. I have a JInternalFrame and I have its UI set to a custom UI so that I can use my own icons for the button. The problem is that the my icons are not used until I minimize the frame and restore it. When I maximize the frame, the icons are reset to the ...

cell editor click to HTTP

456 byte By tohuyquynha at 2007-9-30 0:57:48
Hi!I would like some cell in my JTable when clicked will open a new website. I know that I should do something with AbstractCellEditor but there are few question I am not sure of answer. First of all, my normal JTable, are all cell is textfield so basically it is default case of ...

Using ShowDocument in applets stop method

593 byte By anupamsena at 2007-9-30 0:58:00
Hi,I was using appletContext's showDocument() method to move the user to a URL from the Stop method of an applet. But it doesnt work. the code is as follows:public void stop() {try {URL appletURL = new URL(" http://www.mail.yahoo.com");getAppletContext().showDocument(appletURL);return;} ...

JTable: Highlighting multiple rows

258 byte By nkhan00a at 2007-9-30 0:58:16
Hello,I have a simple problem: I want to highlight rows 2,4 and 8 of a JTable using the colors blue, red and green respectively. (JTable is being used as a spreadsheet)How do I do this? Can someone please help.Thanks,Nadeem

Event of JFileChooser

738 byte By galitsa at 2007-9-30 0:58:21
hi,i create a JFilChooser but i dont know how to handle with the eventcan someone tell me why the "open" button is not working? JFileChooser fc=new JFileChooser(); int returnVal=fc.showOpenDialog(null); fc.setFileSelectionMode(JFileChooser.FILES_ONLY); fc.addActionListener(new ...

Source Code Viewer with Syntax Highlighting (none editable)

621 byte By s3nghlya at 2007-9-30 0:58:22
Hi there,Im looking into making a source code viewer with syntax highlighting as part of a project that I am working with. I've searched the forum but many of the solutions are "over kill" as they are more editor based (i.e. source code will be highlighted as you type in a relevent TextPane ...

swing book?

669 byte By houslaya at 2007-9-30 0:58:31
Hey guys, I was wondering if anyone could advise on what is the 'best' book to use for Swing.. I've been programming for a few years, although not too heavily, and I've used Swing a decent amount but I reckon it's time for me to get a book and start to learn it properly! To be honest, I ...

ALT TAG in JEditorPane

222 byte By tlloretia at 2007-9-30 0:58:39
Hi Everybody!,I'm using a JEditorpane to display some images but ALT tag doesn't work and no tooltip appears when the mouse is over the photo ... Do you know what happens?Thank you very much !

CHECKBOX in JEditorPane

169 byte By tlloretia at 2007-9-30 0:58:41
Hi!I'd like to display a list with checkboxes using a JEditorPane to select the items and delete them,Can you help me?Thanks,Tlloreti

How to know a jar file directory

618 byte By andream1977a at 2007-9-30 0:58:56
I have a text editor maked with Swing. All code of my program is inside a myProgram.jar When a user click on a txt file, this file is open with myProgram.jar.When myProgram start it's create a properties file.This properties file is created with this code:String path = ...

Builder Pattern - have you used it?

309 byte By codecraiga at 2007-9-30 0:59:36
Hi,I am interested in learning patterns for designing my code for my UI's...anyway I have read a little about the Builder Pattern..but was wondering if anyone has used it before, and if so, can they post some sample code of how to code in that pattern, or send me to some ...

Please help with centering a label

3095 byte By GumBeea at 2007-9-30 0:59:57
Please help me understand why the label is not horizontallycentered? What is it that I'm not understanding? Here isthe code:import javax.swing.*;import java.util.*;import java.awt.*;public class AlignmentProblem extends JPanel {private static java.util.List lst = new ArrayList();static ...

Drag & Drop: DropTarget vs. TransferHandler for strict DROP support?

2101 byte By Wan-Hia at 2007-9-30 1:00:51
Hello.What is your preferred way to add DROP-only support to a Swing component, e.g. JTable? I took a look at both possibilities, DropTarget and TransferHandler, but both don't look to be the best option. Why am I unsatisfied with the result? Well this is my task:1) Create a JTable object ...

JSplitPane not displaying on screen

4914 byte By psllooa at 2007-9-30 1:01:19
Someone please help me. Stuck on this problem for 3 days now but just cannot see the answer. JSplitPane just does not display on screen. When I call it from within the class xer it appears as a little rectangle of about 2mm by 4 mm insize. When I call it from within actionPerformed I just do ...

Internal Frame Listener - override closing

523 byte By KeithRogersa at 2007-9-30 1:01:28
The Javadoc for InternalFrameListener's InternalFrameClosing method states"Invoked when an internal frame is in the process of being closed. The close operation can be overridden at this point."But doesn't actually say how to perform the override... I suppose I could get the closing ...

Point not displaying correct coordinates

1725 byte By Little_mea at 2007-9-30 1:01:37
Hi,I have an app that reads in a point from a mouselistener and displays it to screen.If I pass the point to another method, it paints the point a few coordinates away from where I've clicked!public void mouseClicked(MouseEvent e){int x = e.getX();int y = e.getY();point = new Point(x, ...

imageicon in JTable

2672 byte By shaji710a at 2007-9-30 1:01:50
I want to display imageicon, in JTable. I use createImageIcon method to return a ImageIcon object and used it to set the table column values. But It doesn't work. See the codeString[] columnNames = {"First Name","Last Name","Sport","# of Years","Vegetarian","Image"};Object[][] data = {{"Mary", ...

compare swing and swt

744 byte By javap89a at 2007-9-30 1:01:57
Hello!Which is faster SWT or Swing ?Depends on the application.Application containing large list or tables much slower in SWT, because SWT copies bulk of datafrom Java space to native space. Swing don't need to. This is why Eclipse is so slow when displayinga large list/table.Disbelieve ?Test ...

layout problems

439 byte By fatal-errora at 2007-9-30 1:02:01
heyin my jFrame i have a textarea two buttons and 4 radiobuttonsive put a button and two radiobuttons in a panel, and the other button and the radiobutton in another panel.what layout should i use so that the textarea will be seen big up, and the to panels will look smaller, but equal to each ...

Components

329 byte By aljosa2004a at 2007-9-30 1:02:14
Hello all,I'm starting a new project and i would like to ask any of you about best GUI components that are on market.I'm special intrested in Table components, but it would be nice if you have inforamtion also of other components.I hope I didn't open to boring debate.Thank ...

Refreshing JTable Rows.

2201 byte By Uday_Sa at 2007-9-30 1:02:29
Swing Experts,[I know this may be asked million times but my search onthis forum couldn't get me the correct answer]I am recently started swing coding and have problem in updating the entire contents of JTable.Application Description:I have an Applet running inside my JSP and using JTable to ...

e.getActionCommand()

1348 byte By alpha@clan66a at 2007-9-30 1:02:36
I have the following code below.The problem is that all buttons and menuitems work fine except one probelm and that is that the last logical IF statement is also executed whenever i clikc on any menuitem which is not connected to the last IF statement (see below). all these events are for ...

24pt Font Size Tab Text for JTabbedPane

506 byte By Stone_Brooks@Hotmail.coma at 2007-9-30 1:02:46
I'm creating an app for use with Touchscreens and need to make the buttons and such, large enough to fit the tip of a finger.I'm having trouble with the JTabbedPane font size and am having trouble finding a way to make the text in the tab larger.Same issue with text in a border. Just for ...

pattern for enabling/disabling menu items toolbar buttons

739 byte By tlynch001a at 2007-9-30 1:02:51
My application has over 20 toolbar buttons, each of which may or may not be enabled, depending on which component has focus. Is there an elegant way to control what buttons are enabled based on the current selected component? Currently I am using code that looks like:if (such and such component ...

how to make image out of panel?

231 byte By vchandramoulia at 2007-9-30 1:02:53
hi, i have a JPanel object and i drawn something on this panel. it also contains somemore components. can anyone say how to create image (like .jpg) from what is getting displayed in my panel.thankx in advance.

Would like help with hyperlink

486 byte By GumBeea at 2007-9-30 1:02:58
In a JEditorPane, HTML documents are displayed and when ahyperlink is clicked, they are loaded. However, I would like to display,in a status area, where the hyperlink points to before the mouse clickactivates it (goes to that new page). I tried adding a mouse motion listener but that didn't ...

Blink

353 byte By sdnsdlma at 2007-9-30 1:03:03
Hi to everybody,I have several JFrames in my App and responding to the clicks of the mouse over the buttons some of the frames appear and another ones dissappear, but the point is tha i always have a disgusting blink when i dispose some frames and make visible others.Anybody knows the ...

Scripting a Swing GUI

255 byte By Guy.Scharfa at 2007-9-30 1:03:09
I have a need to script the user interaction for a Java application built using Swing and JDK 1.4.2. I need to operate menus, fill in fields in dialogs, push buttons, etc.Are there any tools available to help do this?Thanks.Guy

AbstractTableModel - getColumnClass()

1173 byte By patriveta at 2007-9-30 1:03:49
Hi,When I create one of the tables in my program, it always crashes painting the table from the methodgetColumnClass() from the tableModel class the table use (tableModel in my case extends AbstractTableModel() ).When I remove the method, the table is painted ok with no run-time errors - as ...

AbstractTableModel - getColumnClass()

1173 byte By patriveta at 2007-9-30 1:03:50
Hi,When I create one of the tables in my program, it always crashes painting the table from the methodgetColumnClass() from the tableModel class the table use (tableModel in my case extends AbstractTableModel() ).When I remove the method, the table is painted ok with no run-time errors - as ...