button that calls repaint() doesn't stop calling it.

9692 byte By Daruma at 2007-11-27 11:42:40
Greetings!I've created an applet that displays a sequence of images depending on what button is pressed.The paint() method displays the necessary images as desired. Currently, I have a button that, when pressed, calls the paint() method using repaint(). However, when the button is pressed the ...

Preventing the popup of a JComboBox from displaying

9429 byte By Ruanaea at 2007-11-27 11:42:50
HiAgain i come seeking advice. What I'm trying to achieve is a JComboBox which looks enabled i.e. you can read the text of the currently selected Item but which is disabled in terms of functionality i.e. does not show a popup when clicked.Having searched both google and the forum I've written a ...

Testing for Organization -Need SSGD administration download pages

580 byte By linuxswana at 2007-11-27 11:43:05
Hello Sun TeamUntil now Iam very happy with Installing Sun Secure Global desktop in our Organization and using the Trial version. We have some small issues with the Driver Mapping, Printer installation and Connectivity failures.Please provide the Sun Secure Global Desktop Full Documents for ...

JBoss basic question but unable to solve

2737 byte By tutikashilpaa at 2007-11-27 11:43:44
Hi,I am new to JBoss server.I deployed ejb 3.0 application in Jboss 4.0.5. successfully.I am trying to deploy the same jar and ear file in ejb 4.0.4.GA. I didnot change anythimg inthe jar and ear filesI dont see any thing on the server console.It shows "started ear file".But it didnot show that jar ...

ADD a Color Palet in a Combo box

180 byte By CDCDevelopera at 2007-11-27 11:44:49
<p>I need to create a Combo box with a Color Palet, as soon as the user clicks lets say on green on the palet that color is selected. </p><p>Please any help will be appreciate.</p>

Trouble with connecting a gui to a database

1382 byte By morganista at 2007-11-27 11:45:19
I have been trying to follow the connecting a GUI to a Java DB Database with Netbeans IDE tutorial. But when I try to download the GUI BD Exercise Initial (which it states is needed to complete the tutorial) it does not download it. I have looked in the Projects section but it does not appear but ...

Setting a image as JButton's background

263 byte By TrAnScEnD3nTa at 2007-11-27 11:45:42
<p>Hi all,</p><p>I want to set a image as a JButton's background with some text.</p><p>Do I need to do custom painting to set the image as the background in paintComponent(g) method? If so, can anyone provide me with a simple example to do it...</p><p>thanks</p>

In JRE 6 update 2, php generated <argument> does not work in a jnlp file

1603 byte By harnoncourta at 2007-11-27 11:45:59
When we generate jnlp file through PHP, it is generally because we need to change something dynamically - no need to use php if the jnlp file is unchanged for all services.(In Windows PC) if one install Java 6 update 2 and the application uses a php generated jnlp (in my case, linux server), the ...

Jtable no header

60 byte By Ryan747a at 2007-11-27 11:46:08
<p>I created a jtable but the table header didn't show.</p>

Update method

492 byte By pundita at 2007-11-27 11:46:10
Hi all,I am facing a problem wrt the update method. Even though i over ride the method in my class(it extends a Component), a repaint call goes to the paint call of my class.The documentation clearly says that a repaint call executes the update of the component. So shoudnt it call the over ridden ...

In JRE 6 update 2, php generated <argument> does not work in a jnlp file

1542 byte By harnoncourta at 2007-11-27 11:46:21
When we generate jnlp file through PHP, it is generally because we need to change something dynamically - no need to use php if the jnlp file is unchanged for all services.(In Windows PC) if one install Java 6 update 2 and the application uses a php generated jnlp (in my case, linux server), the ...

Moving around in a j scroll pane.

407 byte By jpeanuta at 2007-11-27 11:46:37
I have a JTextArea inside a JScrollPane and I'm trying to get the scroll pane to goto a certain line number that I want by using:TA.setCaretPosition(10*linenumber);the linenumber is the line number the user enters and then the 10 is just the pixel it will go down because the interval I counted ...

Row and Col count

147 byte By CodeXa at 2007-11-27 11:46:47
<p>Hi guys... i am using a Text Plane as my GUI component ...</p><p>How can i get the row count and column count of the current caret location.</p>

JEditorPane throws "java.lang.RuntimeException: Unclosed comment"

