How to get the images from cam and place it into my server.

339 byte By roypp2a at 2007-11-27 9:42:34
Hi guys,I knew all of programmer's all of you here in this forum has advanced skills in temrs of programming.I need help and i hope that you all can help me this:I need script that would get images from the cam and put those images to my folder in my server.Please advice.Thanks,Roy ...

custom the scroll bar size of ComboBox

523 byte By mcstevenjpa at 2007-11-27 9:42:37
Hi all.Is it possible to custom the scroll bar size of ComboBox. The reason that I want to customize the scroll bar is my ComboBox size is small. if the scroll bar appear, all items have been overlapped..My ComboBox size is 35x25 pixel, and I have extended the BasicComboBoxUI to customized the ...

Center JFrame on the screen

719 byte By tristanlee85a at 2007-11-27 9:42:39
I've been trying to figure this out using every different example I find online, but nothing is working. I'm using version 1.4.2 so I know it's a bit different than version 1.6. Currently, when I open my application it'll open to bottom right corner of the screen at an 800x600 size. I want ...

Problem to input character from JButton into different JTextField

1709 byte By arjensena at 2007-11-27 9:42:42
Hi,I have 2 JButtons and 2 JTextField, each JButton hold a character. The following code is only allow to input character for one JTextField, does any idea to make it for different JTextField?import java.awt.*;import java.awt.event.*;import javax.swing.*;import javax.swing.event.*;public class ...

Show graphic in JPane instead of JFrame

7375 byte By kandua at 2007-11-27 9:42:51
Hi,I have a graphic that is been shown in a JFrame, but I want to have it in a JPanel. Is it possible? How?Here is my code.Thankspackage ptolemy.plot.demo;import java.awt.GridBagConstraints;import java.awt.GridBagLayout;import java.io.File;import java.io.FileInputStream;import ...

two different jscrollpane but sensitive to the same view

468 byte By Gabia at 2007-11-27 9:42:58
hi all,i guess i have unusual question.is it possible to create two jScrollpane obviously in different area in my guibut they will react for the same events?for example:in my gui i have a tree that wrap with a jScrollpane.i want to put in other place another jScrollpane that will sense the same ...

Java BUG

7205 byte By Maik20Screena at 2007-11-27 9:43:44
Can anybody help me plz. I get this error message from java. I tried Java 1.42 and Java 5 both result in this error:Hallo,nach einigem hin und her stehe ich nun auf dem Schlauch. Ich erhalte folgende Fehlermeldung von Java und wei?einfach nicht weiter:## An unexpected error has been detected by ...

How to parse and get the data from an excel sheet

272 byte By kranthika at 2007-11-27 9:43:45
HaiI have this requirement of parsing an excel sheet and getting the data in it and storing the data in the appropriate tables in database.Please suggest me some way of doing this or the links wherein i can get some solution.Thanks in advance.........

how to change color of selected row in jtable

324 byte By socmaga at 2007-11-27 9:43:56
hi to alli am using this code to change color of selected row but it color all cellsTableCellRenderer table=DisplayTable.getCellRenderer(selectedRow,2);Component ...

native2ascii -> same input -> different output!?

696 byte By lotka at 2007-11-27 9:44:05
Hello all,I have to convert this UTF-8-Property-String:label_from=Отinto "ISO 8859-1 with Unicode escapes" with native2ascii.On my Linux-Machine (Java 5) I get:label_from=\u041e\u0442This is right and leads to a correct output :)On a Windows-Machine (I unfortunately have to work ...

problem with cz.dhl.ftp.Ftp.class

940 byte By josh77a at 2007-11-27 9:44:56
In order to bypass a nasty HTTP upload problem at my cheap hoster, I want to use a java ftp upload control. I've stumbled upon http://jvftp.sourceforge.net/ (which is LGPL-equived) but can't get it up and running. I know a fair bit about js & ajax, but nexttonothing about java.. Hope you ...

How to set Defalut radio button selection in HSB panel in JColorchooser

272 byte By sekhar.allaa at 2007-11-27 9:45:15
hi all, i developed a new colorchooser using JColorChooser, but now i need to change the HSB panel view, by defalut " H " radio button is selected in HSB panel BUT my requirement is " B " radio button should be selected by defalut.Thanks in Advance...

Swing and Internationalization

360 byte By Sharifa at 2007-11-27 9:45:22
Dear Sirs,I have a small Swing application that has only one label (for example Name). Is it possible that I have a menu that contains items such as English, Italian etc that converts the text for the label to the corresponding language ( for example when the Italian menu is clicked then the ...

How to relaunch application after download?

335 byte By hendrela at 2007-11-27 9:45:23
HiI have lanuched an webstart application form the internet and successfully run the application on my desktop, but once I close the app it is gone. I have no desktop shortcut to get to it again. How can I access my downloaded apps after download? Remember I have no desktop shortcuts to ...

Disadvantage of Object Class

55 byte By Neetsa at 2007-11-27 9:45:40
What are the disadvantages of Java Object Class?

Problem with ClassLoader

340 byte By shelziba at 2007-11-27 9:46:01
Hi I have an application that I deploy in Webstart. And it works up to a point... In a legacy library that I cant modify, someone used ClassLoader.getSystemClassLoader and ClassLoader.getSystemResource.These seem to return null.Why? Does anyone know a workaround? Does webstart use a different ...

jlist printing problem

612 byte By motogpwadea at 2007-11-27 9:46:11
i have a jlist with about 4 items in it, and the 3rd one is selected.but the size the jlist is in is only big enough for one item in the list to display, this is why i have a jscrollpane round it, this works on the display, you can see the selected item in the list,BUT when i try to print it, i ...

NetBeans 5.5 - JFileChooser UI(Look & Feel)

304 byte By DNunesa at 2007-11-27 9:46:45
Hi all,I'm using NetBeans to build some app GUI but I'm having trouble changing the JFileChooser look and feel. I'm on WinXP and always when I add a JFileChooser to a JFrame form it uses WindowsUI Look and Feel, while I need it to be Metal Look and Feel. Does anyone know how to do ...

Application wide focus

438 byte By K.Furnella at 2007-11-27 9:46:47
Anyone got any ideas how to detect loss of focus to a different application. The JFrame WindowFocusListener notifies when the JFrame loses focus, the trouble is this notification also occurs when focus is lost for example to a JDialog launched from the JFrame. Even adding FocusListeners to all ...

Everything dissapears when I draw a line

311 byte By kandua at 2007-11-27 9:46:56
Hi,I have an applet that contains JButtons and Textfields.I wrote a paint(Graphics g) method in it. This paint method draws a line inside the applet, but then it disappears all the buttons and textfields.How can I do to draw the line but keep the buttons and ...

How to detect JRE with Javascript and without any help of class file

116 byte By me2techa at 2007-11-27 9:47:01
Please tell me how to detect JRE with using the Applet file. Is it possible to detect only through Javascript

Is it possible to launch an applet when I click component in another applet

129 byte By kandua at 2007-11-27 9:47:05
Hi,I have a big applet. I need to display another applet when I double click over a JButton. Is this possible? how?

Problems drawing in applet

316 byte By kandua at 2007-11-27 9:47:13
Hi, I am trying to draw a line inside my applet and I can, but when I do, it disappears everything I had in the applet (buttons, text fields, etc.) Does anybody know how to draw and keep eveything I had?Thankspd: For the drawing I wrote a paint(Graphcis g) method after the applets init() ...

Dosent work with creating jar file?

350 byte By Ogara at 2007-11-27 9:47:25
Hi i input this in ms-dos:jar cf Pass2.jar Pass2.class manifest.mfand it dosen't give a message in return, wich is good i thinkbut the when i run Pass2.jar, it says:"Failed to load Main-Class manifest attribute from H:\program\...\Pass2.jar"in the manifest.mf i have:Main-Class: Pass2plz ...

how to change color of a JTable's row

1142 byte By xpantaa at 2007-11-27 9:47:29
Hi,I have written this code to change the color of the first column and 3rd row of my JTalble but although column painting is OK, row background color applies for all cells. What is wrong with my code? public Component prepareRenderer(TableCellRenderer renderer, int rowIndex, int vColIndex) ...

Jtable arranging

399 byte By noe.rochaa at 2007-11-27 9:47:41
Hi.I have to questions:1? I've designed a Jtable in NetBeans, if the table takes few rows of data, there's an extra space after the last row that stays visible.How can i resize the table height so it fits by the number of rows ?2?br>The table has to columns, each one gets 50% the table ...

Long text in JLabel

126 byte By mustheroa at 2007-11-27 9:47:45
Hy,I have very long text and I want to put it without wrapping in JLabel. What should I do?Thanks!

Why won't my applet show?

2720 byte By JToolTipa at 2007-11-27 9:47:55
I don't see whats wrong with this code. It looks fine, but the applet on the website doesn't show the gui at allimport java.applet.*;import java.awt.*;import java.awt.event.*;import java.io.*;import java.net.*;import javax.swing.*;public class Client extends JApplet implements ...

Plug in doesn't prompt download screen!

1222 byte By coooooooooola at 2007-11-27 9:48:02
I have code here:<OBJECT classid="clsid:CAFEEFAC-0016-0000-0002-ABCDEFFEDCBA"ID="THEAPPLET"CODEBASE=" http://10.98.2.185/plugin/jre-6u2-windows-i586-p.exe#Version=1,6,0,02"WIDTH="100%"HEIGHT="100%"><!-- Parameters --><PARAM NAME="code" VALUE="AppletViewer" /><PARAM ...

JDialog modal issues (code attached)

6929 byte By llamana at 2007-11-27 9:48:03
I am having two issues inside of a dialog I have created. The second problem is probably more difficult than the first.1) If I set modal to false, it no longer reads Events. (is this because I pass null as a parent window?)2) Calls to update from outside the class are not correctly sending text ...

