Remaining text in a dropdown list

251 byte By rayees1234a at 2007-11-27 10:39:59
<p>The gmail, if we are entering a charcter a, it will dipplay the list emaili address which we are already sent with the starting charcter a. like abc@yahoo.com, abcd@yahoo.com</p><p>Is it possible to implement the same concept in swing text box?</p>

character widths in JTextPane

866 byte By staubta at 2007-11-27 10:40:06
Hello everybodyI write a WYSIWYG Report-Editor. My Problem is that the character-widths in the Editor is different to the Output (rtf,pdf). For Exaple in the Editor i can write 45 w's (Arial,plain,11) in one Line an in the Output is was 57. With Times New Roman i can write 64 ant in the Output is ...

JTextArea

137 byte By musiigea at 2007-11-27 10:40:25
<p>Can somebody tell me how to make a JTextArea which automatically resizes its self according to the size of the text written to it?</p>

JtextArea

221 byte By musiigea at 2007-11-27 10:40:34
<p>Am using the code below to put the text in my JTextArea into a String array.</p><p>String[] textLines = text.getText().split(System.getProperty("line.separator"));</p><p>but the array textLines is empty, how comes?</p>

JTable With JComboBox Problem

396 byte By mohangupta_chegua at 2007-11-27 10:40:37
Hi,I have a JTable with 4 columns, in which each cell contains JComboBox: one editable, others non-editable. when I click on the cell, the popup menu comes down. How can I achieve this through keyboard?Again when i put text in editable combo and press "ENTER", control goes to the next some ...

Showing splash screen while loading...

1357 byte By Jacklera at 2007-11-27 10:40:43
Hi,I'd like to show a splash screen while the application is loading (setting up hibernate session etc.) - here is my main method which is loading hibernate and starting up the application:public static void main(String[] args) {java.awt.EventQueue.invokeLater(new Runnable() {public void run() ...

How to implement Help in Swing Application

232 byte By mallik.83a at 2007-11-27 10:40:49
<p>Hi..</p><p>In my Swing Application I want to put Help for Every field..</p><p>Ex: After Username field if I press Whatisthis. I will explain abt the user name field .in a popup text Area</p><p>Thanks</p><p>Cheers</p><p>Mallik</p>

gif(Swing) and hibernate

2584 byte By commathgurua at 2007-11-27 10:40:51
I making an application with a lot of hibernate interaction and loading different images on panels from the data acquired from db. Now i want to add a gif to a popup(dialog) showing that the software is processing something. I have the following code to load the gif.public class LoadingThread ...

JProgressBar processing

518 byte By gajesha at 2007-11-27 10:40:54
I m a Java programmer (J2SE). I m working in a industry so there is no body to solve my problem. I have one problem, if u solve this then i will be very thankful to u. The main problem is that I want to see the immediate effect of swing command like lblStatus.setText(?).. and ...

JAXP 1.4 in JDK 1.5? javax.xml.stream.FactoryFinder$ConfigurationError

530 byte By gizmo640a at 2007-11-27 10:40:58
hello,i'm forced to develop in jdk 1.5 and need to use package javax.xml.stream (StAX), which is not included in jaxp1.3 (in jdk 5), so there is a need to somehow integrate jaxp 1.4 to jdk5.first thing i've tried was getting jaxp 1.4 src and include a buildpath to my project to it. problem is, ...

Problem with background image in JDialog

1580 byte By pakkkAttacka at 2007-11-27 10:41:00
Hi, i'm using the next source code to paint a image in different JDialog and different JFrame with different widht and height each one:import java.awt.*;import javax.swing.*;public class FondoGUI extends JPanel {private static final long serialVersionUID = 1L;//es una cargador de imagen un objeto ...

How to use renderer for a Jtree Element

308 byte By warxsga at 2007-11-27 10:41:03
Hi all,i have been told to use Renderer for drawing a JTree on a JPanel.I mean, i want to draw each element of the JTree as a rectangle with a label inside it.....each element of my JTree contains an UserObject with a string inside it.Any suggestions ...

SSGD 4.31 & XP Application Server

658 byte By ma_austina at 2007-11-27 10:41:25
As a preface, I will admit that I am a bit of a fish out of water when it comes to this, so I may be a bit slow.Anyway, I am trying to find out if it is possible to use Windows XP boxes as application servers behind SSGD. I have looked high and low and so far I have come up with some mixed results, ...

