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

    Thanks Kodr & Dianceht. With super.setText(text); it worked. Thank u guys....
  6. 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...
  7. 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
  8. kohinoor2007

    JTable Paging

    Thanks prosper for the effort... >>For question[2], do you mean that next 100 or previous >>100 entries will be shown when user use arrow key up on >>top record in the page or down arrow key on the bottom >>record on the page? It can be the next or previous 100 entries depending on wheather...
  9. 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...
  10. kohinoor2007

    Drawing a rectagle border around a cell

    Thanks Diancecht
  11. 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...
  12. kohinoor2007

    Catching keypress event in a comboBox

    Thanks...
  13. 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
  14. 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...
  15. kohinoor2007

    ComboBox close up

    Thank u guys.How about using the popupmenu Listener...
  16. 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...
  17. kohinoor2007

    Filling ComboBox with Loads of Data

    Dont,think so...When the combo drop down may contains n number of datas.But by setting the "SetMaximumRowCount"" the dropdown window length could be controlled.
  18. kohinoor2007

    Filling ComboBox with Loads of Data

    By the way which listener should I add to the JComboBox component,If I have to listen to the scrollBar events. Thanks
  19. kohinoor2007

    Filling ComboBox with Loads of Data

    Iam committed to this pattern and I want my JComboBox to behave in the way,I have described. Do you have any tips for that...A sample code could be really helpful...
  20. 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...

Part and Inventory Search

Back
Top