I am making an autocomplete project(just like Google). I have a jtextfield in my frame and whenever I type something to that field, a JWindow will appear below the textfield and that window is coming from another class.
Now the problem is how could I make the window always appear below the textfield whenever I drag the frame?
Any help would be much appreciated.. Thanks…
for manually set
Location on the screen, you have to define something asprivate Point location;andgetLocationfrom desiredJComponent, don’t forget dealyed show for Show Top-Level Container intoinvokeLater();for example