How to add One Button to the Table Header.

235 byte By mohangupta_chegua at 2007-11-27 10:41:36
<p>Hi,</p><p> I would like to have few Table Header columns as Button and Other Table Header Columns as String. And each Button should have separate action. Please let me know, how can i implement this one.</p><p>Thanks</p><p>Mohan</p>

How to add a Button to the Table header

234 byte By mohangupta_chegua at 2007-11-27 10:41:45
<p>Hi,</p><p>I would like to have few Table Header columns as Button and Other Table Header Columns as String. And each Button should have separate action. Please let me know, how can i implement this one.</p><p>Thanks</p><p>Mohan</p>

Set the editing cell of a JTable

254 byte By Oleka at 2007-11-27 10:42:36
<p>Hi,</p><p>I have a JTable. When the user press a button a new row added to the table. I want that the first cell of this row start its Editor, so that the user can instantly begin to type something without doubleclicking on the cell.</p><p>regards</p>

JTextArea and newLine

345 byte By blackmagea at 2007-11-27 10:42:50
I have a JTextArea that wraps the text so the text doesn't go out of bounds. But when the text is then outputed to a text document, there is no newline and the text runs across the whole document, no \n. Is there a method in the JTextArea that automactically implements a new line for when using ...

Sort JTree

148 byte By vyanga at 2007-11-27 10:42:58
<p>Hello,</p><p>I was wondering if there is a way to sort a JTree after nodes have been added. Any help is much appreciated. Thanks.</p><p>vyang</p>

Drawing an Arrow using Graphics2D

118 byte By jkamatha at 2007-11-27 10:43:06
<p>Hi.. </p><p>Am trying to draw an arrow using the graphics2d ... can someone help me with this pls.... </p><p>JK</p>

missing types info in array manager?

244 byte By gerina at 2007-11-27 10:43:08
<p>I have a doubt regarding "Missing types" shown once in a while on the Array Manager in the emulator sessions.</p><p>I want to know wat exactly this means and how can we see wats missing</p><p>Any info is helpful.</p><p>Thanks and Regards</p>

Using Wars

450 byte By tonyhaubera at 2007-11-27 10:43:57
I'm not sure if this is the right forum for this but i have some questions about wars. Is it possible for me to put a war in my project and then link to pages in that war's webapp relatively as if the pages were part of my project? If so how would the page be affected by the web.xml file, would ...

Installation Active Directory

428 byte By Corradoa at 2007-11-27 10:43:58
On my LAN I have 2500 PC with JRE 5 Update 6 and 500 PC that rus as a kiosk with java applications (not connect to internet).I deploy software using active directory GPO with msi pachage .How can I Instruct new java 6_2 to remove the old pachage 5_6 (what msi properties must be set ?))What Is the ...

Cannot Find Symbol error

2569 byte By Gil@BKKa at 2007-11-27 10:44:13
Hi,I have the following code in 2 different classes. In 1 it works, in the other not... I cant's see why.. Any suggestions?I get the following error:cannot find symbolSymbol: constructor JTable (java.lang.String,java.util.vector<java.lang.String>)location: Clas javax.swing.JTableThe code:import ...

How do you find the JAR filename from the running code

1022 byte By digiboy86a at 2007-11-27 10:44:34
I want to be able to load files from an executable JAR file, the best method I have is below. But it requires knowing a class in the JAR which is not a problem. I just want to know if it can be done without knowing a class file in the JAR so I can get rid of the anyfileinjar parameter below.Thanks ...

Building an jnlp file for websphinx.jar

1822 byte By javalessa at 2007-11-27 10:44:37
Chaps,I am trying very badly to create a jnlp file for websphinx.jar which is a free web bot.The error i am getting is :-MissingFieldException[ The following required field is missing from the launch file: <jnlp>(<application-desc>|<applet-desc>|<installer-desc>|<component-desc>)]at ...

Adding JApplet to JFrame?

805 byte By Hagena at 2007-11-27 10:44:41
Hi all,I'm busy working on a java project for school; basically what I have is a JApplet, which is a little game I've developed, and a Swing GUI with options and the like...At the moment I'm having trouble initializing the JApplet from the Swing GUI, my init code looks like this:public void ...