2239 byte By SenNira at 2007-11-27 11:47:05
[java version "1.6.0_01"Java(TM) SE Runtime Environment (build 1.6.0_01-b06)Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)]Code to generate this problem :import javax.swing.*;import java.io.*;public class TestJEditorPane {public static void main(String[] args) throws ...

disableEvents( AWTEvent.KEY_EVENT_MASK);

320 byte By doron1970a at 2007-11-27 11:47:23
Hi,I'm using disableEvents( AWTEvent.KEY_EVENT_MASK)in my aplet cause I want to stop sending key events at some point, but it doesn't do anything.Do you know why?Do you know how to use this feature properly?Any better suggestion how to stop sending ...

How can a JTextField make the add() method believe it's another object?

739 byte By micro5a at 2007-11-27 11:47:34
I have created a HistoryTextField class that is supposed to replace any JTextField. It is actually an editable JComboBox that stores previously entered values so the user can choose from them. Everything works nicely, my only problem is that it is not compatible with JTextField because my class now ...

Hide Arrow of the

272 byte By ekoshaa at 2007-11-27 11:47:38
<p>Hay All,</p><p>I am using a JComboBox and I wish to remove the arrow button that triggers the Popupmenu as I use an alternative way and the arrow is redundant and making my application ugly :) ...... is there a way to remove this button?</p><p>Thanks for your Help!</p>

Paste printing in reverse order

