This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

adding dynamic textfields to gridpane  RSS feed

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

i want to create a table with the gridpane. this should have the same functions as a tableview.

I do not want to use tableview because I want to solve the task.

I have four text fields. These must be inserted in four lines. I would like to insert these text fields in a gridpane. if I press "Add TextFields" my text fields appear and insert them with "Okay" in the gridpane.
if I have this inserted I would like to insert in the lower columns further text fields in the lines. I hope I could explain it.
At the moment I can only fill one line.

This is my whole Code in GitHub: GitHub

 
Marshal
Posts: 5995
156
Chrome Eclipse IDE Java Postgres Database Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure I understand.  Are you creating a row that has an "Okay" button in it and when you press that button, another line appears below?

Also, your GitHub is missing classes:

import Row.Row;
import ViewAndController.ViewController;
 
Büsra Dikenli
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The starting position is that I have four text fields. If I click on the okay button, then I want to display the text fields in the gridpane. if I click on "Add TextFields" again, more text fields will appear to fill out and be displayed with okay on column 2 in the gridpane. I can not solve this loop.


the row class, is the Model class. i have renamed it for the question. the other classes aren't important for the solution




Test.PNG
[Thumbnail for Test.PNG]
test2.PNG
[Thumbnail for test2.PNG]
 
Knute Snortum
Marshal
Posts: 5995
156
Chrome Eclipse IDE Java Postgres Database Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In CSV class:
Shouldn't that be:
 
Trust God, but always tether your camel... to this tiny ad.
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!