Help: JSlider to adjust Text on JPanel

221 byte By _louiebagza at 2007-11-27 9:01:34
hi guys, I'd like to ask for some help... I want to use a JSlider to adjust the size of a text that is rendered on a JPanel (to give a zooming in / out effect) ... please give inputs... thanks

Have system wait until GUI is completed

329 byte By ponchoa at 2007-11-27 9:01:44
I wrote a program to monitor a seniority list. If an odd last name, first name, etc is encountered, a gui opens to request the proper form of the name. The problem is that the program keeps running even though the gui has not yet been fililed out. How do I stop execution until the GUI is ...

Eclipse 3.2 and Weblogic 8.1

313 byte By Slockita at 2007-11-27 9:02:05
My project builds and deploys fine, and executes, except if I set a breakpoint in Eclipse debug, the Eclipse debug session will disconnect from the JVM as soon as it hits the breakpoint. I tried moving the breakpoint around and whereever the breakpoint is, it disconnects. Any ideas? Thanks. ...

Tab traversal

6046 byte By Le0a at 2007-11-27 9:02:27
Hi,I'm currently working on a virtual keyboard that allows the user to traverse the textfields using the tab button and came across an interesting problem. The first key pressed from my virtual keyboard after virtual keyboard tab traversal seems to be ignored. However, subsequent key presses ...

Cross-platform portability

1104 byte By jezzica85a at 2007-11-27 9:02:40
Hi all,I'm building a custom ebook wrapper that I'd like to be able to deploy on any system. The issue is that I need to include the raw text file of the book in the jar file in order for the program to work and be self-contained. I don't want just anybody to be able to reach in and snag ...

Not getting OutOfMemoryError when Perm runs out of space

724 byte By mtfa at 2007-11-27 9:02:51
Using Java 1.5.07, the PERM gen is filling to more than the default 64MB.When it does, instead of an OutOfMemoryError, the garbage collector runs over and over again until it can load all of the classes that it needs (which it never does, so infinite loop of full garbage collection)My question ...

convert JPanel to PDF and print

134 byte By va97a at 2007-11-27 9:02:58
HelloDoes anyone know how to convert a JPanel to a PDF file for printing ?ThanksI appreciate the responses

Webstart-deployed desktop app, command line and Windows ShellExecute.

2328 byte By garrytana at 2007-11-27 9:03:06
Hi all,I want to be able to associate Windows Shell registry actions (shellExecute from right click menu, double click, and protocols) with a Webstart Java Swing desktop app. This is pretty key to our deployment strategy.I have two options that I'm pursuing right now. OPTION AUnfortunately ...

FlowLayout wrapped components not showing when nested in a GridBagLayout

1808 byte By jengliswha at 2007-11-27 9:03:11
Hello, I'm having a problem when adding multiple components to a FlowLayout that is inside a grid of a GridBagLayout. I'd love to post some code, but it's really entrenched, so I'll try to give an a decent verbal example below.The problem is that when I fill a grid in the GridBagLayout, it ...

Preventing JTextFields from Resizing When Using SetText()

1092 byte By ScottS.a at 2007-11-27 9:03:13
I have a GUI with several JTextFields that I populate with setText() with data read from a database. When the data read is longer than the size of the JTextField, the field resizes itself to accommodate the length of the data. However, this causes the whole GUI to become off-balance and look ...

scrollRectToVisible() doesn't work?

488 byte By J.D.a at 2007-11-27 9:03:35
I have a JTextPane inside a JScrollPane. This text pane is displaying an HTML document. I've implemented a search function that gives me an offset in the string backing the text pane. I'd like to scroll to this offset. This is what I'm currently doing...Rectangle r = ...

How can I display a tree structure?

417 byte By mie17a at 2007-11-27 9:03:38
I would like to display a tree stucture, but don't want to use the JTree look. I would like the tree to look something like the following (but with boxes around the names, and arrows point from children to parent): child1root | child3 child2 --| child4Is there a class already out there I can ...

Applet works in NetBeans but not outside of it

1321 byte By mtb70mpha at 2007-11-27 9:03:42
I have been working on an applet that accesses a database and interactively allows users to chose which sets of data to display in tabular or graphical form, and it works in NetBeans but when I try to run even the html code that NetBeans provides for it, i get the following ...

Jtable renderer doesn't work after sorting

1792 byte By exxonizera at 2007-11-27 9:04:07
Hi !I have a little problem with my JTable. I have overridden the renderer to change background of a row when a date from a column is before today. everything is fine until I sort the table - the highlighted rows remain in place, but the data gets sorted out.Here's the code:tableL = new ...

Publish apps via Sun Global Desktop without a browser

823 byte By guardian07a at 2007-11-27 9:04:27
Hi all..I have searched everywhere but can't find the solution to my problem.is it possible to publish an application from a Windows Terminal server, without going through the web interface? (ala citrix)My current solution is as follows:Install the "Sun Secure Global Desktop Classic Native ...

Sum a column of a JTable

289 byte By gangistera at 2007-11-27 9:04:28
I;m having some trouble with this one...How could I sum all the values from a column of a JTable and make it appear on a JTextField. The JTable is going to be editable, so I need to recalculate the value of the JTextField each time the data on the table changes....any ideas?

About the action of a button