getBackground() returns different values between Java 5 and 6

1267 byte By matthewa at 2007-11-27 10:44:42
I have a JTextPane on a JPanel and I set it's background color to be the color of the panel:class MyPanel extends JPanel {public MyPanel () {setLayout (new BorderLayout());JPanel p = new JPanel ();// this is actually a scrollpane in my app.JTextField staticText = new JTextField ...

jslider hammers my serial port

368 byte By Javidiusa at 2007-11-27 10:44:51
I'm trying to use a slider to send bytes over a serial port.It sends data too fast. I use wait(n) to block an xmit method called by the slider event handler, and notifyAll() to re-enable transmission alright, but the nasty slider seems to cache some data before the method blocks, then continue to ...

JDIalog, HTML Code, setLocationRelativeTo; not centered

3955 byte By SFLa at 2007-11-27 10:45:01
[nobr]Hi,I am building my own modal dialog; it's a JLabel with formatted HTML Code - I only use the bold <b> and break tag in the default font size and -type.I use setLocationRelativeTo() to center the dialog to my main JFrame; however, the dialog is not centered, it's shifted down to the ...

JTextarea not dipalying newline char "\n

296 byte By Java_Knight_123a at 2007-11-27 10:45:11
<p>Hi,</p><p>I am getting a String from DB store proc . but when I call the setText of Jtext area It does not honor the "\" in the string . </p><p>Can some one help me with this. Th string retured s cha[] . I am not able to spilt it using split menth of String</p><p>Regards</p><p>Java Knight</p>

making a single column horizontally scrollable for JTable

520 byte By altojavaa at 2007-11-27 10:45:18
Hello Everyone and thank you for reading my post. I have been trying for the last 3 days to make a single column horizontally scrollable on my JTable but for some reason I can not get it to work. I simplyfied my example to 2 columns and 5 rows where the rows in the first column have long text and ...

Repainting a JPanel

548 byte By cpsmusica at 2007-11-27 10:45:46
I'm updating some code that extends a Canvas (myCanvas) which is used for drawing. Unfortunately, the Canvas flickers so I'd like to change it.I've tried changing the myCanvas so that it extends a JPanel. This removes the flickering however if I move the Frame containing the JPanel behind ...

Getting JTree's jlabel component

581 byte By Alaz4a at 2007-11-27 10:46:07
Hi everyone, I have problems getting jtree 's jlabel component. I implemented my own TreeCellRenderer and I add every label with right-click menus. These menus are special to the label's current situation. So my problem is when I call jtree's Mouse Adapter, I need to get every cell (jlabel) to ...

Flickering When Redrawing in a Canvas (Again!)

8026 byte By cpsmusica at 2007-11-27 10:46:14
Hi,I realise this question has been asked a million times, however I'm having trouble getting a Canvas to draw without flickering.I've tried to implement offscreen drawing however this doesn't seem to be working.What am I doing wrong here?import java.awt.*;import java.util.*;import ...

Adding Action to the Button which is in JTableHeader

4139 byte By mohangupta_chegua at 2007-11-27 10:46:57
Hi, I can able to add a button to the JTableHeader. But i would like to add Action to that Button. When i add Action Listener no action is happening. So Could any one suggest how to solve this problem.In the below code, You can find i am using one Parser java file. From that Java file i am getting ...

JComboBox drop down list border color

181 byte By PawanPa at 2007-11-27 10:47:12
<p>When we click arrow button of JComboBox we get drop down list with black colored border. </p><p>But I want to set border of dropdown list to grey color.</p><p>How to do that?</p>

JCheckbox with scrollPane

259 byte By don.juan9a at 2007-11-27 10:47:23
<p>Hi...i want to make a list of checkboxes that will only shows limited number of checkboxes. To view the full checkboxex, u will need to scroll down.</p><p>Any idea how to make it? i use JCheckbox and add it into JscrollPane. and it doesnt seem to work.</p>

popup window when mouse over a row in a JTable

242 byte By shoaa at 2007-11-27 10:47:52
<p>Hello</p><p>can I have popup window when mouse over a row in a JTable (if users move the mouse over a row for some seconds). This popup will show some content of the row (as a tool tip for button).</p><p>Thanks for any help</p><p>shuhu</p>