Drag the 100 files and drop at treenode problem

325 byte By PaulSheldonII_Screena at 2007-11-27 9:48:07
< Problem >I drag 20 files & drop those at one Treenode,Now, those files got transparent background colorand stay on the treenode for a while and then disappear.to the right--side--of Panel, where it should be. --> Possible solution for this? Please, let me ...

image files (.gif) in a jar

303 byte By YODA0340a at 2007-11-27 9:48:21
I'm using eclipse to create a program that uses imageicons on buttonsI can get the code to execute and display properly within eclipse, but when i export they either don't appear within the program or the program doesn't run. Can anyone provide some insight as to why this is ...

Scrollable JFrame as a ToolTip

877 byte By toxiga at 2007-11-27 9:48:55
Hi,I have a lot of information in HTML format that I display as a tooltip for my swing app.Since this is a lot of information, not everything is being visible once the tooltip appears. I was wondering if there is a way to override the tooltip component so that I can display a JFrame with ...

My Swing app x NetBeans x RAM usage

700 byte By Edilmar_Alvesa at 2007-11-27 9:49:09
Hi,I have a Swing JDK6 database app running on Windows Terminal Server 2003, with +/- 15 users per time.There is a user that calls many windows (JInternalFrames, JFrames, JDialog) but I always call dispose() to close the form.However, this user increases memory usage from morning to afternoon, ...

When is TransferHandler.getVisualRepresentation() used?

378 byte By codebooka at 2007-11-27 9:49:33
I'm playing around with Swing DnD. I've implemented a TransferHandler to provide DnD capability to reorder a JList. While implementing the appropriate methods, I came across getVisualRepresentation(). I can't figure out where this is used. I did a search through the source code for my JRE ...

updating displayed jtextfield value

1131 byte By ElishaWa at 2007-11-27 9:49:35
hi,i am trying to read and display the updated value of a text field in one frame form(form 1) into the text field of another Jframe form(form2) of the same package....the problem is that when i read the value by printing it in form 1 i get the updated value however this updated value is not ...

can i load a class in subdirectoy inside a jar file using applet tag?

698 byte By mirapakaia at 2007-11-27 9:50:07
hi every one.. thank you for reading ... i am really in dire need for the solution.. my problem is that i have a jar file contianing a package which inturn contains my applet class... i am trying to access this applet class using a applet tag in html file. this html file is in same directory as ...

Add Blank Space to JComboBox renderer