1279 byte By youhaodiyia at 2007-11-27 9:04:33
I added a button on my program and want to catch the event listener. I found there are two ways to do this:1.JButton button = new JButton("button");button.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){//... }});2JButton button = new ...

Java.awt.Canvas eclipses drop down JMenu in GUI

7611 byte By OrangeKyoa at 2007-11-27 9:05:01
First, thanks to anyone who can offer me assistance on this topic. The problem is something that I feel shouldnot have occurred, and i also feel that there should be a simple solution that just seems oblivious to me right now. Perhaps I am using the wrong components or initializing them ...

table.setAutoCreateRowSorter(true) - problem

770 byte By Holoda at 2007-11-27 9:05:19
I have a JTable.It based on DefaultTableModelI keep my source data in VectorI have to develop such functionality:User presses button and sees all rows, where values are duplicated in columns.For example:hello1bye2where3give4hello5bye6After pressing button user will see in table only:hello ...

How to move items from one JList to other

1028 byte By singhvisuna at 2007-11-27 9:05:30
Can u pls help me out to implement this(I m using Netbeans 5.5):I want to move items from one JList to other thru a ADD button placed between JLists, I am able to add element on Right side JList but as soon as compiler encounter removeElementAt() it throws Array Index Out of Bound Exceptionand ...

About the MVC in swing

107 byte By youhaodiyia at 2007-11-27 9:06:34
Why does swing combine View and Controler into one piece, UI? Is there a particular reason for this?

Glitches with painting a component into an image, with AffineTransform

6045 byte By ounosa at 2007-11-27 9:06:47
I made the test program below. I want to create an image out of a component, that has some random lines painted on it. Running the program and pushing the button will create a file "out.png".The component has original size (4000,4000). I try to scale it down with AffineTransform, applied into ...

wizard japplet

338 byte By ftsoa at 2007-11-27 9:06:48
Hi,I want to make a wizard japplet!I have tree jpanel class with three next buttons inside them.I want when i start the japplet it starts with the first jpanel.when i clik the next button of the first jpanel the japplet will restart with tha second jpanel....Sorry for my English!Any ...

JTable with Combobox - key navigation problem

325 byte By 247a at 2007-11-27 9:07:17
hi I want to control Key navigation in JTable with Jcombobox inside one cell. How to give focus to combobox and get back to Jtable while navigating using keyboard. I can't get the foucs back to my JTable from the combox . please help me to solve this problem. waiting for ...

Signed applet throws java.security.AccessControlException: access denied (j

29982 byte By Gareth.Hughesa at 2007-11-27 9:07:20
Hi all,I am really struggling with setting up a working security policy file for an applet I have developed. All was working fine with JRE 1.5_06 (at which point my simple single class applet wasn't even packed into a JAR, let alone signed) but the applet, and in particular JFileChooser became ...

Scroll bar does not retain its position after or before pack

659 byte By rose@rosea at 2007-11-27 9:07:21
Hi All,My code is:scrollPane.getHorizontalScrollBar().setValue(100);//pack(); log.debug("Value>" + scrollPane.getHorizontalScrollBar().getValue());Initially my horizontal scroll bar position is 0.Then i am am hardcoding it to 100.But now my scroll bar position is at 90.Value>90I don't ...

JPanel with SpringLayout in JScrollPane does not work

6599 byte By ntalamaia at 2007-11-27 9:07:38
I don't know what I have done wrong... I will try and leave the irrelevant parts of my code outside. What I am trying to do, it do build a repository of components. Something like JavaBeans: the repository view contains a visual representation of all components. My repository is the ...

Moving message bundle (i18n) to another package within NetBeans...

718 byte By Jacklera at 2007-11-27 9:07:47
Hi,I'm using the NetBeans GUI builder (matisse) to create an internationalized (i18n) swing application.My bundle properties file (which contains all the internationalized labels and so on) is located in a package on the classpath. Now I want to move the bundle to another package - can this be ...

Cannot get lazy downloading to work jdk1.5.0_11

9148 byte By ptecha at 2007-11-27 9:07:49
Hello,I have a web start application that was deemed too slow during the first launch over a crappy connection. I successfully implemented pack200 into my build, and now I need to address the period of time between the application banner disappearing and the application appearing. I was able to ...

JFrame 1 and JFrame 2

143 byte By _onmosh_a at 2007-11-27 9:08:37
Need help please.....how to send a text from jTextField1 of JFrame 1 to jTextField2 of JFrame 2? i'm using netbeans.... thanks..

how to underline char in text area

348 byte By Prashant_SDNa at 2007-11-27 9:08:45
i have two line text and using single string for that. for displaying multiline text using JTextArea, and did set property so its look like a label, now i want first char of text should be underlined.is this possible with JTextarea. one more thing i don't want use HTML tag label for this ...

menu accelerator showing text, not symbol

595 byte By patumairea at 2007-11-27 9:09:24
Hi,I set an accelerator on an action that I use in a menu item like this:action.putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_PERIOD, InputEvent.CTRL_MASK));In the menu item, I get something like:<menu text> Ctrl-PERIODnote the word period is spelt out in text but I want it ...

Disabling Parent Window

179 byte By anthony.c.smitha at 2007-11-27 9:09:27
I have a JDialog window that's opened from a JFrame. I was wondering how to make it so that when you click on the JFrame it wouldn't allow you to access the parent frame.

setColor question

2431 byte By Salmon393a at 2007-11-27 9:09:30
Hi, newbie here with two questions. I'm trying to draw three different triangles, all within the bounds of a JPanel, each with a different and random color. This gives me exactly what I want, but all three triangles are the SAME random color.Second question: the bounds are given to me by ...

Problem with CardLayout and Panels

1023 byte By kory.kirka at 2007-11-27 9:09:33
I am almost finished with this application I am writing, using swing components. I use a card layout to navigate through multiple JPanel objects I have. I created an object called OutlinePanel that extends JPanel. I have two of these in my application in my panel with the card layout. The first ...

How to add JPanel to JLabel?

334 byte By sunnymanmana at 2007-11-27 9:09:34
Hello sir:I am not sure that Can we add JPanel to JLabel?we know that we can we add JLabel to JPanel .Is it logically correct or not?I google a lot, cannot find this kind of example, I tried to do not success.anybody can help give yes or no and explanation, if possible, ...

Is it a bug or how to solve it?

467 byte By sunnymanmana at 2007-11-27 9:10:02
Hi, Sir:In my program, I tried to use JPanel jpanel = new JPanel(): jpanel.setToolTipText("This is a JPanel");when I run, I got no error, but program stuck, no move,but some program I can do it if without Drag and Drop, but if once uose DnD, and setToolTipText, I cannot drag again, What is ...

JTable Ext - GUI problem

241 byte By Peleyala at 2007-11-27 9:10:15
Hey,I would like to know if there is a grid/table written in Java that looks like the exceed grid (including clustering, grouping, coluring cells and other stuff)i would like to see some samples, and code...thanks

How to setText from tab1's JTextField to tab2's JTextField?

3000 byte By jiong_ronga at 2007-11-27 9:10:17
Hi, How to setText from tab1's JTextField to tab2's JTextField, anyone can help me? When I press a button, it cannot pass the tab1's txt1.getText() to tab2's txt2.setText(). I have a 3 simple class that show below:** Tabmain.java **===================================================import ...

set text in jTextField

848 byte By ElishaWa at 2007-11-27 9:10:39
can you please suggest whats causing the error-->Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 1 >= 1private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {int r1 = 1;int c1 = 1;int c2 = 2;int c3 = 3;Object tf1 = jTable1.getValueAt(r1, ...

Applet works in NetBeans but not outside of it

1363 byte By mtb70mpha at 2007-11-27 9:10:58
I have been working on an applet that accesses a database and interactively allows users to chose which sets of data to display in tabular or graphical form, and it works in NetBeans but when I try to run even the html code that NetBeans provides for it, i get the following ...

applet read server prop

1987 byte By aster_bodya at 2007-11-27 9:11:19
HelloI cannot figure out how to get an applet, to read a simple properties file that is at the same directory level as the html/jsp file that loads it. I have tried below and it fails with fnf, even though if I put in the full url name in the browser it opens the fil directly. What dont I ...

Add action listener to table cell

1281 byte By Holoda at 2007-11-27 9:12:05
The topic of my previous thread was:How can I get characters, which user inputs into table cell?I've added lisateners to table:table.addKeyListener(new java.awt.event.KeyAdapter() {public void keyPressed(java.awt.event.KeyEvent evt){System.out.println("keyPressed");}public void ...

Read/Write App Files Under Limited User Account

1261 byte By JimDVa at 2007-11-27 9:12:08
Hi All,My desktop app is intended for Windows only. I'm writing files to the hard disk to store app specific configuration.The applications main data source is a ZIp file that consists several XML files. The user can store this ZIP anywehre they like and the application will extract the ...

Developing a screen with buttons like keyboard buttons

145 byte By yska at 2007-11-27 9:12:11
I want to develope a screen with a keyboard buttons (same as keyboard modal) in swings.Plz help me on this topic.Thanks in advance.

JScrollPane

302 byte By john8921a at 2007-11-27 9:12:16
HiI am trying to make a JPanel which is added in a Container getContentPane.In the JPanel there are so many JLabels that these are exceeding the size of the JFrame. I therefore wants to add a ScrollPane in the JPanel.Can ANy one suggest me how can i make it ...

about the table

142 byte By vasmhi_1981a at 2007-11-27 9:12:19
while entering the data in a table of a particular textfield ,the data entered should append from right to left after the decimal point

A question about event on swing.

421 byte By youhaodiyia at 2007-11-27 9:12:28
I read a article about the event in lightweight component and heavyweight component. There is a different:"Mouse events on a lightweight component fall through to its parent; mouse events on a heavyweight component do not fall through to its parent." I don't understand how a Mouse event fall ...

Problem while changing label text during server client communication

1062 byte By snehaa at 2007-11-27 9:12:41
Hi All,I've a Swing application, I m communicating to another application thru socket,from that application i've to get some values and then i need to show those values on "Labels" in Swing application. These values will get changes when user presses diff values on command prompt (thru ...

JTree. Editting.

218 byte By EFuentesa at 2007-11-27 9:12:59
I'm using a Jtree component, but i need to change the default behavior on editting. I need to change the event to edit a Tree node, in order to use a double-click to start editting instead of thee.Thanks