Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
trainee
Posts: 237
Registered: ‎05-07-2010
My Device: 8520

Is it possible to use swing/awt component with blackberry/

hi

 

i just want to know that if i can use awt/swing component with blackberry.i am using eclipse 3.5.

 

i need this because i want to read pdf file in blackberry.

there is Jpedal library for this,but it uses swing components.

 

Finally:i want to display pdf file in blackberry programatically.

 

Pls help me if anyone know it.

___________________________________________________
please press kudos(star button on left) if this post is helpful to you
"Accept as solution" if your query has been resolved.@hitendra
_________________________________________________
Developer
Ted_Hopp
Posts: 1,305
Registered: ‎01-21-2009
My Device: Not Specified

Re: Is it possible to use swing/awt component with blackberry/

[ Edited ]

You can't use AWT or Swing components on the BlackBerry. Are you trying to use the Java ME version of JPedal? I think there are BlackBerry UI equivalents for most of the AGUI (JSR-209) elements that it uses.




Solved? click "Accept as solution". Helpful? give kudos by clicking on the star.
Developer
nitinverma274
Posts: 950
Registered: ‎06-22-2010
My Device: 9550

Re: Is it possible to use swing/awt component with blackberry/

yup....Ted is absolutely Right. U can't use the Container of java. ------------------------------------------------------------------------------------ Press Kudo to say thank to developer. Also Press the Accept as solution Button when u got the Solution
Developer
trainee
Posts: 237
Registered: ‎05-07-2010
My Device: 8520

Re: Is it possible to use swing/awt component with blackberry/

thankx tedd

 

yes i am using javaMe version of jpedal.

 

so you mean i have to use blackberry ui instead of swing component.

___________________________________________________
please press kudos(star button on left) if this post is helpful to you
"Accept as solution" if your query has been resolved.@hitendra
_________________________________________________
Developer
Ted_Hopp
Posts: 1,305
Registered: ‎01-21-2009
My Device: Not Specified

Re: Is it possible to use swing/awt component with blackberry/

Yes. I'm not familiar with which AWT/Swing components are used by JPedal, so I can't comment on how hard it would be to port it. Almost all AWT components have a BB counterpart, as do a good many Swing components.




Solved? click "Accept as solution". Helpful? give kudos by clicking on the star.
Developer
huddarveena
Posts: 103
Registered: ‎12-12-2011
My Device: Developer

Re: Is it possible to use swing/awt component with blackberry/

Hello @trainee, even am trying to use jpedal for rendering pdf files, but stuck because of usage of awt components in the source. Please let me know if you get any solution, as finding BB equivalents for all awt components and checking their compatibility would take more effort. Thanks in advance.