JTextArea update VERY slow

1192 byte By tony.thompson at 2007-9-26 1:13:21
I have a dialog that a JTabbedPane with several tabs on it. One of the tabs contains a JTextArea that I have redirected System.out to. The JTextArea is attached to a JScrollPane and then to the JTabbedPane. The class I created to send System.out to the JTextArea does a JTextArea.append() to ...

Jdialog in Japplet

286 byte By rduraika at 2007-9-26 1:13:43
Hi , I have a class which extends JDialog I instantiate this class from JApplet. it compiles properly but at Runtime it get the error saying thatjava.lang.NoSuchMethodError: EventWizard: method <init>()V not foundcan somebody help me about this?

problem with repainted split pane

415 byte By chrisioannou22 at 2007-9-26 1:13:48
i have a JPanel within a JSplitPane and within it a JPanel..i have a function whice stretches the size of the JPanel...but the SplitPane seems to call repaint() an extra 2 times which causes the JPanel to be returned to it's original size..Is there a way i can stop this extra repaint with ...

HTMLEditorKit and POST

386 byte By PriyaPPatil at 2007-9-26 1:14:16
Hi,I am displaying a html page/form in a JEditorPane.This is used for file upload. However, inspite of specifying the enctype to be multipart/form-data, the data sent to the servlet is not in multipart format. Does anyone know what exactly happens when the submit button is clicked for a form ...

How to make JFrame ToFront to all applications

352 byte By k_ramanadham2 at 2007-9-26 1:14:49
HIMy problem is i have a JFrame where in i have a JCheckBock and when i check it my frame should be top from all applications opened(like MS Word,notepad or any window) and when it is dechecked it should be back when any application is opened . I tried in solaris by using toFront() but no ...

How to make JFrame ToFront to all applications

352 byte By k_ramanadham2 at 2007-9-26 1:14:51
HIMy problem is i have a JFrame where in i have a JCheckBock and when i check it my frame should be top from all applications opened(like MS Word,notepad or any window) and when it is dechecked it should be back when any application is opened . I tried in solaris by using toFront() but no ...

How to add JCheckBoxes with different text in JTable urgent...

188 byte By k_ramanadham2 at 2007-9-26 1:14:52
HII have a JTable and where in each cell i should add one JCheckBox is it possible to add JCheckBox to a JTable without taking an renderer.any suggestions please......

How to get array's class

173 byte By kfsong at 2007-9-26 1:15:20
Hi, I have an Byte[] array, how to get its class, because I need to use JTable.setDefaultRenderer(class,renderer) method.Thank you for help!Janet

Adding ActionListener, Where am I wrong?

5920 byte By reddyumamaheswar at 2007-9-26 1:15:24
Hello, Please see the two java files that are working fine, but I need to add actionlisteners to RectangleButton.java file, Could any one please help me? Getting text from textfield of superclass into the a string in the sub-class is my problem.1st Fileimport java.awt.*;import ...

skins in java

228 byte By nikki_rohit78 at 2007-9-26 1:15:28
hi readers....i have a qus if you can solve..i have to make skins in java in swings like winamp is having skins and we can choose one from themm.do help me doing so in java(swings)...thanxrohit

Why doesn't this code work? (Copying rows across JTables)

8707 byte By javaqq at 2007-9-26 1:15:32
For a couple of weeks I have been attempting to copy the data in one row of one JTable to a second table, without success. Usually I get an ArrayIndexOutOfBoundsException, even though the target table contains more than enough rows to accomodate the copy. Here's what I have done: I stripped ...

Problems resizing JButtons

244 byte By carrolf2 at 2007-9-26 1:15:47
Hi. I have a GUI with a JPanel to which I have added 43 JButtons. I use a for loop to add the buttons but I cannot set the size of individual buttons. I want two of the buttons to be bigger than the rest. Can anyone please help me

ROW_HEADER of JScrollPane

77 byte By kfsong at 2007-9-26 1:15:50
Hi, who has ever used ROW_HEADER of a JScrollPane? Janet

JList issues

234 byte By carrolf2 at 2007-9-26 1:15:57
If I have a JList containg say 10 stages of a test procedure, is it possible for me to have the members of the list selectable (JCheckBox) and also can i set the background color of a list item.with thanksF

CHECK BOX not coming in TABLE : VERY URGENT

