• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

I need your help here JavaRanch

 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, I'm having a little problem in getting a Scrollbar showing up. I have a bean with a JScrollPane and A JPanel inside it. I'm adding groups of Labels and textfields to it during runtime. The layout of the panel is set to null. The problem is in one of the TestFields, I'm displaying date and when I click the mouse inside it, a Calendar shows up. When I set the layout of the panel to grid, then all the labels and textfields, show up with the same size as the calendar and it looks really bad.When I've set the layout to null, the scrollbar does'nt show up. If I reduce the Calendar size, the user won't be able to recognise anything. Please help me with this.
Thanks
Meghna
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can we see the code?
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Trying using appropriate Layout instead of using null or GridLayout Gridbaglayout is difficult but it will manage the components as we want...
Posting the code will .... to find out is it layoutmanaer or any other thing that is creating the problem...
 
reply
    Bookmark Topic Watch Topic
  • New Topic