Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic drawing controls  RSS feed

 
Edward Durai
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello experts,

I have 2 string arrays.

String[] fieldnameLabel = {"FromDate", "UserName", "MarksSecured" };
String[] errorContent = {"Invalid Date", "UserName should contain atleast 5 characters", "It should be numeric" };

Using swing,

I want to display like

Expected Output:

FromDateInvalid Date
UserNameUserName should contain atlease 5 characters
MarksSecured It should be numeric

Please advise.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Edward Durai:

I want to display like


What do you mean you "want to display".
Display where? On the main UI? In a dialog? what?
 
Edward Durai
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to display in dialog like table/any format
----------------------------------------------
FromDate | Invalid Date
----------------------------------------------
UserName | UserName should contain atlease 5 characters
----------------------------------------------
MarksSecured | It should be numeric
----------------------------------------------
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Edward Durai:
i want to display in dialog like table/any format
----------------------------------------------
FromDate | Invalid Date
----------------------------------------------
UserName | UserName should contain atlease 5 characters
----------------------------------------------
MarksSecured | It should be numeric
----------------------------------------------


Simplest would be to use layouts and panels and labels.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!