AbstractTableModel, AbstractListModel and Selection Mode

651 byte By sand_samuraia at 2007-11-27 10:50:08
Hi,I am creating my own custom ListModel by extending the AbstractListModel. I want to set the set the selection mode to SINGLE selection. Anything that makes use of the custom ListModel should by default only be able to select one row at a time, unless they override a method to set the selection ...

adding tabbed pane to a split pane

689 byte By h2opologirly69a at 2007-11-27 10:50:35
How do you add a tabbed pane to a split pane... here is my tidbit of codeJTabbedPane tabs=new JTabbedPane();tabs.addTab("tab1", text);tabs.addTab("tab2",tab2.getPanel1());tabs.addTab("tab3",tab3.getReconPanel());queryPane = new ...

Deploying for different purposes

552 byte By SunnyBoba at 2007-11-27 10:50:39
I'm using JDeveloper to build a desktop app, as a jar file. I want to make 2 deployment profiles, one for Development and one for Production. In C++ I would do this by setting a prefix file in the IDE to include different .h header files that would define anything I wanted, like for the platform, ...

Thread

2690 byte By musiigea at 2007-11-27 10:50:46
My problem is to have the two class below to run in 2 parallel threads. I have been advised to use a work thread but its some hard stuff for a java beginner like me. Plze can I get a hand?class 1public class ttteer{private SimpleRead;public ttteer(){Read = new SimpleRead(this);}public void ...

Weirdness and ignorance

7802 byte By break_the_chaina at 2007-11-27 10:50:48
This is a semi-continuation of another thread in the 'new to java' forum. I'm learning swing and I'm looking for help as I go. Right now I've got a 'lil mini-gui that will let you point to any folder and it will list all of the files subfolders, sufiles, sub-sub files, etc. in that folder. ...

simultaneous graphics and music THREADS with SwingWorker but not working :(

6706 byte By wonderful123a at 2007-11-27 10:50:49
Hello[I sent this originally to java essentials group but got no answer...]please tell what is wrong with my definitions of SwingWorkerprobably just a small basic problem... i am running out of time, so your help is very valuable.My Idea is to have graphics activities in the main thread, so called ...

monitoring visibility on screen of component

751 byte By bjornbjorna at 2007-11-27 10:50:52
Hey all,I have a component that is part of a complex component hierarchy, and I would like to know when it becomes visible and invisible, but not in the sense of the isVisible() function -- I want to know when it is actually visible or invisible. I tried adding a component listener, but that ...

Layers of JPanels? - Game Develloping

605 byte By PirateManiaca at 2007-11-27 10:51:03
Hi all,I am trying to build a game application. In my game, i want to have two layers : one for the background and one for the foreground where some labels will be moved. I have successfully built the background as a JPanel added to a JFrame (setContentPane()). But i have some problems about how to ...

Is it Possible to change default start up JWS dialog?

292 byte By kumahaa at 2007-11-27 10:51:33
<p>During usage of JWS for downloading/launching Client application, default JWS dialog pops up in starting. It says "Java Starting..."</p><p>Is It possible to change that dialog ? For Example i want to change wording from "Java Starting.." on that dialog to My Application specific name.</p>

Layout Managers

466 byte By Jahvaha at 2007-11-27 10:51:47
Whats the best layout manager to use? Do you use them all for specific circumstances or do you just use the same one/ones all the time?I've been trying to make a typical input form with label-text field parings but i can't seem to get it right. I'm not sure whether to have the labels and text ...

Firstime setup of jre

703 byte By aanecitoa at 2007-11-27 10:51:59
What is the best way to have a install of the jre & jnlp for the first time.?My user base may be young adults and parents installing the jre at home and not developers.Think of it as installing a game over the internet with jnlp or Web Start involved but not there initially.I do not want them ...

print report & print preview problem

123 byte By jiong_ronga at 2007-11-27 10:52:11
<p>Hi, how to print data on report or paper? How to make print preview before printing? any suggestion to me? Thank you</p>

How to create a application like windows paint

350 byte By killer8685a at 2007-11-27 10:52:20
Hy to all!I have to create an application which i can use to draww lines by dragging the mouse!What shell i use?Applet,or what?And in the second part of the aplication i have to make a save and open options,which i can use to save and open the drawings that i made!Any help?Jsut give me some ...

Transparent JTabbedPane

1350 byte By drawimagea at 2007-11-27 10:52:22
I have a background image that I need to show through everything. I created a JTabbedPane on top of the background and it was still fine, but as soon as I put a JPanel into the JTabbedPane it is no longer transparent like I need it. I have set both the JTabbedPane and the JPanel inside to not be ...

detect right mouse click on a row of JTable

678 byte By suhua at 2007-11-27 10:52:23
HelloI want to know the row number in a JTable when there is a right mouse click on it by using the code:myTable.addMouseListener(new MouseAdapter(){public void mouseClicked(MouseEvent e){if (e.getButton() == MouseEvent.BUTTON3){ int index = myTable.getSelectedRow(); });But I alway get index = ...

how to resize different columns with different size

163 byte By jamesgoslina at 2007-11-27 10:52:28
<p>hi all,</p><p>i am using jtable my problem is that i wans to make all the columns different size how can i do that plz sujjest me .</p><p>Thanks in advance.</p>

ALWAYS ON TOP

162 byte By aaronontheweba at 2007-11-27 10:52:45
<p>Hi Java guy!!! Hey Im having problems in providing an ALWAY_ON_TOP behavior to a JWindow object... Could you help me on this?</p><p>Thanks and Greetings!!!</p>

JTextArea with Different Fonts

79 byte By blackmagea at 2007-11-27 10:52:54
<p>Is there a way to have JTextArea with multiple fonts at different lines?</p>

event handling

557 byte By BitsLovera at 2007-11-27 10:53:13
I have a class A ( which is a JFram with card layout ). Two other classes B and C ( both are JPanels ). Class A initially displays an instance of the class B in its content pane. When a button is hit in the class B, I want to change the contents of the content pane of class A and display an ...

Is this possible in Java ?

432 byte By SasiKumar_Ua at 2007-11-27 10:53:23
Hi ,I have my Swing application which has a Calendar component like the Windows system Calendar component . I want it to be animated whenever the Component is closed by the close button on top like a Mac OSX Widgets closing animation. So, it is like squeezing the component panel to the close button ...

Officially supported JRE for Windows Vista

162 byte By nraj76a at 2007-11-27 10:53:28
<p>Hi,</p><p>Please let me know the officially supported JRE/JDK version for Windows Vista. Does JDK1.4.2 _XX supports Windows Vista?</p><p>Regards,</p><p>Raj</p>

jtable to database

207 byte By lesbona at 2007-11-27 10:53:43
<p>i would like to ask on how to save all data on jtable to my database.</p><p>cause the data on jtable is imported only from excel files.</p><p>can anyone know the solution for that? </p><p>im a newbie.</p>

Can't get the table display my results

8643 byte By schumachera at 2007-11-27 10:53:47
OK After some good hours of debugging i am able to display my results on JTable for my queries. But i got another problem now. When i select Query2 from my JComboBox and click on execute button nothing happens, same thing for query3 and 4. The only thing which works is QUERY1 why? what am i doing ...

reading server response to a post request

333 byte By sylverspoona at 2007-11-27 10:53:52
My applet send a http request to a server with the POST methode.I use to read the response in the body of the page but in this case the response is in the header of the page.How can a do this ? I'm using a HttpURLConnection but i only can read the date int he header.Thanks for link or ...

Optional java VM arguments

726 byte By konachinababu@gmail.coma at 2007-11-27 10:54:13
Hi all, I am runnig one application from Eclipse IDE with tomcat5.5.when configuring the server I mentiond Optional java VM arguments like below-Durcl.package.base=com.mycomp-Durcl.verbose=false -Durcl.default.domain=mycomp-Djava.system.class.loader=com.mycopm.UnifiedResourceClassLoader ...

Clear JRE cache remotely

364 byte By armoreta at 2007-11-27 10:54:19
Hi,I have a mass deployment problem : I need to clear the JRE cache on several computers remotely (versions 1.3.1 and 1.5.0).Does someone knows if I can invoke the clear action remotely without having to take the control of the computer desktop ?Maybe by using an API with a distributed executable ...

can java open the page, if clicked on the link?

333 byte By amanjmma at 2007-11-27 10:54:24
Hi every one...may any one help me?i created an about dialog box... and it contains a label which is contains my web page... but i want the program... if i clicked on the my web address... it open my page in a default browser...i tried so hard.. but i wasn't able to do that...can any one help ...

Can I set JVM memory size when running applets?

668 byte By hyunga at 2007-11-27 10:54:27
Hi, I have downloaded an applet that renders panoramic images and I have a problem with Java memory. I remember that default maximum size that applet can use is 70MB, and the problem is 70MB is not enough when rendering big images. It is OK when I add"-Xmx -Xms" parameters in the Java Control but I ...

Hi java experts...

283 byte By shanjustusa at 2007-11-27 10:54:45
<p>I have already placed JComboBox inside a JTable.</p><p>But now my problem is that i want to check/uncheck all the</p><p>ComboBoxes in a single stretch when i clicked a checkbox</p><p>named CheckAll which is placed in the JFrame.</p><p>Plz help me...</p><p>Thankx in advance...</p>

JTable-How to save in file

173 byte By nivaz_sharmaa at 2007-11-27 10:55:08
<p>Hi all,</p><p>I am developing an application using JTable in swing.I want to save all the records of that JTABLE in excel and pdf file.Please help me with code.Thanks</p>

EXCEPTION_ACCESS_VIOLATION

16386 byte By gajesha at 2007-11-27 10:55:12
Please tell me the meaning of following error## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c901010, pid=2596, tid=1004## Java VM: Java HotSpot(TM) Client VM (1.5.0_08-b03 mixed mode, sharing)# Problematic frame:# C ...

Symlink Jar with Classpath based deployment causing issues

1669 byte By Warmfusiona at 2007-11-27 10:55:34
Hi,I'm trying to deploy a fairly complex code base in a reliable manner onto a system using Ant which allows Rollback functionality in the event of a failure.I have a pair of directories;/var/distributions//var/www/lib/java/using symlinks to do the following:/var/www/lib/java/CORE.jar -> ...

problem trying to log on to my video library system

18545 byte By james-mcfaddena at 2007-11-27 10:55:42
hello.i am trying to log on to the video library system that i just developed. the LogOn program works to a certain extent (the appropriate programs are shown below). when i try to log onto my system time. a JOptionPane.ERROR_MESSAGE message appears on screen. when i press OK inside the message, ...

JCombo Box with Keypressed

3833 byte By rayees1234a at 2007-11-27 10:55:47
Hi ,Here i have pasted my code, Is it possible to Create and a combo box by pressing the keypressed event package swing;import java.awt.GridBagLayout;import javax.swing.JPanel;import java.awt.GridBagConstraints;import java.awt.Rectangle;import javax.swing.JTextField;public class Key3 extends JPanel ...

PDFBox-0[1].7.4-dev-20061223.jar to read pdf file

246 byte By myhoneya at 2007-11-27 10:55:54
<p>Hi..</p><p>i am reading pdf file using LucenePDFDocument , but it is not reading the big size( more than 20mb file its giving me below exception</p><p>Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</p><p>plz help me</p>

problems trying to view the contents of a text file in JTextArea

5272 byte By james-mcfaddena at 2007-11-27 10:55:56
hello.Im having difficulty trying to view the contents of a text file in a JTextArea. when i run the following program, i press the View Order button. but no data from the Order.txt file is being displayed in the text area when it should be. what can i do to get rid of this problem?import ...

Java Application help and suggestions required

1790 byte By taqi10a at 2007-11-27 10:56:06
Respected Members,I want to make a program in Java but very much confused that whats the best solution, the following is the scenario:The Java program which I have to make is continuously running in the memory like a windows service or process I mean when ever I start my computer the program starts ...

dependent system libraries - LD_LIBRARY_PATH workaround

567 byte By Marton.Sigmonda at 2007-11-27 10:56:07
Hi,libA.so depends on libB.so.The System.loadLibrary("A") call fails with the following error: java.lang.UnsatisfiedLinkError: /home/apptest/.java/deployment/cache/6.0/8/543d1248-5a10af09-n/libA.so: libB.so: cannot open shared object file: No such file or directoryIf the application is started from ...

Swing Application visual state persistence

912 byte By sanchez_pausa at 2007-11-27 10:56:20
Hello,I have a complex SWING application and I would like to save the state of the JComponents on it when the application quits. Then use that state when I run the application again to set the JSPlitpane , floating toolbars, internal frames and the like into the same state that they were when the ...

please help me

5286 byte By james-mcfaddena at 2007-11-27 10:56:28
hello.i am having trouble logging on to the video library system that i just developed. the LogOn program works to a certain extent (program shown below). when i try to log onto my system time. a JOptionPane.ERROR_MESSAGE message appears on screen. when i press OK inside the message, the message ...

jtable in combobox

19830 byte By es14552a at 2007-11-27 10:56:45
Hi,a have a table that works perfect with cell editing, add a new empty row and delete a row when using the table inside a JPanel. But I want to show it in a JCombobox.With code I found in this forum I was able to add the table to a combobox. Now the problem is that editing cells of the table ...

JFrame issue

1941 byte By javapria at 2007-11-27 10:56:52
Hi,I am creating a JFrame and adding two panels using box layout.One panel consists of radioibuttons .When I click on one radio button,the action to be performed is to add a button object to the other panel.when I tried to do this,it worked with out any errors,but the problem is that i can see the ...

JTable with variable columns per row

795 byte By markwagonera at 2007-11-27 10:57:03
I have a request from a user to display different data within the same JTable (don't ask, users...)This would require the table to have, for example, three rows with 4 columns followed by two rows with one column, followed by 3 rows with 4 columns, etc. etc. The width of the cell on the ...

Unable to move column to end of table when horizontal scroll bar is active

491 byte By karsten76a at 2007-11-27 10:57:16
I have a table with 40 columns, but only about 30 of them are visible at the same time due to the restricted screen width. When I move the scroll bars to the right-most position and try to drag a column, lets say from position 38 to 36, the scroll bars immediately jumps to the left-most position an ...

BoxLayout Can't be shared.

4832 byte By nspeaksa at 2007-11-27 10:57:30
I run the following code as s5.java import javax.swing.*;import java.awt.*;//<applet code="s5.class" width=300 height=400></applet>public class s5 extends JApplet{JPanel colpanel, logpanel, mainpanel;JLabel l,l1,l2;JButton b,b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13,b14;JTextField ...

how to open the same applet over multiple clients.

276 byte By jamesgoslina at 2007-11-27 10:58:08
<p>hi all,</p><p>i am making a applet application .The same applet has to be opened at the same time at different client and the changes in the information upon the applet page must be reflected at all the clients how can i do that plz sujjest me.</p><p>Thanks in advance.</p>

JFileChooser and Network Drives

494 byte By gers4302a at 2007-11-27 10:58:15
First off:Java Version: 1.6.0_01Windows XP & Windows VistaMy application uses JFileChooser to select a file. When I try to open a mapped drive, I get a waiting cursor and then nothing. I can hit cancel, so the application doesn't freeze, but the directory listing never shows up for the mapped ...

copy JPanel

274 byte By kerryblue19a at 2007-11-27 10:58:25
<p>Hi,</p><p>I'm wondering how I can make a complete copy of a JPanel. I'm not sure how to use clone and I've tried looking it up, and just assigning a variable to the JPanel doesn't work.</p><p>Any ideas?</p><p>cheers</p><p>Message was edited by: </p><p>kerryblue19</p>

Problem Adding components to JApplet ...

1690 byte By Hagena at 2007-11-27 10:58:27
I have a JApplet that is currently displaying a game which is basically a 2D image array with images that are shuffled around and need to be sorted...I'm having problems adding Swing components to said JApplet!!!JApplet: void addComponents (){JLabel bottomLabel = new JLabel ("this is quite clearly ...

Grid Layout and component locations

527 byte By cratnama at 2007-11-27 10:58:33
Can any one tell me if it is possible to get the location of a Jlabel in a gridLayout using getLocation().I have 12 labels in each 12 consecutive grids , one below the other . This cycle continues till the input is exhausted. There is no user interaction at all. Once the program begins to run , it ...