• 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
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Resizing of a Component freezes the screen and contents of JTable are greyed

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am getting a problem where Contents of a JTable are getting greyed, I mean not able to see when I resize the parent component that is a JPanel.

I have two Tables one table used as rowHeader and other for dataContent display(Viewport) in a JScrollpane. Here I am embedding the two tables into a JscrollPane and the JScrollPane into a JPanel. The dimensions of JScrollPane have to be varied as the Jpanel is resized. But in my case when I resize( decrease the size of JPanel) the contents in JScrollPane are getting greyed(not visible).

I am beginner in using Swing. Could you please inform any solution or work around to solve the problem.

Thanks,
Ajmal.
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Im moving this to the Swing/AWT forum where questions like this are a better fit. So please post your replies there. Thanks!
 
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ajmal,

can you post you gui code here, therefore, we may know how your code works wrong, and may fix it.
 
Hey, sticks and stones baby. And maybe a wee mention of my stuff:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic