Organizational Research By

Surprising Reserch Topic

java transparent jscrollpane


java transparent jscrollpane  using -'java,swing,jscrollpane'

I have a JTextArea and it's riding ontop of a JScrollPane. Anyways, I know I can use the getViewPort() method to set the opaque of of the view port... but I cannot seem to find any sign of how to do that... anywhere. :S

Here is what I have so far:

 if (e.getKeyCode() == KeyEvent.VK_F)
{
    if (sp.isVisible())
    {
        sp.setVisible(false);
    }
    else
    {
        sp.setVisible(true);
    }
}

    

asked Sep 24, 2015 by girisha
0 votes
2 views



Related Hot Questions

3 Answers

0 votes
NULL
answered Sep 24, 2015 by badhwar.rohit
0 votes
NULL
answered Sep 24, 2015 by deepak gupta
0 votes
NULL
answered Sep 24, 2015 by yogeshplv

...