911 I NEED HELP ASAP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

1066 byte By africanchica at 2007-11-27 10:48:06
been trying to write a simple Java GUI assignment for almost a week nw and am stock i ve 2 submit tomorrow my friend jus introduced me 2 dis site pls help this is d codemport java.awt.*;import java.awt.event.*;class ButtonTest extends Frame{Button btnCake= new Button("Cake");Button btnChocs= new ...

Newbie question with Netbeans: How do I get a component in a panel

417 byte By Amabluea at 2007-11-27 10:48:09
I've made a class called PatternComponent that extends JComponent which draws some patterns and stuff that I specify. I've been using a very basic GUI that I threw together in eclipse, but I need to clean it up and I've decided that NetBeans is more apt for the job. I've figured out how to get ...

JFileChooser on 64bit Windows Vista is not showing all subfolders.

1741 byte By Jeetu_Aroraa at 2007-11-27 10:48:30
When we use JFileChooser on Windows Vista 64bit machine it miss some of the subfolders. e.g at 'C:\WINDOWS\system32' folder it's not showing '\spool' folder which is there actually.import javax.swing.JFileChooser;import javax.swing.SwingUtilities;import javax.swing.UIManager;import ...

how to invoking the JTextField with setting specified length

384 byte By stalin_gnana@sun.coma at 2007-11-27 10:48:40
I am having the problem of using the JTextField by setting the length since envolving the key event..During that time i would like to use the state of editing the JTextField for specified length will be false and our specified remaining length of JTextField that editing will be true.May you help me ...

Appearing the added JTable's cell JComboBox at running the Class

227 byte By stalin_gnana@sun.coma at 2007-11-27 10:48:45
<p>During the time of employing the JTable,arising the problem of how to appear the added JTable's cell JComboBox at loading the class..Can you aid me plz to resolve this bug...If u know answer,plz forward the resolution..</p>

Dislpaying Rows of Jtable with Different colors

2041 byte By @34345a at 2007-11-27 10:48:53
hi my problem is to match rows of two tables table1 and table2 if a row1 of table1 is same as that of row1 in table 2 then background colour of rows should be green and if they are different then background colour of rows should be redand if row1 is not present in table2 then its background colour ...

GUI

2449 byte By musiigea at 2007-11-27 10:49:00
Hey guysI have the method below that reads from the serial port when ever there is a serial port event. I also have another method that just writes to the serial port. In the code below, the 2 lines System.out.print(data) and parent.setData(data) marked by +++++ and ...

Understanding JTable

875 byte By Stevefkia at 2007-11-27 10:49:02
I am struggling with my first exposure to JTable, by trying to modify some third party code.I have a table, and need to be able to add/remove columns from the display at will. The basic procedure that I do is this1) Set up the table model for ALL columns. The model has a Vector for the column names ...

Is swings comes under core/Advanced

195 byte By YShashidhara at 2007-11-27 10:49:05
<p>Hi All!</p><p>Iam getting little bit confused that swings comes under Core/Advanced Java concepts? Can any body help me in this confussion....?</p><p>Thanks & Regards,</p><p>Shashidhar</p>

JPanel/JFrame refresh

491 byte By jjdevinea at 2007-11-27 10:49:41
I am writing an application which removes a JPanel and replaces it when you perform certain actions, this usually works but when I add a new row (3 buttons, 3 textfield) to the JPanel you need to minimize and maximize the window to get it to refresh properly.Does anyone know what methods I need to ...

Problem with GridBagLayout's gridheight constraint

1787 byte By hyperdragon5491a at 2007-11-27 10:49:52
Hi, I'm trying to figure out a problem in a large GUI via a small dummy GUI with the same issue. Here's the dummy's code:public static void main(String[] args) {JFrame frame = new JFrame();frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);Container window = ...

serialized table and putClientProperty("terminateEditOnFocusLost")

474 byte By tango1383a at 2007-11-27 10:50:07
Hello,I have a serialized class that contains a (custom) JTable as a class variable. I enabled the property "terminateEditOnFocusLost". When I deserialize the table the property seems to have been reset to false, because I get errors on the next save process.I don't know enough about ...