I am developing a game and have the game pretty much coded at least to an extent. I want to add a Title screen and menu that says something like 1)Start new game2)Load level3)Read RulesBased on the response it should go to each different area of interest.Right now when I execute my application it ...
320 byte By
iajdmba at 2007-11-27 11:07:00
I just downloaded and installed the jdk1.5.0_12 update and the jre1.5.0_12 64bit on my linux(FC6 x86_64) machine and there is no plugin directory under jdk1.5.0_12/jre or under jre1.5.0_12/. What gives ? I want to install the java plugin on my firefox browser and it's not included in the download ...
409 byte By
Doga at 2007-11-27 11:07:06
Hi ,I am very much anoxious for setting the default VM and JDK for NetBeans 5.5 IDE. I have tried to modify it with the help provided with the ide but could not get success. So please suggest to set the mentioned configuration.I always see the same configuration in the about page of the IDE.Please ...
A public setter method in a public class is equivalent to a public member variable in a public class. For example, public class MyBean {private int myInt;MyBean() {}public int getMyInt() {return myInt;}public void setMyInt(int aint) {myInt = aint;}}With the above implementation, a private member ...
2811 byte By
roheada at 2007-11-27 11:07:22
I am trying to determine the correct way to compare unicode strings in an application that will be used internationally. The javadoc for Collator states that you should use the CANONICAL or FULL decomposition mode for correct results with accented characters. With decomposition mode set to NO, I ...
Hi, I have a component class C1 that mainly contains a JTextField and I hope it can change text value when a button in another component class C2 is pressed. If there's no access restriction, I know I can addActionListener to that button like:myButton.addActionListener(new ActionListener(){ public ...
<p>Hi all,</p><p>I have a problem with a Editable JCombobox which was added to the JTable's field. Not at all functioning properly. So are there any examples to go through.</p><p>Many thanks,</p><p>Vijaycanaan.</p>
i need to create a label floating just below the mouse cursor when a mouseDragged event listener launches. it must be like the ones color pickers have. i can create a simple one but the thing is it can not be viewed on top of a jtree inside a jScrollPane. it just floats beneath ...
1019 byte By
txjumpa at 2007-11-27 11:08:40
Hey Everyone,I have a column where i want the cells to be clickable to edit in cell but also render an elipse button at the end of the cell so that if they click the button i pop up a JTextArea. Has anyone seen/created this type of behavior in a cell? If so please point me in the right direction. ...
402 byte By
jmw2a at 2007-11-27 11:08:41
Hello,I have a small app contained within a JAR which runs when invoked. However some features of the program require communication with a JVMTI agent. The agent library information must be passed to the VM on startup in the form:-agentlib:AGENT_LIBRARY_NAMEI know very little about JAR files and ...
Hi, I currently have a TableModel with over 17300 rows of data, which has a TableRowSorter attached to provide sorting and filtering on the JTable. Everything works fine except that filtering the table takes to long, even on a Wndow Vista machine with an Intel Core 2 Duo (3.6ghz processor)Is there ...
<p>I only found a method setSize() of JTextPane class. How can I set the number of columns in a JTextPane? Each column can be written one letter.</p><p>Thanks.</p>
2355 byte By
s1au_k14a at 2007-11-27 11:09:33
hello buddy,currently i am working to make a program for my auntie however i got a problem right here..this is my code :import javax.swing.*;import java.awt.*;public class scrollInTabbedPane{public scrollInTabbedPane(){JFrame frame = new JFrame("Testing");frame.setResizable(false);JTabbedPane tab = ...
Hi,I have an accessibility issues with JTabbedPane.OS: windows xpJDK: 1.5.0_11Precondition: Set you OS to High Contrast #2 modeProblem: Set the UI to Windows L&F, If u disable one tab by using JTabbedPane.setEnabledAt( index, false); , you will get black text on black background. I suppose that ...
Hi Everyone, I am using JNLP to start a swing application. My application has some supporting resource files [mdb (MS Access Database), few XMLs and properties]. While launching, the shortcut and these supporting files falls in my desktop. I want these supporting files to be downloaded in some ...
Hello everyone.I am trying to work out a header_resizable table with specified header height,but when drag the next to the last column's header make the last one dispeared.I've got a workaround by making the header's preferredSize wide enough,but want to know what the gulus will do in this ...
<p>I know how to set accelerator for a JMenuItem but how can I set accelerator with both Control button and [Shift button.</p><p>I mean</p><p>SaveAs... Ctrl+Shift+S</p><p>how can I set accelerator like this?</p>
<p>Hi </p><p>All Developer</p><p>I am developing an desktop application into Java Swing. inwhich I need to writing the some data into .xml file and also reading the data from this .xml file.</p><p>thank in advance</p><p>tariq</p>
256 byte By
warxsga at 2007-11-27 11:11:50
<p>Hi all,</p><p>Have you ever seen the AIM client ?</p><p>I am wondering how create a frame with a rounded border like AIM; infact the AIM client has rounded border on the top part of its main frame.</p><p>Any suggestion ?</p><p>Cheers.</p><p> Stefano</p>
<p>I'm trying to convert JTextField value to date format but I can't. I need to send date value to a date field of database. Could anyone help me convert JTextField value to Date value?</p><p>Thanks</p>
Not sure if this is the right forum to post it in, but I have a question about the Jigloo gui builder plugin for eclipse. I finished my first year informatics studies, and i now need to make a project for my school. It's a little game where a hero needs to pass 4 rooms. He can go to another room ...
231 byte By
jorj007a at 2007-11-27 11:12:35
<p>hello everybofy</p><p>i want to install srss_3.1 on fedora so, was downlaoding srss_3.1 for linux and i made the ./utinstall but now the problem is that i can't make the ./utadm and ./utconfig</p><p>so any ideas ?</p><p>10x</p>
307 byte By
frknmla at 2007-11-27 11:12:57
i want to change my double number format.i tried like that DecimalFormat fmt=new DecimalFormat("0.###"); fmt.format(mydoublenumber);and i get value from jtable and i add to mydouble number but it doesn't work .please help mei'm looking forward to see your ...
505 byte By
Alantiea at 2007-11-27 11:12:58
Hello!I have following question:I m using System Clipboard as clipboard for file cut/copy/paste (file system is represented via JTree).The question is how will i know what i need to do with file on "paste" action (i.e. copy on copy or move on cut)? Problem is because when using other flavors u ...
245 byte By
Alantiea at 2007-11-27 11:13:01
<p>What is best way to use JTree to browse remote file system (while using client on local mashine and some server application on remote).</p><p>I tryed to make TreeModel on remote, serialize it and send to local but it doesnt apper to work.</p>
301 byte By
gajesha at 2007-11-27 11:13:04
I have a "Exit" JMenu in JMenuBar (I set X as Mnemonic)I wana exit (Sysytem.exit(0)) from my application when I click on Exit button OR when I press ALT+X. I dont want to use menuSelected() function of MenuListenerPlease tell me which event I should ...
I've been reading up on the @Action annotation here:https://appframework.dev.java.net/intro/index.htmlHowever, I cannot import the annotation!What distribution of the SDK is this in? I noticed the document I was reading stated that it was "approved May 2006", but my 1.6.0_02 does not let me import ...
I have a Container that contains a Panel, panelA.I am simply trying to replace panelA with panelB, but when I run the app, you see (very quickly) panelA being removed, then a grey box, then panelB being added = a lot of flicker.Can anyone post any code that will replace a panel a bit more ...
java.lang.NoClassDefFoundError: org/mlc/swing/layout/LayoutConstraintsManagerat src.Job.viewJob(Job.java:70)at src.JobViewer.addContent(JobViewer.java:108)at src.JobViewer.setup(JobViewer.java:53)at src.JobViewer.<init>(JobViewer.java:42)at src.MainMenu$1.actionPerformed(MainMenu.java:72)at ...
75 byte By
godwina at 2007-11-27 11:13:28
<p>How do i sow system time on a label that changes as the time changes</p>
1263 byte By
yrabinova at 2007-11-27 11:13:36
Hi,I have the following problem:I have a task that takes I lot of time and want a progress indicator. Fed up with trying to multithread and use progressbars (I'm on 1.5, btw), I used the Observer and Observable interfaces. Here is my monitoring class:class monitoring implements Observer{JFrame ...
756 byte By
NM-156a at 2007-11-27 11:13:51
Hi. I am trying to download tomcat WSDP to test some web services. It seems that the only option available is to use the Sun download manager. The download manager runs and says "Checking for updates", but after a long time a window comes back with this exception:An error occurred while ...
686 byte By
jcullia at 2007-11-27 11:14:10
With the following setup of a JTable, when moving the rightmost column the column's data cells does't paint correctly:column resize mode = AUTO_RESIZE_OFFcontained inside a scroll panetotal column width is smaller than the scroll pane viewThis is easily reproducible with SwingSet2 ...
<p>my radio buttons set "remembers" all the previous selections and doesn't deselect them. I see them all when I go back to the menu.</p><p>I think I can patch this problem,</p><p>but why does it happen ?</p><p>how can I solve it nicely ?</p>
Hi,In my application I should make a disabled button to show a tool tip when mouse is entered onto it.I'm using java.awt.container not Jcontainer.I have searched in SDN forums and after reading some of the comments what I understood is disabled Swing button can react to Mouse events but a disabled ...
Hi people,Basically I have one JFrame with a few controls on it, at some point I want to set the frame's glassPane to a JPanel with some opacity, this means I want to be able to see the controls beneath it.I have searched but I could not find anything that made me happy ;)I am not used to work ...
202 byte By
Taigoa at 2007-11-27 11:14:37
<p>hi!</p><p>is possible to append text to a textArea and the text become a link. i want to click in text append in textArea and go to a exactly location like C:\.</p><p>did i make my self clear? :)</p>
<p>Hi!</p><p>We have a JtextField with a string. We want the user to select with the mouse a part of this string and we want to get it,when he press a button. We think we should use the function getCare but we don't really know how it works.</p><p>Thank you very much!</p>
1439 byte By
AlexRajua at 2007-11-27 11:14:43
Hi Everybody,I am trying to convert Java unicode to "Shift_JIS".I'm passing a HTML unicode to below code.And Java unicode is getting returned.String temp=conJavaUnicode(sTemp); // sTemp contain HTMLUnicodepublic static String conJavaUnicode(String Str1) {int num=0;String[] strArr={};StringBuffer ...
Hi, I'm new here, and I'm a newbie in Java coding lol so I don't really know my way aroundWhat good code can do the following?Click on a Button -> Generates a Text in textArea -> Click on the line of the generated text in the textArea -> Displays components of the text (from textArea) in a ...
Hi folks. I've got an applet that uses JFileChooser and it used to work but many revisions have passed and now when I open the dialog I see the window frame but nothing ever appears inside of it so I have to use task manager to kill the browser process. This is on Windows XP and I tried 1.5.0 and ...
324 byte By
etoronaa at 2007-11-27 11:15:09
Hi all,I have a table with two columns, each column contains a specific combobox.Col1 -> combo1 and col2 ->combo2.I want when i chose a value from combo1 to fill combo2 with specific values, and this for each row in the table.Do you have any example to make this feature ?Thank ...
886 byte By
fraksiaa at 2007-11-27 11:15:54
Hello, what I am trying to do is having an area in a panel where the thumbnails of some files of a specific directory will appear and being able to do some "gui file manipulation" on them, like you can do with a JFileChooser, i mean like select a file, double click on a directory and show its ...
Update was pushed to me and while installing I received this error. Here it is in its entiretyError 1101.Error reading from file: http://javadl-esd.sun.com/update/1.6.0/sp-1.6.0_02/sp1033.MST. I don't see any posts with this exact error and when I performed a search I got 0 hits. Please help me to ...
250 byte By
vopoa at 2007-11-27 11:16:17
<p>Hi,</p><p>I'm a bit confused between flowlayout. My instructor didn't give much information on it.</p><p>My instructor told me it arranges contents by LEFT, CENTER, RIGHT.</p><p>-but is the same as borderlayout without using north and south?</p>
Well I managed to get my GridBagLayout to work exactly as I wanted in my java app, but when I converted it to an applet, I cant seem to get it to workEssentially I have 3 methods which return a JPanel. I have topPanel (which is on the top and spans the entire width), addStatPanel (which is below ...
I am making a smallish website and I am after some clarification/guidance/feedback on if I am properly abstracting out the different functionality, linking it all back together etc?In short: am I doing the right thing here?I have a JSP page that is an about page attempting to pull some user info ...
Hi folks,i have a problem here, when printing, i want to show a progress bar during the process. The Progress bar is placed on a JDialog.an example :public int print(Graphics g, PageFormat pf, int page) throws PrinterException{ProgressBarDialog d = new ...
Hi,I'm currently writing an applet which logs various details about the installed jvm that's running it. That part is working fine, when the applet starts I read the required system properties and have the applet load an image with those values as parameters of the image URL.However, I've also ...
Hello,I haven't found much up-to-date information on the topic - mostly old and not necessarily working tutorials on CodeProject etc., or expensive libraries which I'm not willing to buy at this point.I need to embed a GUI control (written in C#) in a Swing panel. How can I do that? It's ...