793 byte By CodeXa at 2007-11-27 11:47:50
Hi i am using this code as the Document Stylepublic void insertString(int offs, String str, AttributeSet a) throws BadLocationException {try{for (int i = 0; i < str.length(); i++) {// for(int i = str.length() ; i > 0 ; i--){ String s = String.valueOf(str.charAt(i));if(Main.Mainmenu.seqmode==3) ...

How can we prevent jar file from being extracted.

322 byte By prabh13a at 2007-11-27 11:48:21
I have made an application and now I want to distribute it. My main concern is that class files can be easily decompiled.If jar files can be prevented from being extracted then this may solve my problem or kindly suggest me some way through which class files can be sealed or prevented from being ...

java.lang.NullPointerException when scrolling in JComboBox

4032 byte By Jethroa at 2007-11-27 11:48:49
Hi everybody,I use a JComboBox in my application. If I scroll it a NullPointerException is thrown:java.lang.NullPointerExceptionat javax.swing.BufferStrategyPaintManager.flushAccumulatedRegion(BufferStrategyPaintManager.java:406)at ...

Problems with a JTextField inside of a JTextPane

7500 byte By Naquadaa at 2007-11-27 11:48:53
I have a JTextPane that needs to have individual words or phrases (in the DefaultStyledDocument) that can generate a MouseEvent. I've tried wrapping a JTextField in a Style (when adding it to the StyledDocument), this works nice and does create the type of MouseEvents that I'm looking for. But ...

Does it matter the order?

371 byte By ardmorea at 2007-11-27 11:49:22
<appletcodebase="."code ="test.class"archive = "some.jar"...and><appletcode ="test.class"codebase="."archive = ...

Document Listener not working the way i would like

693 byte By noe.rochaa at 2007-11-27 11:49:23
Hello.I have this situation:A Jtable and a field of JTextfields that are populated by clicking on the JTable rows or manual inserction.All the JTextFields have a DocumentListener attached.When i click on a row, every JTextField that is populated fires a insertUpdate and a removeUpdate event(the 1st ...

How do I get the GidBagLayout location from my buttons?

1960 byte By Nizzlea at 2007-11-27 11:49:25
How could I get the location of my JButtons (or JLabels) in my GridBoxLayout?I've tried all that I could think of..here some code sampleJButton button;GridBagLayout layout = new GridBagLayout();[...]GridBagConstraints c = new GridBagConstraints();c.weightx = 0.5;c.weighty = 0.5;c.insets = new ...

Image in header of print (JTable)

1213 byte By hes01a at 2007-11-27 11:49:41
Hello,I have a question about printing a JTable. I use the following code which works well but I want to extend my print with a image (a logo) in the header of every page. What is the best way to achieve this?My second question is how I can change the font size of the header?Thanks for your ...

Is it still not advisable to use non Ascii letters in class names with 1.6?

230 byte By rigoloa at 2007-11-27 11:50:00
<p>I would like to be able to use European accented characters in class names.</p><p>Is it still not advisable to use non Ascii letters in class names with 1.6? Is it still not portable?</p><p>If so, why can't this be solved?</p>

JTreeTable row selection

232 byte By nicecude31a at 2007-11-27 11:50:06
<p>Hi Guys,</p><p>Is there a way i can select the row in a table, without actually passing the focus to that row. I want to programatically highlight the row instead of selecting it. please help me in this regard</p><p>-nicedude</p>

Wy FreeBSD not run client sgd?

549 byte By m3system_marceloa at 2007-11-27 11:50:10
Wy FreeBSD not run client sgd?SGD client (sgd web) and sgdclient will be supported by SUN SGD?Can I compile the client for run in FreeBSD 6.2?Best Regad'sMarcelo Moreira Martins marcelo.martins@m3system.com.brTechnical Consultant - Tarantella Systems EngineerSE- Systems Engineer - M3 System ...

Refreshing JTree

629 byte By Alantiea at 2007-11-27 11:50:43
I already find that refreshing JTree trouble is usual question - but never seen answer on my problem.i am using JTree and model implementing FileTreeModel. i have popup menu with "delete file" for example and when i m pushing it - i do the following code:boolean success = (new ...

Updating JTable cell after sorting by column

348 byte By Santosh.Bhushana at 2007-11-27 11:50:47
When i update a cell data of JTable after sorting it by one column, though the data gets updated but it does not remain sorted and the data appears back as it appeared for the first time. How can i ensure that the data table structure does not change once i update a cell apart from the cell which i ...

How to un-install those java XXXdemo

320 byte By fla22a at 2007-11-27 11:50:57
How to un-install those java XXXdemo http://www.airfirst.ch/b2/Ecran05.pngNone result using the remove button ("Supprimer" button in the screen shot).I got them launching demo (orange Launch button) ...

JComboBox renderer closes after each selection

50340 byte By programmer_girla at 2007-11-27 11:51:03
Hello,This follows my previous post regarding "How to add JCheckBox objects to JComboBox". With Ice's help, I've managed to make some good progress. So now I'm having other issues as I go further.In the code below, I have the following issues:1. My JComboBox renderer closes after each selection ...

setPreferredSize across 2 monitors

584 byte By ricochet_008a at 2007-11-27 11:51:08
I have 2 monitors and I want a JFrame to be displayed across the 2 monitors.when I force the frame to be set with the size it seems to have the dimensions I entered but does not span across the 2 monitors.JFrame frametest = new JFrame();frametest.setPreferredSize(new Dimension(2280,1520)); // width ...

Enable a search button as soon as a character is entered in text field

1868 byte By SDNJavaa at 2007-11-27 11:51:23
I have a text field (java swing) and a search button.When the user hits RETURN, the text field fires an action event.Is it possible that as soon as I enter a character in the text field, it fires an action event without hitting the RETURN key or pressing the search button?What I want to achieve is, ...

JTable help needed

631 byte By PingGuya at 2007-11-27 11:51:40
Is there a way to get programmatic control of the actual text editor that is used by JTable when you are modifying text within the table? I want to be able to change the default behavior of the editor but so far I can't find a way to even access it. I've been playing around with the ...

Problem aligning components on a panel using GridBagLayout and GBC

6286 byte By scshekhara at 2007-11-27 11:51:56
I am developing a GUI where I will be having several rows of label/textfield pairs ( each row will have at the most 3 pairs ). I just started with 2 rows. The first row has 2 label/textfield pairs and the second row has 3 label/textfield pairs. I am running of out ideas on how to make them aligned ...

Centering a single line in the middle of a JTextPane

1576 byte By jezzica85a at 2007-11-27 11:51:57
Hi everybody,I'm trying to center a line of text designated as a divider on a JTextPane, and only that text. For some reason, though, when I do that, it centers all the text below the divider on the JTextPane too. The relevant code for this is:MutableAttributeSet bodyCenter = new ...

a jar problem

1078 byte By mohamad.atef.khafagaa at 2007-11-27 11:52:00
well, I'm facing a problem with my jar I was creating a digital clock application , I used the class loader to load a font that is not rgestered with my system and it runs perfectly from the netbeans , but when I build the jar it doesn't work as it says that there is a NullPointerException as the ...

JTable cell color change Single METHOD

483 byte By Cosaia at 2007-11-27 11:52:03
I searched the forum but I could not find a method that is something like changer(int row,int column, Color color).the examples show that I should rewrite a method of a class which is derived from defaultTableCellRenderer. In that case as I understand I should wire the algorithm to change the cells ...

All Frames in One

312 byte By blackmagea at 2007-11-27 11:52:24
On Windows, each new JFrame created also creates a new taskbar at the bottom of the screen. And for the task bar not to show using a JFrame, editing has to be done to the native code, correct?Well is there a way to have the task bar appear as one and not spread out across the bottom of the ...

JTextfield listening for changes from other class

888 byte By tsg-8888a at 2007-11-27 11:52:28
Hi,Assuming I have a Jtextfield in one of the class1 extend Jframe,how do I update the jtextfield so that it could up make accessible by other class and continuously updated to reflect the input for value rom another class2. In other words very much similar to the observable model view conceptclass ...

Cannot run JRE

460 byte By HMRMSRa at 2007-11-27 11:52:31
Help!!! I have been playing on pogo.com without problem for months now and all the sudden I am receiving the error stating The Java Runtime Environment cannot be loaded." Another error box pops up after I close the internet browser, but I don't know what it says. I have completely uninstalled the ...

Problems about invoke another java application in current JVM

433 byte By hballenchena at 2007-11-27 11:52:52
I want invoke another java application dynamcally through user defined jar and arguments in the same JVM as my application running. I can find the main method from the jar file, and invoke it successfully. But there are two questions:1. When the invoked application exits, my application will exit ...

resizing an imageIcon of a jLabel on a jLayeredPane

590 byte By Kojow777a at 2007-11-27 11:53:12
I have 2 questions, somewhat related:Question 1:I have a jLayeredPane with a number of jLabels of imageIcons. I need to resize the top imageIcon when I move a slider. To get the top component on the jLayeredPane, I use: Component topComponent = layeredPane.getComponent(0);However, I can't figure ...

Text autocomplete , how to implement for each word

6131 byte By rayees1234a at 2007-11-27 11:53:24
This is the code for text auto completed Hi this code will check only the first entered text any one help me out check each wordie if we entered "o" the text organization will display after we gave a "space" then enter the "o" again its not displaying the "organization again, any one can help me ...

Exception in thread "main" java.util.MissingResourceException: Can't find

2878 byte By discuss_javaa at 2007-11-27 11:53:32
Hi,This is my code, I could not find the solution of my problem,--package propertiesdemo;import java.util.*;public class Main {static void displayValue(Locale currentLocale, String key) {ResourceBundle labels = ResourceBundle.getBundle("LabelsBundle",currentLocale);String value = ...

Spaces in JTextPane

4224 byte By Sarjaya at 2007-11-27 11:53:36
Hi...I have a issue using JTextPane. When i given more than one space between characters and reseting the same HTML text, multiple spaces are converted to single spaces.Steps to produce the above issue :-1. Run the below.2. Exter some text=>more than one space=>some text again.3. Click "Show HTML" ...

Flashing undecorated JDialog on resize+setLocation

53331 byte By BuggyVBa at 2007-11-27 11:54:02
Hi everyoneI have a undecorated JDialog with custome resize code. Here is a part of my codeframe.setUndecorated(true);frame.addMouseListener(new MouseListener(){public void mousePressed(MouseEvent e) {sp = e.getPoint();compStartHeight = frame.getSize().height;compStartWidth = ...

Highlight ComboBox

387 byte By asilazmaza at 2007-11-27 11:54:08
Hi everybody,i want to set editable a combobox and set selected(highligted) the first index when i pressed F2. The code i write below;comboBox.addKeyListener(new KeyAdapter(){public void keyPressed(KeyEvent e) {if(e.getKeyCode() == KeyEvent.VK_F2){//?comboBox.setEditable(true);}}});how can i set ...

build JVM/JRE from source

251 byte By _stevea at 2007-11-27 11:54:16
<p>since java is now open source, can we get the JVM/JRE sources and have them built from source ?</p><p>im looking for the source code, i know it exists but still cant find it . if anybody knows where to find it and how to build it please tell me</p>