Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: kohinoor2007
  • Content: Threads
  • Order by date
  1. kohinoor2007

    Getting rid of infinite looping

    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...
  2. kohinoor2007

    Combo selection - Trouble

    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...
  3. kohinoor2007

    Table comboBox

    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...
  4. kohinoor2007

    Drag and Drop of cell content between 2 tables

    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"...
  5. kohinoor2007

    JTextField overriding

    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...
  6. kohinoor2007

    Retrieving Table back from ScrollPane

    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
  7. kohinoor2007

    JTable Paging

    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...
  8. kohinoor2007

    Drawing a rectagle border around a cell

    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...
  9. kohinoor2007

    Catching keypress event in a comboBox

    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
  10. kohinoor2007

    problem with userdefined combobox selection

    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...
  11. kohinoor2007

    ComboBox close up

    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...
  12. kohinoor2007

    Filling ComboBox with Loads of Data

    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...
  13. kohinoor2007

    JDialog ques:

    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...
  14. kohinoor2007

    Dialog Owner

    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...
  15. kohinoor2007

    show status problem

    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(){...
  16. kohinoor2007

    Applet Question

    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...
  17. kohinoor2007

    Background color change on tablecell

    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)...
  18. kohinoor2007

    combobox selection

    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...
  19. kohinoor2007

    List To Vector

    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...
  20. kohinoor2007

    PopupMenu &amp; popupwindow

    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...

Part and Inventory Search

Back
Top