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'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 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 ...
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 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...
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...
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 ...
Intresting question:
Take a look at the picture. You can see a pice of text "arhivirana dokumenta" in some kind of a Word-like "text-box".
What is the name of java/swing class that is used t...
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, i have 3 classes in java.
1)a class that extends Jframe
2)another that extends JPanel
3)a class that holds only the main method
In my main method of my 3rd class, it looks something ...
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...
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,
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...
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...
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 have a JProgressBar which I am using during a Task
is it possible to change the color of progress bar (default is orange to say green) when the process is finished,
thanks
Hi,
I need the functionality similar to a GUI FTP application...
I need to create a JDialog or JPanel that contains two sets of FileChoosers - one being the "Source",
and the other being ...
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 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, '+' ...
This is a class assignment and I'm sorta stuck:
The following is a snippet from Panel class. The assigment is to set the background color of the default panel to one color if the mouse ente...
Hi
I am trying to lay a panel with three panels. I want the panels to be a little smaller, but it stretches to fit the parent panel. I am using boxlayout and did set the preferredSize of th...
Hi everybody,
First of all, I'm a senior .NET developer, and , now I have to develop some forms in Swing (sigh....), but in swing things work in a different way.
I'm developing a classic...