14068 byte By dhir_sanatkumar at 2007-9-26 1:16:03
Hi all,Please help me.. I created a table with four clooumns. everything is working fine , but problem is in lat column I want to show CheckBox.. But it is printing "java.lang.object@4121f" like values.I also implemented method public Class getColumnClass(int c){ return getValueAt(0, ...

Can someone teach me how to draw an ImageIcon ?

355 byte By folkenf at 2007-9-26 1:16:08
Well i would like to create a JButton, and to set an ImageIcon that i would draw by myself.I try Component.createImage(width, height)then i get an Image.I know that i can create an ImageIcon from this image.How can i draw in this Image ?My method that draws is paintIcon(Graphics2D g2)Please ...

JList stops responding to mouse or keyboard events

324 byte By connys at 2007-9-26 1:16:10
Hi I have got a JList that can be dynamically updated. However after one or two clicks the JList stops responding because the listSelectionListener is not called. I am using an instance of DefaultListModel. Could someone please suggest any possible solutions or possible reasons. Help much ...

Disabling a checkbox in a JTable

636 byte By mort101 at 2007-9-26 1:16:14
Hi all..I have a column in a JTable that consists of checkboxes. These checkboxesare created via my getColumnClass method in my table model - I guess adefault cell renderer(?). I also specify what cells are editable and noteditable in my model. This works fine - if a cell is not editable, I ...

Applet writing to a file?

143 byte By carrolf2 at 2007-9-26 1:16:15
How can I get my JApplet to be able to write to a file. I keep getting access rights issues. Do I use getCodeBase()?thanks

how to invoke Netscape from a java program

223 byte By dshen at 2007-9-26 1:16:29
HelloIn my Java program, I would like to launch a Netscape with one file as parameter in order to see the file with Netscape. Is there someone who can tell me how to do that, thanks.danfei

Swing and events

533 byte By fsblendorio at 2007-9-26 1:16:40
Hello, I was a Visual Basic programmer; in VB I was able to connect more than one event to the respective function.In JAVA I do:button1.addEventHandle(...................but in this way I can associate only the "click" event.I want to define, for example, the "KeyPress" event on a JTextField, ...

AlignmentAction in JEdtorPane/HTML Document

442 byte By JAVA-GUY at 2007-9-26 1:16:54
Hi,I'm still developping my html editor.Here's my problem :when i apply an AlignmentAction (StyledEditorKit.AlignmentAction ("Align Left", StyleConstants.ALIGN_LEFT) in the JEditorPane,it is displayed correctly but not saved in the HTML format . So when i save the document from the JEditor ...

jtextarea scroll

93 byte By naveentr at 2007-9-26 1:17:07
I want to get a scroll bar in jtextarea when required without using scroll pane

JDK1.4 JSPinner and DateFormatSymbols

493 byte By dupontv at 2007-9-26 1:18:18
Hi,I have a problem with DateFormatSymbols().getWeekdays(); use in JSPinner and JCOmboBoxThe getWeekdays() method returns a STring[] containing the nameof the days (sunday, ...) in a localized way. I want to use these names inside a JSPinner or a JCombobox. The names are properly inserted, but ...

PLEASE HELP (or my boss will kick me) Drag and drop

371 byte By folkenf at 2007-9-26 1:18:21
My Drag and drop works perfectly in appletviewer, but there seems to be a problem when used in a browser (i used I5 with WIN2000).Does DnD in applet works on Win2000, Win98 ?Does DnD in applet works on IE5 ? Netscape 4.7 ? Netscape 6 ?Is there a DnD bug ?If it doesn't work, can someone give me ...

Right align column in JTable

91 byte By gil_e at 2007-9-26 1:18:29
I need to display text as right aligned for a column in a JTable. Suggestions

JToolTip with components in it

289 byte By riginal at 2007-9-26 1:19:05
I want a tooltip to have a list (or basically a panel) inside it. How can I do this? I've read about including icons inside tooltips by doing icon.paintIcon but I havent had any luck doing this with JList.So how can I include a panel in a tooltip?thanks

how can I build a composite component?

266 byte By huayuli at 2007-9-26 1:19:32
I heard that Java Swing can support composite component, meaning combining several component'sfunctionalities onto one component. Does anyone knowwhat class and methods I should choose to build sucha component? Thanks for helping!

How to add a LayoutManager to JLayeredPane

983 byte By collinl at 2007-9-26 1:19:44
All,I'm facing a little dilemna using the JLayeredPane. I would like to add a dynamic number of JTextPane instances onto a JLayeredPane. What I'm currently doing is creating a JPanel to use BoxLayout. Then for the n number of JTextPane instances I have, I add them to the JPanel. I then add ...

JSlider question, please help!

580 byte By csmathie at 2007-9-26 1:19:45
Hi,I have a problem with JSlider. What I need a slider to have is both upper and lower tick marks. Lower is default,but my method for having upper ticks is to make another JSlider, with a custom SliderUI class for it's UI. By doingso, all I have is paintTicks defined, and set the slider to ...

GridBagLayout changes my cell size

728 byte By 671974 at 2007-9-26 1:19:46
I need help!I managed to create a calendar for the month of Janurary using GridBagLayout. I've got all my cells for the days set to be equal (The Weight X is 14 for the first seven cells going across). But the content on the labels ends up making my cells bigger and shorter.If I use Sun Mon ...

!!! Radio Button in GUI

500 byte By livboy at 2007-9-26 1:19:52
hi, eveyone,i got problems dealing with my JRadioButtonIn my case, i would like to show the JTable which contain the data in database.and i got three radio buttons1)list the table by Agreement no2)by customer code3)by ,,,,,in my actionPerformedhow i know which button the user is selected.i know ...

Could'nt Manage Focus between Components

10216 byte By Pure12 at 2007-9-26 1:20:06
Hi I have a swing application with different components including a JTable. The focus management for the application is not happening properly. It oscillates within the buttons in the lower panel and never goes back to the. Here are the 4 files involved 1. Test1.java import java.util.* ;import ...

User input in JTable

69 byte By gil_e at 2007-9-26 1:20:10
How do you disable user input for a column in a JTable?

JOptionPane

244 byte By Alphasim at 2007-9-26 1:20:18
Well Friends I am a new member. I have a question. I am using JOptionpane.showMessageDialog(). This give ma a self generated with 2 buttons. I want to know when I click on Cancel the box shoud get closed. How should I go about it?

Changing the color of the knob in JSlider.

309 byte By chinimilli at 2007-9-26 1:20:25
Hi, I am having problem in changing the default color of the knob in JSlider. I am even changing the background image by using my own sliderUI, but i want to use the default knob with a different color. Can anyone tell me how to change the knob color of the JSlider.-thankssrinivas ...

FTP in swing

352 byte By M1234S at 2007-9-26 1:20:26
hai,In my application i need to scan documents and save it in a server.I am able to scan the documents and put it in the frame but am unable to save it in the server.I am able to save it in the file.Can anyone tell me something about FTP.I know java does not support FTP.Any help will be ...

JScrollPane Must Scroll to the END ........

450 byte By Yeah2 at 2007-9-26 1:21:18
My problem is : I have a JTextArea , and the text inside doesn't fitin it. When this happens , the two ScrollBar shouldscroll to the END of the text....Like if a have a JTextArea with 10 rows with a JScrollPane, and my text is 20 rows long, then i need to see the end of the text(No manual ...

How to handle this error!(please help)

3892 byte By shahzad5 at 2007-9-26 1:21:37
hey !i am getting this error massege(cannot resolve the symbol(setBorder).i am really confused .please somebody help me! import java.awt.*;import java.awt.event.*;import javax.swing.*;import java.util.*;import java.text.SimpleDateFormat;//import javax.swing.border.CompoundBorder;class MyPanel ...

wrapping labels at edges

220 byte By megamatrix at 2007-9-26 1:21:49
I need to wrap the messages sent to the dialog boxes from the main UI. They shouldnt cross the screeen and should be displayed in the next line or however conviniently possible.Please help.MM.

Mac look and feel

169 byte By megamatrix at 2007-9-26 1:21:50
I need the Mac plaf. Can someone direct me towards getting it and installing it? or can someone give it to me if he has one?Thanks in adv.MM.

setPage in JEditorPane....

768 byte By sasivarnan at 2007-9-26 1:21:52
I try to display a html file in my local system bytry{URL url=new URL("http","localhost","E:/users/project/smart[1].html");EditorP.setContentType("text/html");EditorP.setPage(url);}catch(Exception e){System.out.println(e);} and I get the following exceptionjava.net.ConnectException: Connection ...

related to JScroll Panel

421 byte By b_saminathan at 2007-9-26 1:22:09
can i add panel with null layout inside the JScroll Paneexample JPanel jp = JPanel(); jp.setLayout(null); jp.setBounds(new Rectangle(0,0,500,500)); JScrollPane jp = new JScrollPane(jp); this is part of my code, it is compiling and executing butthe Scrolling of the pane is not happening when i ...

Applet with dialogs

531 byte By ReginaDCs at 2007-9-26 1:22:19
Hi,First sorry for my english.I am trying to make an applet with a button which opens a swing custom dialog. Ive reading the swing Java tutorial and I have seen some examples, but all of the custom dialog classes take a frame argument from a window, that uses to call the dialog base class, but ...

Related to JTree

326 byte By aamirgm at 2007-9-26 1:22:21
I have working on a Prooject I have requirement to dynimically add and remove nodes into the Jtree but the tree is not refresh.And if we minimize the tree in the task bar it have populated correctly .So my question is that how can I refresh tree on my own when a node is added and deleted from ...

JComboBox

247 byte By aparna_Chitragar at 2007-9-26 1:22:22
If I add two exactly same strings to the JComboBox how can I get their different indexs?It means suppose i added A and again A to a combobox one after the other why their indexs come out to be same?Please answer this question.

Background picture?

67 byte By totitan at 2007-9-26 1:22:23
May I know how can I have a background using picture?

making visible,.. last index of the list.

392 byte By shalini_p at 2007-9-26 1:22:24
hi group,I have JList which is in JScrollpane.when I show the JList , I give likegetmylist().setselectedIndex(vec.size()-1); But in some situation I could have 1000 items in list.As per my code,i select the last item of the list.How can i make visible of the last selected index?thank u... ...

JProgressBar for readObject() method?

220 byte By Eric.Vautier at 2007-9-26 1:22:36
Dear friends,I'd like to display a JProgressBar to monitor the progress of loading an object from disk through ObjectInputStream's readObject() method. Anyone know how to do that?Eric

can i set a window Listener to JApplet

76 byte By b_babu at 2007-9-26 1:22:41
can i set a window listener to applet if yes how?thanks