Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

how to evoke catalog (new window) from TextField ?

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello. There is simple desktop  application (data base(firebird) and Java fx.) Tableview, textfield 'SUBJECT', botton inside. I dont type value in textfield, I choose value from catalog (table 'subj' in data base )i, which is the another window. I need add in TextField value from table 'subj'. After that  I press the botton. After pressing botton  I show table view from data base which has the field subject=value from TextFiel only. How to evoke new window from textfield with double mouse click?
 
svetlana ilina
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@FXML
   private  void clickFieldSubj(MouseEvent evt) {
       if (evt.getClickCount() == 2 && !evt.isConsumed()) {
           evt.consume();
           System.out.println("Double Click");
       }
}
I've found how to make double click mouse. How to evoke another window?
 
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically, you create a new Stage and show it, but the details depend on how you want the window to act.  Is it modal?  Is it owned by another window?
 
svetlana ilina
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need evoke window 'subject' from main window's textfield to select subject's id and add it in main window's textfield. I dont know how do it. Have you little examles?
-2017-09-12-12.32.22.png
[Thumbnail for -2017-09-12-12.32.22.png]
-2017-09-12-12.32.50.png
[Thumbnail for -2017-09-12-12.32.50.png]
 
svetlana ilina
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Data base Firebird Embedded https://github.com/svil1502/Test_Exam0809.git  
But I would like to see on another any example to understand.
 
Knute Snortum
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic