Game menu

654 byte By steeveesasa at 2007-11-27 11:06:53
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 ...

Missing plugin directory in jdk and jre downloads - linux

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 ...

Hot to change the default Virtual machin and JDK configuration for NetBeans

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 ...

Should all the setter methods in the JavaBeans remain non-public?

542 byte By khwang1044a at 2007-11-27 11:07:19
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 ...

Collator Question

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 ...

add listener to listen other component change

1112 byte By angelflareea at 2007-11-27 11:07:45
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 ...

i have problem with JTable and Editable JComboBox which is added to column

215 byte By vijaycanaana at 2007-11-27 11:07:48
<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>

jLabel floating with mouse

303 byte By Erdal_YILMAZa at 2007-11-27 11:07:54
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 ...

Elipse button in an editable cell

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. ...

Passing VM arguments from within a JAR

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 ...

Improving TableRowSorter Filter Performance

5346 byte By icewalker2ga at 2007-11-27 11:08:46
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 ...

How do I set the number of columns for JTextPane

163 byte By youhaodiyia at 2007-11-27 11:09:00
<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>

need help

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 = ...

JTabbedPane: black text on black background when windows is on HC#2 mode.

438 byte By rabbit_sebastiena at 2007-11-27 11:10:11
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 ...

No Supporting file in the Desktop

371 byte By iLoveJavaa at 2007-11-27 11:10:25
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 ...

TableHeader Resizing Problem

3989 byte By morning3evening4a at 2007-11-27 11:10:38
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 ...

Accelerator problem

211 byte By student@sunDNa at 2007-11-27 11:10:43
<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>

Reading/Writing data into .xml file

229 byte By tariqshta at 2007-11-27 11:11:40
<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>

GUI like the AIM client

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>

Accepting date in JTextField and converting to date format

204 byte By islandhopea at 2007-11-27 11:12:09
<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>

Jigloo GUI

638 byte By Brambiorixa at 2007-11-27 11:12:20
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 ...

SUNRAY and FEDORA 7

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>

number format

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 ...

Cut/Copy files

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 ...

Using JTree to browse remote system

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>

Menu Event

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 ...

@Action Annotation

363 byte By jb_revof11a at 2007-11-27 11:13:12
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 ...

How to avoid flickering when replacing a panel?

365 byte By jhodgskia at 2007-11-27 11:13:16
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 - help please

2582 byte By SiForstera at 2007-11-27 11:13:25
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 ...

showing system time

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>

Paint(), active window, cursor

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 ...

Sun download manager exception when downloading tomcat WSDP

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 ...

Possible bug in JTable with AUTO_RESIZE_OFF

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 ...

JRadioButtonItemMenu

243 byte By doron1970a at 2007-11-27 11:14:19
<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>

Mouse Events on Disabled Buttons

533 byte By sunsdn123a at 2007-11-27 11:14:28
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 ...

JPanel opacity

441 byte By Me_Titusa at 2007-11-27 11:14:31
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 ...

text with link

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>

How to obtain the string selected by mouse in a TextField

273 byte By Kartoffela at 2007-11-27 11:14:39
<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>

How to convert Java unicode to "Shift_JIS"

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 ...

Clicking on a text and displaying its components

339 byte By Drake_Millera at 2007-11-27 11:14:49
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 ...

JFileChooser lockup...

1036 byte By zparticlea at 2007-11-27 11:14:51
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 ...

Many combobox in table

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 ...

A FileChooser Component

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 ...

Error 1101 reading from file:http:/javadl-esd.sun.com/update/1.6.0/sp-1.6.0

383 byte By galasportna at 2007-11-27 11:16:05
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 ...

FlowLayout

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>

GridBagLayout

4826 byte By SidewinderXa at 2007-11-27 11:16:19
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 ...

Am I doing this correctly?

13756 byte By hypoglycemica at 2007-11-27 11:17:00
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 ...

Showing progress bar when printing

1274 byte By TrAnScEnD3nTa at 2007-11-27 11:17:04
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 ...

Accessing request headers

1044 byte By MadPenguina at 2007-11-27 11:17:23
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 ...

Embedding .net control in Swing

825 byte By konradgarusa at 2007-11-27 11:17:24
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 ...