I have a class that gets a JFrame as a parameter. I want to get a certain component from it and do some operations with it.
Something like this:
class A {
A (JFrame frame){
a_certain_Component jScrollPane = (a_certain_Component) frame.getThatComponent();
jScrollPane.setViewPort(new JTextPane());
}
}