can anyone tell me the code how to create a textpane with scrollbars inside a tabbed pane.....and i should save the text in a file on button click....
britto 0 Junior Poster in Training
Recommended Answers
Jump to PostRather then having
tabbedPane.addTab("tab",new ScrollPane(new JTextArea()),null);
you should go asJTextArea jta = new JTextArea(); JScrollPane jsp = new JScrollPane(jta); tabbedPane.addTab("TAB_NAME", jsp);
in doing so you can either call jta directly if from same class or provide appropriate setter and getter methods for access from outside …
Jump to PostProblem is we do not have full image. You are just feeding us with bits of information and we try to help you to our best knowledge. If you give us whole image that will make difference...
Jump to PostWell, you could find it by walking down the container hierarchy from the selected tab with instanceof checks, but I'd consider that an awful hack. You're better off writing an EditorPane class that encapsulates the components of each editor pane. Each tab would contain a single instance of EditorPane and …
Jump to PostCode, code, code is what we need. Reading from magic ball is out of date....
Jump to PostYou said you want to set text. However you did not said where do you get the text from, is it retrieved correctly and where you want to set it (obviously to text area, but did you try it?)
For these we need some code samples.PS: To avoid …
All 22 Replies
verruckt24 438 Posting Shark
britto 0 Junior Poster in Training
verruckt24 438 Posting Shark
britto 0 Junior Poster in Training
verruckt24 438 Posting Shark
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
britto 0 Junior Poster in Training
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
britto 0 Junior Poster in Training
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
britto 0 Junior Poster in Training
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
britto 0 Junior Poster in Training
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
britto 0 Junior Poster in Training
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
britto 0 Junior Poster in Training
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
britto 0 Junior Poster in Training
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
britto 0 Junior Poster in Training
britto 0 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.