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
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 ...
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
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 ...
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 ...
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 ...
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.
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..
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, ...
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() ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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
how do i set the font color of a single word in a Jtext areathanks
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?
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 ...
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 ...
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 ...
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;} ...
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
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 ...
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 ...
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 ...
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 !
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
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 = ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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", ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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
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 ...
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 ...