245 byte By
snehaa at 2007-11-27 10:02:02
Hi All,I want a moving text on Label. Requirement is same as "Marquee" in HTML. Label Text should continuously move from right to left.How to achieve it in Swings?Thanks in Advance...Regards,Sneha
I found the size and preferred size of a same component is different. Which one can I use?
261 byte By
JRPa at 2007-11-27 10:02:26
Dear All,When creating a JFrame, a taskbar item is automatically displayed. Is there any way of preventing this?I would also be grateful to hear of any alternative suggestions to using a JFrame if appropriate.Many thanks,James
265 byte By
amir430a at 2007-11-27 10:02:31
Hai..I want to resize the JDialog ...but it should particular size ....In JFrame ,We will define maximum Size usingsetMaximizedBounds(Rectangle bounds)like that i want in JDialog....give SolutionThanks in Advance....
388 byte By
SFLa at 2007-11-27 10:02:40
I am running Eclipse 3.2 and NetBeans 5.5.1 and tried to create a JAR file of my project. This works fine in Eclipse - but not in Netbeans; when creating a JAR file in Netbeans I can start my application but the whole GUI isn't being displayed. I don't get an error message or another ...
I have a JTextPane and some other buttons on a frame. How do I make the JTextPane as the default forus? In addition, I want to let the JTextPane grab forus when the user click it. How can I do this?I found the method grabForus() doesn't work.
Dear,On some clients using IE6 or IE7, I have problems trying to connect to SGD.I use SGD 4.3 on Linux, and when I first connect from a new client with IE6, it stays stucked on the Sun Secure Global Deskto Welcome banner with the "loading ..." message.And nothing happens.Has anybody already ...
Hi all,I have two frames which are already visible, only that one is set to "tofront()". Now after entering some values on the textfield in this first frame, I click an Ok button which is supposed to close this frame and at the same time cause the textfield values of this frame to be displayed ...
Iam making one frame modal by setting its setEnable() propoerty to true and the and the setEnable() property of the other to false. Now when I close this modal frame and setEnable() property of the initial frame to true, I have to click its Icon on the task bar for it to become enabled (true). ...
Hello All,I have implemented the TableRowSorter using table.setAutoCreateRowSorter(true);Now, after some data is fed in, I have sorted the table.If initially the column 1 had valuesacbNow after sorting it has becomeabcNow, when I select the 3rd row from the sorted table and delete it, the table ...
I wonder, if anyone knows about limitations or tricks on using Swing components as part of a border. While this worked quite well with a JLabel (the label's paint will be called when painting the border), using a JPanel instead seems not to work (the panel's children don't get painted, and ...
Hi,I have a application for image softproofing.It supports fullscreen view of a image.For fulscreen I am using a class and i am passing Japplet rootpanecontainer to it.Then i am creating a dialog using parent frame JDialog (Frame rootpanecontainer ),named fullscreen and adding the image ...
Hia friend of mine shocked me sending this http://www.esnips.com/nsdoc/c1f0b2b7-0660-4485-9842-756bc0355228I was deploying a standard GUI apps to handle a ebook store but now I wonder if I should use this method to that allows clercks to perform advanced query on DB.Has someone never used this ...
Hi, I am wondering if anyone can help me figure out why I cannot get repaint() to execute. Here's my code, it's for a stock simulator program.package Game;import java.awt.*;import java.awt.event.*;import javax.swing.*;import javax.swing.AbstractButton;import MarketPlay.Market;public class ...
6043 byte By
N00dlesa at 2007-11-27 10:05:24
Hi, I'm having a little trouble with adding elements to a JList. My plan is to have a button 'Other' to pop-up an inputDialog that asks for the name of a computer program to be added to the list.I used an example from the Java site that uses a direct JTextField (without any pop-up window), ...
188 byte By
ardmorea at 2007-11-27 10:05:38
I am designing a gui that contains a Combobox and a JSlider. Also I plotted many polygons which will be put in the center in the frame.Which layout should I use?Thanks
836 byte By
ardmorea at 2007-11-27 10:06:21
Note: C:\Documents and Settings\2z7\TestCell4\src\Combox.java uses or overrides a deprecated API.Note: Recompile with -Xlint:deprecation for details.JFrame appletFrame = new JFrame("My Applet");Applet theApplet = new ...
Everytime I access a site with Java in either Firefox or IE7 they freeze (not responding and Hangapp shows up). I have removed Java and reinstalled and did the same with Firefox, but still the same thing. I have run an Adaware scan and my virus software is up to date and scanning on a regular ...
I'm trying to get the JRE to install on my new Vista machine. It keeps giving me an error like "Failure Time/Date stamp" towards the end of it's install process. I've tried changing my timezone (I'm in mountain), uninstalling and reinstalling via online and offline modes. No matter what I ...
Hi, anyone can tell me, how can different clients on a LAN network can connect to server database? In below simple code, "localhost:3306" is server ip or not? wat url client must be insert for connection to server database?static private String url = ...
I have a JDesktopPane with a bunch of JInternalFrames. When the user scrolls any one of the frames, I want the other frames to all scroll in the same way at the same time. What's the best (or easiest) way to make this happen?
Hi all,Mine is a strange problem. That is iam having a Jtable and wants to change a particular row color entirely. For that I searched in internet and found a code which is almost suiting for my requirement. But it's not working to my expectations. The problem is suppose a row having 8 columns ...
It's my understanding that Java 2D works in device independent units, specifically points. Are there still parts of AWT/Swing that work in pixels?More specifically we're trying to understand what happens when you draw and image, for exampleg2d.drawImage(i, x, y, w, h)If w & h are each 16, ...
309 byte By
ardmorea at 2007-11-27 10:07:30
hello, i am going to use JSlider to zoom my graphic polygon.However when I fire the Slider,the graph move on the screen liking animation. That is not my expection. I guees I used repaint() to cause it, but if I remove repaint(), slider will not function at all.how can I drawing ...
4988 byte By
davidosXa at 2007-11-27 10:07:31
Hi everybody,nice to join your group,I'm trying to create my first database application, but have some problems with the main component - JTable, I created that using TableModel which gets all data from sql database (ResultSet etc.):table1 = new JTable(new MyModel(rs) ); and MyModel looks like ...
I add a button on a JToolBar. The color is different from the button in a JPanel. For example, see the following program:JToolBar toolBar = new JToolBar();JPanel panel = new JPanel();panel.add(new JButton("button"));toolBar.add(new JButton("button"));toolBar.add(panel);JFrame frame = new ...
378 byte By
sleggea at 2007-11-27 10:09:55
Hi,I found on a Sun page that you can determine in a JSP if Java Web Start is present on the client machine.I have an Applet that requires Java 1.5 or higher and I'm trying to determine if Java is present in the browser (if not, I'll redirect to a "download now" page). If Java Web Start is ...
2984 byte By
atagara at 2007-11-27 10:09:58
Hi. I've been stuck on this for a couple days now- the findComponetAt method of java.awt.Container seems to dislike JDialogs (as well as me). The following:import java.awt.*;import java.awt.event.MouseEvent;import javax.swing.*;import javax.swing.event.MouseInputAdapter;public class ...
Hello, I have the following class:import org.apache.log4j.Logger;import org.apache.log4j.PropertyConfigurator; public class Ejemplo3 {static Logger logger = Logger.getLogger(Ejemplo3.class.getName());public static void main(String[] args) ...
Hi,I am having a problem in running a cerated jar file. These are the contents of the jar file:bhargava@pinakini:~/workspace/AntSampleProject/build/jar$ jar tf HelloWorld.jarMETA-INF/MANIFEST.MF./ ./oata/ ./oata/HelloWorld.classIt is not running even if I use jar file in the classpath, but ...
556 byte By
nuwogua at 2007-11-27 10:10:28
I keep getting Javascript Runtime Errors when I visit certain web pages and it's stopping me from viewing some pages of a website. What can I do about these errors so I can browse websites without any trouble?Here is a screenshot of the error. Usually I get a different error, like a box ...
1679 byte By
nusaa at 2007-11-27 10:10:59
I have a JTree that could be visualised as follows :root |-- PersonA ||-- AddrA1 ||-- AddrA2 |-- PersonB |-- AddrB1 |-- AddrB2 |-- AddrB3My tree model is identical as the one that we could find from Swing tutorial, GenealogyModel.javaI would like to know how to find the parent of a selected node. ...
i have made a graph in applet which draw signal lines. i want applet show first line, after 1 second reload applet and draw second line preserving previous value.receiving values from a table having two fields 1.seconds...2.active_calls_count ..give dynamic sort of look...just like window's Task ...
<p>i want to click on a link...in response of this a popup window opens and show the details...help me regarding this...</p>
189 byte By
shagya at 2007-11-27 10:11:42
<p>buttonPlus.setBounds(new Rectangle(115, 215, 175, 35));</p><p>i do not know but the above line does not change the dimensions of JButton, well does not create any compilation error..</p>
167 byte By
hakea at 2007-11-27 10:11:59
<p>There is no <b>uninstall/remove</b> facility in Sun JRE 1.6 for MS Windows. How are we supposed to remove it from our systems other than by brute force methods?</p>
How do I use the changedUpdate(DocumentEvent e) method of DocumentListener. It should be invoked when the attributes changed. But why this method invoked under such situation see below. I add a button and a text pane in my program. When I click the button, the changedUpdate(DocumentEvent e) method ...
655 byte By
Gabia at 2007-11-27 10:12:29
Hi All,is there any special event handle the drag scrollbar.im using today the followng event:jResultScrollPane.getHorizontalScrollBar().addAdjustmentListener(new AdjustmentListener(){public void adjustmentValueChanged(AdjustmentEvent e){System.out.println("scrollmoving");}});but its working also ...
<p>How can be obtained this fade effect as in this applet >>>> ?</p><p>Anyone has a source that do it ?</p><p>Many thanks.</p><p> http://www.sureshotsoftware.com/webeffects/slideshow/index.html</p>
An example when Installing a programme(WinZip)There will be Next ,Previous and Cancel buttons .When you pressed Next , the Frame will retain but the content will be different, not popping out a new window and ended up with lots of window when u finish installing.The project i'm doing is similar to ...
I have a main class called Mclass.java, from this call am calling a thread which is in SimpleThread.java , and also creating an object for Taskframe.java the TaskFrame.java contions panels From the SimpleThread.java am getting current time, and I want to display the time in any of the panel , how ...
468 byte By
NickDGa at 2007-11-27 10:13:02
We have an application with a menu bar and buttons with pop-up menus. At certain moments, triggered by (amongst others) JMS messages, modal dialogs are displayed.If the menu is folded out or the buttons' menu have popped up when the pop-up dialog is displayed, the application freezes.The log files ...
<p>I have launched JVM with -Xint option , but thread dump file doesn't include Monitor cache dump. AppServer is starting with -Xint but it is not logging Monitor Cache Dump. How will I check whether JVM is running in interpreyed mode or any other way to get Monitor Cache dump in Thread dump?</p>
1781 byte By
nomad311a at 2007-11-27 10:13:51
I am using a JLabel to display status info. The info includes websites so can get very long and force the progress bar off the screen. Here is what I currently have after trying several combinations of the various size functions in different places (which doesnt work either)://Status ...
3042 byte By
fdgfda at 2007-11-27 10:13:55
HiFrom the Swing Hacks examples, I can display a JButton on an ImagePanel no problem. But when I put this JButton in JPanel, then add the JPanel to the ImagePanel, the JPanel with the JButton is not displayed.Can someone please explain why this is?Here is the ImagePanel code:import ...
613 byte By
Syrriusa at 2007-11-27 10:13:58
Hi everybody,I would like to use an applet with multiple-jars.ex:"""<applet codebase="." archive="main.jar,Addon1.jar,Addon2.jar" code="Appl.class" id="MyTest" width="600" height="30"><param name = "MyParam" value = "1;2"></applet>"""An applet with :-> 1 Main JAR-> X Addon JARs (X : a ...
<p>i want to change cell background color when a table model event occurs otherwise it remains as default background color.</p><p>how can i do it?</p><p>Thank you!</p>
I have a JList, and in order to right click any of its items I first need to select it (i.e. left click it). Is there a way to make the right click also do the selection? I tried using Robot to press and release the left button before doing anything else, but that didn't really work... actually it ...
1168 byte By
argh313ba at 2007-11-27 10:14:10
Hello everyone,I have a working jar file built by an ant script and it's working correctly. I am trying to rework the script so that the jar would be executable. I put the manifest attribute Main-Class and pointed it at the correct location of the class whose main() method should be run, but when ...
822 byte By
Jethroa at 2007-11-27 10:14:31
[nobr]Hi everybody,I use a JEditorPane to display some HTML in which my users can make selection. If a selection is made I have to retrieve the HTML which is selected in order to perform some processing.For example:I display the following HTML:<html><head></head><body><h1>This is a ...