I found the listed program on Roseindia.net. Great site I recommend it. Here is the code:
import javax.swing.*;
import java.awt.event.*;
public class ShowDialogBox{
JFrame frame;
...
Hi
I am trying to make a small Java app with a GUI for which I am using Netbeans. My app will present a GUI where user can fill in some values. These values will be arguments to certain com...
I have JTextPane with HTML like this
pane.setContentType("text/html");
try
{
StyledDocument doc = (StyledDocument)pane.getDocument();
Style style = doc.addStyle("StyleName", null);
...
Hi,
I am looking to create a zoom - pan effect on a jpanel with multiple elements in it with various listeners. I can create the zoom-pan effect relatively easily with Graphics2D's transf...
I'm stuck. I have a JTable that holds a JComboBox which is populated depending on the value in another cell (plain) in the same row. Everything displays correctly, with the correct values in e...
Hey everyone
I am trying to make an image application in Swing. My question is: I need to select multiple images when viewing in thumbnail mode and do some operations on them.
A bit ...
Hi. This is a newbie question.
I have a simple Java program with Swing. An extract:
listData = new Vector();
listData.add("Hello there");
listData.add("hihi");
listbox1 = new JList( lis...
hi experts
i have a Form contain a JTable that retrieve the data from the database when this form be loaded , and fill the JTable , in this form also i have a "ADD" button when you press th...
Hello
I'm using (a subclass of) JTable and i want to make it possible to resize the column width.
But I can not use the standard resize mechanism because that does not fit my needs.
I w...
I am adding a small piece of code onto a large project that's already in place. It's written in Java. The new
code displays 3 panels on a frame and then an image. The user can make a selec...
Hi, I'm currently working on a project for my work (a little helper application) and I decided that I would write it in Java and Swing.
problem is that this segment, I want to create a ful...
Hi,
I am developing a swing application and I need to change the java icon on top left of frame and put my organasation's icon(image.ico) there.
How could I do that?
I have set look and fee...
Hi Experts,
In my JTable , I am using custom cellRenderer to add the icon depending upon value of cell.
Table cell shows icon followed by text, I need to open new JMessageDialog when user ...
Does anyone know how to populate a jTabel from a Hibernate List? I've tried to create my own TableModel, but am getting CastException when trying to cast the item.. example
public class Hiber...
I am brand new to Java and I can't seem to figure this out. I have a JTable with 4 columns. The first column is a jCheckBox which is working fine. The other three are JComboBoxes. They wor...
I have a Java Swing Application. I want to give different colors for text in a JTextArea.
Thanks.
I have a JInternalFrame object but it has a default Java icon on it and I want to remove it so not icon exists at all. The title bar would then only have the title text on it. Is this possible?
From a Java GUI, I want to display the first page of a Microsoft Word document in a control. I don't want Microsoft Word to open. My application will display a list of Word documents. Click...
Hi All,
I am trying to display an image in the Jframe i coded. But the image is not showing. This is a sample of my codes.
import java.awt.*;
import javax.swing.*;
import java.awt.image....
I am creating custom Look and Feel.Ihave Custom Look and feel calss.one custom ButtonUI class where i have change the color of button.and i hooked up the L&F with Configuration file.also i set...
Is there away to make text in a header of a JTable wrap to a second line instead of causing a "..."?
I am implementing Custom Look and feell for java application .And i want to change buttons should paint with red .i implement the following class.and i have My custom look and feel class wher...
The attached code adds a JPanel to a Container. The JPanel has a lineborder, and can be seen when I invoke the class. However, when I add a ScrollPane, the JPanel disappears, and I'm shown a...
I need to modify some parts of an html file used as a template for generating various other html files. For example: changing the <title></title> of a file. What is the most effective way to d...
Hi,
When ever the file is past in the folder my program want to check for the extension whether is xml mean it want open and move to the other folder. open xml file want to validate and data...