According to the JavaSoft Swing tutorial, "When you invoke the setText method on a component, for example, the component should automatically repaint itself...
Kurt Baumgarten
kurt@...
Mar 1, 2002 9:50 am
2842
I've got a kiosk-type program that displays small(<1K) HTML pages repeatedly using the JEditorPane setText() method. The problem I have is that HTML pages...
Mike Welz
welz@...
Mar 1, 2002 4:04 pm
2843
Have you used a memory profiling tool like OptimizeIt or JProbe? We've found that there is usually a workaround to a memory leak, even if the leak is in Swing...
Farwell, Paul
PFarwell@...
Mar 1, 2002 4:12 pm
2844
Hi, I am having several JInternalFrames in a JDesktopPane and i want to give the resolution support for the same. If i use any layout like BorderLayout or...
Panyam Krishna Murthy
panyamkm@...
Mar 2, 2002 1:48 pm
2845
A more flexible approach would be to implement a subclass of JPanel which implements Scrollable and which returns true for getScrollableTracksViewportWidth(). ...
Dave Wathen
dave.wathen@...
Mar 5, 2002 3:01 pm
2846
You need to disable horizontal scrolling. See ...
Dmitry Beransky
db01@...
Mar 5, 2002 4:35 pm
2847
I did, but that does not help. It does not scroll vertically. ... From: Dmitry Beransky [mailto:db01@...] Sent: Monday, March 04, 2002 5:01 PM To:...
Reinstein, Lenny
Leonard.Reinstein@...
Mar 5, 2002 6:28 pm
2848
You're right. I must have been thinking about something else (ScrollPane?). Anyway, the problem here is that, to the best of my knowledge, neither AWT nor...
Dmitry Beransky
db01@...
Mar 5, 2002 9:33 pm
2849
I add components dynamically to a Panel that is using FlowLayout. When I just use the panel by itself with the set size, as soon as there's no more place for...
Reinstein, Lenny
Leonard.Reinstein@...
Mar 5, 2002 10:20 pm
2850
You're right. I must have been thinking about something else (ScrollPane?). Anyway, the problem here is that, to the best of my knowledge, neither AWT nor...
Dmitry Beransky
dberansky@...
Mar 5, 2002 11:41 pm
2851
Hi, We are testing out the improved Swing internationalization support in JDK 1.4.0 and I have noticed that while DefaultTreeCellRenderer observes the ...
David Zeleznik
dzeleznik@...
Mar 5, 2002 11:41 pm
2852
OptimizeIt shows you why an object is pinned in memory. It's a bit tedious (and this is from memory as I don't have a copy here) but if you go to the page...
Dave Wathen
dave.wathen@...
Mar 6, 2002 12:10 pm
2853
Dear all, I hope to have your help in a rather annoying problem I have: I have made an application that is centered around a JPanel (double buffered) that is...
Marijn H. van der Ploeg
marijn@...
Mar 7, 2002 2:57 am
2854
Thanks Dave and Neil for your swift reply. I found the leak using OptimizeIt. It appears that not only the ToolTipManager, but also the MediaTracker kept a...
Marijn H. van der Ploeg
marijn@...
Mar 7, 2002 2:13 pm
2855
I am trying once again to work with JFormattedTextField and MaskFormatter. (JDK 1.4) JTextField components use insert mode, so I wanted to use insert mode for...
Maureen West
maureen@...
Mar 8, 2002 1:57 am
2856
Good Day, I have a simple utility class for displaying HTML help files. It is a JDialog containing a JScrollPane containing a JTextPane, in which I setPage the...
Roger Blanken
Roger@...
Mar 9, 2002 6:28 pm
2857
I am having difficulty getting my jINternalFrame to be displayed from within one of my action listeners in my jFrame code. I have a followed the JavaDoc and...
ameet
ameet1@...
Mar 9, 2002 8:05 pm
2858
I am trying to input an MouseListener into my Dialog application, however I am getting an error saying that you cannot put an MouseListener into a...
ameet
ameet1@...
Mar 10, 2002 5:43 pm
2859
The best place to start is to compare your code with the code in JavaSoft's Java tutorial. The section on "How to Use Internal Frames" has an example in which...
Kurt Baumgarten
k.baumgarten@...
Mar 10, 2002 10:29 pm
2860
I want to be able to call JInternalFrame from within one of my action listeners in my JFrame form. I am also interested in finding out how to get a jDialog to...
ameet
ameet1@...
Mar 11, 2002 9:40 am
2861
... JInternalFrame is usually contained in JDesktopPane. To put something in JFrame use JPanel (or for popups use JOptionPane). If you have problems displaying...
Gojko Adzic
goyqo@...
Mar 11, 2002 9:41 am
2862
Not really sure what you're trying to do, so I guess what you're looking for is: JDialog.getContentPane().addMouse*Listener() Dmitry ... ...
Dmitry Beransky
dberansky@...
Mar 11, 2002 9:42 am
2863
I am trying to get a Dialog based class to tie in with my JFrame class in FOrte however I am having no luck being able to "grab " the Dialog Class from...
ameet
ameet1@...
Mar 11, 2002 1:48 pm
2864
Sorry, I forgot the last part: Action[] actions = textComponent.getActions(); for (int i = 0; i < actions.length; i++) { Action a = actions[i]; String value =...
Alexander
shvets@...
Mar 11, 2002 10:07 pm
2865
Lenny, I did it in the following way: static DefaultEditorKit.CutAction cutAction = new DefaultEditorKit.CutAction(); static DefaultEditorKit.CopyAction...
Alexander
shvets@...
Mar 11, 2002 10:19 pm
2866
Does anyone know if there's a way to intercept paste event in Swing? I.e., if I am using not Swing's paste, but system's paste (Ctrl/C or the "Copy"/"Paste"...
Reinstein, Lenny
Leonard.Reinstein@...
Mar 11, 2002 10:21 pm
2867
I use a simple model that implements AbstractTableModel. I have a 2-dimensional String array that represents the data. When I change the data, I want the table...
Reinstein, Lenny
Leonard.Reinstein@...
Mar 12, 2002 3:41 pm
2868
How are you changing the data? ... From: "Reinstein, Lenny" <Leonard.Reinstein@...> To: <advanced-swing@...> Sent: Tuesday, March 12, 2002 3:36 PM ...
Greg Munt
greg@...
Mar 12, 2002 6:18 pm
2869
I just have a data array (2-dim. array of Strings defined in my table data model that overwrites getValueAt and other standard methods. So, I reset that array,...
Reinstein, Lenny
Leonard.Reinstein@...
Mar 12, 2002 7:04 pm
2870
Tom, It works now, except for the row currently selected. This one still remains unchanged, unless I switch to a different row and then back. Any ideas? Many...