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 ...
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?
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 ...
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 ...
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 ...
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 ...
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......
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
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 ...
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
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 ...
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
77 byte By
kfsong at 2007-9-26 1:15:50
Hi, who has ever used ROW_HEADER of a JScrollPane? Janet
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
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, ...
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 ...
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 ...
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 ...
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
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
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, ...
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 ...
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
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 ...
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 ...
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
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
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!
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 ...
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 ...
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 ...
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 ...
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 ...
69 byte By
gil_e at 2007-9-26 1:20:10
How do you disable user input for a column in a JTable?
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?
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 ...
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 ...
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 ...
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 ...
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.
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.
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 ...
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 ...
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 ...
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 ...
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.
67 byte By
totitan at 2007-9-26 1:22:23
May I know how can I have a background using picture?
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... ...
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
76 byte By
b_babu at 2007-9-26 1:22:41
can i set a window listener to applet if yes how?thanks