Hi guys,
Have a situation in which I have a function called "Test()"as shown below.It has to wait until a flag becomes "1".
So Iam running it in an infinite loop until the flag becomes "1".
The "Test()" function is running in one thread.
Have another function called "eventListener"(See...
Hi guys,
Have made a small test application to tell my problem.
Have rendered a table with a comboBox.Everything works fine,the way I wanted it to be, apart from the following things.
[1]
When the user Doubleclicks on one of the combocells,the comboitem in the combobox is already displayed on...
Hi guys,
Iam developing under java swing and found it difficult to achieve the following goals which I wanted to.
Iam attaching an image also along with this.
Have rendered the "StartRange" and "EndRange" columns ,so that it looks like a combobox(see figure)."SheetRange" column could use the...
Hi Guys,
Iam into implementing drag and drop of cell contents between 2 different tables,say Table1 and Table2.(Iam not dragging and dropping rows or cells,Just copying the content of one cell to another).
Have extended the java tutorial class "TableTransferHandler" and "StringTransferHandler"...
Hi guys,
Have a class ,which Iam extending from "JTextField" under swing.Want to overide the " setText" function as follows:
Want to set a flag before I call the super class "SetText".How could I achieve it....
public void setText(String text){
val = true; // "Val" is a boolean declared...
Hi,
I have a table which is put inside a ScrollPane.
JScrollPane tableScrollPane = new JScrollPane(table1);
Will tableScrollPane.getComponent(0); give me the table back....
Thanks
Hi Guys,
I intend to use the following paging model implemented with the table when handling large amounts of data.
http://www.java2s.com/Code/Java/Swing-JFC/AquickapplicationthatdemonstratesthePagingModel.htm
The table shows only 100 entries at a time in the table.The next or previous 100...
Hi Guys,
Iam working on a JTable and I programatically select a cell using
the "table.changeSelection" method.Want the border of the cell also to be drawn with a rectangle.
The same way as when one goes and selects a cell with the mouse,the cell border is drawn with a rectangle.How could...
Hi,
Have an editable comboBox.I want to catch the "return" key when user presses the key.Have tried adding keyListener to it.But its never getting called,probabaly because it is an editable comboBox.
How can I catch the "return" key in an editable comboBox.
Thanks
Hi guys,
Have an "AutoSearchComboBox" as follows for searching the combolist fast.Have some problems with the selection in the AutoSearchComboBox.
public class AutoSearchComboBox extends JComboBox {
/**
*
*/
private static final long serialVersionUID = 1L;
public...
Hi Guys,
Is there any way to trap a combo close up event.ItemListener & action listener event is not doing the thing, I want it do.
The scenario is as follows:
Have a combobox filled with values.When the user browses through the combo drop down list, the Item state or action event is getting...
Hi Guys,
I have a JCombobox which must be filled in with a large number of Data(May be millions of elements).
So It will take a lot of time to load the combobox.The data to load the combobox is got from the server.
So I have decided to implement the "Value List Handler" pattern which gives...
Hi Guys,
I have created a custom dialog which derives from the JDialog & have put some labels,radibuttons & an okay button.
MyDialog extendsJDialog{
public MyDialog(JFrame owner,String title,boolean modal){
super(owner,title,modal);
}
Now,Iam creating this custom dialog from a different...
Hi all,
Iam developing an applet ...
My applet is derived from the Swing JApplet.
Iam creating a custom dialog as follows from within my applet.
public class MyDialog extends JDialog
{
public MyDialog(JDialog owner,String title,boolean modal){
super(owner,title,modal);
}
}
Now my...
Hi all,
Iam developing a client applet under java.My class extends from JApplet.
Have run into a problem in which the "showstatus" method is not displaying anything on the browser status bar.
My code is as follows:
private void loadInitialData(){
Runnable worker =new Runnable(){...
Hi all,
Iam developing an applet in which ,I have overrided the init,start,stop & destroy methods.Iam using the j2sDK 1.4.
In the "init" method,I want to create and show the GUI.(That means dont want to load any data into the controls in the GUI).
Have a method createAndShowGui()--->which...
Hi all,
Have a table in which,I want to render a cell(change background color) upon double mouse click,on that particular cell.Is that possible?.
Did try something as follows:
//Have enabled row selection.I need that & no cell selection
table.setColumnSelectionAllowed(false)...
Hi guys,
Iam new to Listeners under Swing.Is working on a task under swing & came across the following problem.
Have a comboBox(Say testCombo) filled with some string values.When the user selects one item from thge popup menu or when he presses "Enter" I want to do some action.
Tried adding...
Hi,
One of my function calls return something as follows.
Set<String> tags = test.GetTags();
Want to put these strings into a comboBox on creation.The combobox constructor are as follows:
JComboBox(Object[])
JComboBox(Vector)
Is it possible to convert the "Set" collection to an...
Hi Guys,
Have some questions regarding invoking a popup menu.Hope some one could give me a hand on this one...
Please see attached Figure as well.
http://www.upload-images.net/imagen/559a0ec826.jpg
[1]
Have a Table having a certain number of rows.want to create a pop up menu when user...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.