3912 byte By programmer_girla at 2007-11-27 9:50:24
Hello,I want to know if there is a way to add a blank space above all the items that exist in a JComboBox renderer? I tried JSeparator(), but either it isn't the right way to go about this or I'm not sure how to use it. Please help out.Thanks!Here's my SSCCE:(I want the space above the ...

how to pass arguments to a batch file from java code

1434 byte By justunme1a at 2007-11-27 9:50:29
Hi I have a batch file (marcxml.bat) which has the following excerpt :@echo offif x==%1x goto howtojava -cp C:\Downloads\Marcxml\marc4j.jar; C:\Downloads\Marcxml\marcxml.jar; %1 %2 %3 goto endI'm calling this batch file from a java code with the following line of code:Process p = ...

Custom cursors for drag and drop operations

368 byte By codebooka at 2007-11-27 9:50:31
I'm writing an app in Java 6. I've implemented a TransferHandler for a JList that allows users to reorder the list elements. What I would like to do is provide some user feedback by painting little copies of the dragged list items next to the cursor. That way it looks like they are actually ...

Apple key shortcut problem for macintosh.

1002 byte By sunilbelurgikara at 2007-11-27 9:51:08
Hi,I have added a keyEventDispatcher for various components in my application. In windows or linux it works fine.In Macintosh I need to implement the similar kind of a code.InStead of Control key, I need to use Apple key.also What should i use for alter key?How should i achieve this? Because ...

Check Box is not displaying in JTable

2395 byte By rayeesabbasa at 2007-11-27 9:51:09
PLs find the code for a panel, here the check box is not displaying , instead of that it shows false and true , anyone can pls help me public class panel1 extends JPanel {private static final long serialVersionUID = 1L;private JScrollPane jScrollPane = null;private JTable jTable = null;/*** ...

UI layout similar to NetBeans or Eclipse IDE

684 byte By sandeepjosepha at 2007-11-27 9:51:15
Hello All,I need to develop a UI whose basic layout should be similar that of the popular IDEs like Netbeans or Eclipse. Basically it should look as described below:- A Menu bar- Under that a toolbar- Under that a left section and a right section- Under that a bottom sectionAll these sections ...

How to bring the calander in Swing ?

57 byte By rayeesabbasa at 2007-11-27 9:51:25
How to bring the calander in Swing ? Any one knw ?

keyListener isn't working for me

5209 byte By lost_in_javaa at 2007-11-27 9:51:36
in an applet i made with a KeyListener and a MouseListener,my keyListener will not respond to keys pressed.the mouseListener works fine.the keyTyped, keyPressed, and keyReleased methods just won't get called.can someone please find my mistake?public class Cursor extends JApplet implements ...

a couple of questions about websphere commerce

842 byte By cybercoma at 2007-11-27 9:51:42
We are building a renting site for movies and have a couple of questions. The main functionality of this system is that a movies cost zero and we only have one of every movie. It is an internal site for our movie club. We are beginners at Web sphere, but quite experienced developers.Can a ...

JTable - Column swap disabling for selected columns

327 byte By MeManMea at 2007-11-27 9:51:51
Hi,In my JTable i want to disable the swapping of selected columns, table.getTableHeader().setReorderingAllowed(false); this disables the whole table swapping. Is there anyway to disable only selected column swapping?Thanks in ...

WebStart associations issue

1675 byte By daniele7a at 2007-11-27 9:52:07
Hi all!I've a problem with file association in my application deployed with Java Web Start. Here there is a part of my jnlp:<jnlp spec="1.5" codebase="..." href="..."> <information>... title, vendor, homepage, descriptions, icons...<shortcut ...

Table Sorting based on Column Selection

210 byte By Irfan_dcrtia at 2007-11-27 9:52:09
Dear All,I am using an AbstractTableModel. I would like to implement the sorting based on Column selection. Could anyone help me in this please.Thanks in advance,RegardsIrfaan

How to display hourglass until request is finished

283 byte By pgoovaertsa at 2007-11-27 9:52:25
I want to display an hourglass (or alike) when a user clicks a button and has to wait several seconds until request is finished.How can I do this? Where can i find some simple examples?Where can I find other 'objects' to be used instead of an hourglass?