Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

cant type on JTextPane  RSS feed

 
Nikhil V G
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem that on textpane.when i take createImage() method of textpane(eg: Image OSI = createImage(getSize().width, getSize().height);
Graphics OSG = OSI.getGraphics();
)
i cant type on that texpane.but i can draw on that textpnae using the method of OSG(object of Graphics class).In my project i want to draw and type on textpane.now its not possible.pls give me a solution
 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mabae you can't have a full size image on the text pane. You could have some space on the text Pane bellow the image. Im only guessing
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!