• Post Reply Bookmark Topic Watch Topic
  • New Topic

I need your help here JavaRanch  RSS feed

 
Meghna ks
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • 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
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we see the code?
 
Jahanzeb Sayal
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • 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...
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!