• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

Dynamic drawing controls

 
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic