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...
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;
...
I have JTextPane with HTML like this
pane.setContentType("text/html");
try
{
StyledDocument doc = (StyledDocument)pane.getDocument();
Style style = doc.addStyle("StyleName", null);
...
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 ...
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 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...
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...
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
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...
Hi,
I need to create a generic table component in java.awt - similar to that in JTable with a tableModel equivalent and table cell renderer. Just wondering has anyone done this before?
T...
Hi experts,
In the attached code, I need to have the following options
1) get the name(eg;first.doc) of the selected item/items.
2) When I right click on top of a particular item, I need to...
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...
Hi experts,
I have a requirement. I have attached a self-explanatory image of my requirement.
I need to have the exact tree structure shown there. To the left of each parent check box, '+' ...
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...
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 new to java and netbeans. I know how to program but these are new to me.
I read the help on how to make guis in java with netbeans. I started a new project but I don't see the "gui" ...
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 am not sure if this has been brought up before, unless I happened to miss it when browsing. Problem is: I have a JFrame (the main frame), which has 2 JPanels a and b. Within JPanel a, I...
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...
How do I create a single listener that will be informed of every button press (for starters).
I looked at AWTEventListener with the mask ACTION_EVENT_MASK but I didn't receive any events! ...
The title said it all, i have a JTable and i want to render just one cell (or row)of it to be a JComboBox, i followed Sun Tutorial here http://java.sun.com/docs/books/tutorial/uiswing/componen...
Hi,
In my Java application I am using JOptionPane.showInputDialog to accept input from the user. This allows them to type in the requested information or to paste it in using CTRL + V on the ...
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...
How can I implement a disk space indicator based on used space,free space and total space like the one shown in the image given in the link
http://docs.google.com/Doc?id=dfzrknk_7dqsfp2hf
Anees
I'm trying invoke a JForm Panel by clicking a button on a Java Desktop Application. In the event action listener of the button i have created an object of the JForm class and have set it to be...