Using a BufferedImage in an Applet? (Possible??)
Hey,
I've been attempting to use a BufferedImage as part of a Canvas class, it all works fine as an app, but then if i try and use the Canvas class in an Applet i get a ClassNotFound error saying the BufferedImage class cannot be found.
Any ideas how I can fix this? Or is it simply not possible...there has to be another solution surely.
Aye i just found that.
One small problem though, it's all working now, except the graphics is treated a lot differently in the applet.
Normally where i would draw on the canvas i would have 2x2 pixels, I now appear to have 6x6 pixels, and the point where the mouse is and where the pixels actually appear are well out of proportion. The cursor appears to draw about 150 pixels down and to the right of where the mouse actually is.
I've put the applet up at
http://www.doctor-monkey.co.uk/delarre/life/LifeApplet.html
so somebody might be able to take a look and give some suggestions.
Cheers for the help.
Similar Messages
-
Using a filechooser in an applet
Is it possible to use a filechooser for an applet save button? If so how can you do it? So far I have only been able to use the filechooser object with JFrame and not JApplet.
Hi,
I'm a newbie, but I just had a similar problem and the solution was in the html code to display the applet. here's the code:
<applet width=700 height=500 code="ImageExample.class"> </applet>
make sure the height and width here are big enough for your imaage.
HTH
Paul -
Hello, I have a question.
How do you use a mian in an Applet.
Eample, after an applet section is complete, I want it to go into Console use. Does anyone know how to combine the two? Thanks
Note: So far, I got the program to go into the Console but It stops working when it asks for user input. There are no "String args[]" and that is what I hypothesis is the errorimport javax.swing.*;
public class MyApplet extends JApplet {
public void init() {
//init stuff here
public void start() {
//start stuff here
public static void main(String[] args) {
JFrame f = new JFrame();
JApplet a = new MyApplet();
f.getContentPane().add(a);
f.setSize(600, 400);
f.setVisible(true);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
a.init();
a.start();
}Excuse me, but is there a way to do this on Applet only instead of JApplet... I was told we need to use Applet only... -
Dump - Access using NULL object reference is not possible!!!
Hi,
I'm using the BCS class for sending HTM format email so i use the below code for that its working,
DATA: gr_document TYPE REF TO cl_document_bcs,
gr_document = cl_document_bcs=>create_document(
i_type = 'HTM'
i_text = t_html
i_importance = '5'
i_subject = gc_subject ).
Next task is to send the image so i'm creating an another object to the same class, below code
*Image from MIME
DATA: o_mr_api TYPE REF TO if_mr_api.
DATA is_folder TYPE boole_d.
DATA l_img1 TYPE xstring.
DATA l_img2 TYPE xstring.
DATA l_loio TYPE skwf_io.
DATA: lo_document TYPE REF TO cl_document_bcs.
IF o_mr_api IS INITIAL.
o_mr_api = cl_mime_repository_api=>if_mr_api~get_api( ).
ENDIF.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/tick.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img1
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/Delete.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img2
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
*Convert XSTRING to ITAB
DATA :lt_hex1 TYPE solix_tab,
lt_hex2 TYPE solix_tab,
ls_hex LIKE LINE OF lt_hex1,
lv_img1_size TYPE sood-objlen,
lv_img2_size TYPE sood-objlen.
CLEAR : lt_hex1, lt_hex2, ls_hex, lv_img1_size, lv_img2_size.
WHILE l_img1 IS NOT INITIAL.
ls_hex-line = l_img1.
APPEND ls_hex TO lt_hex1.
SHIFT l_img1 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
WHILE l_img2 IS NOT INITIAL.
ls_hex-line = l_img2.
APPEND ls_hex TO lt_hex2.
SHIFT l_img2 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
*Findthe Size of the image
DESCRIBE TABLE lt_hex1 LINES lv_img1_size.
DESCRIBE TABLE lt_hex2 LINES lv_img2_size.
lv_img1_size = lv_img1_size * 255.
lv_img2_size = lv_img2_size * 255.
*Attach Images
clear: lo_document.
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img1' " Attachment Title
i_attachment_size = lv_img1_size " Size of Document Content
i_att_content_hex = lt_hex1 " Content (Binary)
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img2' " Attachment Title
i_attachment_size = lv_img2_size " Size of Document Content
i_att_content_hex = lt_hex2 " Content (Binary)
but it throws the dump " Access using NULL object reference is not possible" when i tries to access for method add_attachment...
Thanks,
SivaYes there is commit work after that, Below code
gr_document = cl_document_bcs=>create_document(
i_type = 'HTM'
i_text = t_html
i_importance = '5'
i_subject = gc_subject ).
*Image from MIME
DATA: o_mr_api TYPE REF TO if_mr_api.
DATA is_folder TYPE boole_d.
DATA l_img1 TYPE xstring.
DATA l_img2 TYPE xstring.
DATA l_loio TYPE skwf_io.
DATA: lo_document TYPE REF TO cl_document_bcs.
IF o_mr_api IS INITIAL.
o_mr_api = cl_mime_repository_api=>if_mr_api~get_api( ).
ENDIF.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/tick.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img1
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/Delete.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img2
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
*Convert XSTRING to ITAB
DATA :lt_hex1 TYPE solix_tab,
lt_hex2 TYPE solix_tab,
ls_hex LIKE LINE OF lt_hex1,
lv_img1_size TYPE sood-objlen,
lv_img2_size TYPE sood-objlen.
CLEAR : lt_hex1, lt_hex2, ls_hex, lv_img1_size, lv_img2_size.
WHILE l_img1 IS NOT INITIAL.
ls_hex-line = l_img1.
APPEND ls_hex TO lt_hex1.
SHIFT l_img1 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
WHILE l_img2 IS NOT INITIAL.
ls_hex-line = l_img2.
APPEND ls_hex TO lt_hex2.
SHIFT l_img2 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
*Findthe Size of the image
DESCRIBE TABLE lt_hex1 LINES lv_img1_size.
DESCRIBE TABLE lt_hex2 LINES lv_img2_size.
lv_img1_size = lv_img1_size * 255.
lv_img2_size = lv_img2_size * 255.
*Attach Images
create object lo_document type cl_document_bcs.
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img1' " Attachment Title
i_attachment_size = lv_img1_size " Size of Document Content
i_att_content_hex = lt_hex1 " Content (Binary)
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img2' " Attachment Title
i_attachment_size = lv_img2_size " Size of Document Content
i_att_content_hex = lt_hex2 " Content (Binary)
"Add document to send request
CALL METHOD gr_send_request->set_document( gr_document ).
TRY.
CALL METHOD gr_send_request->SET_SEND_IMMEDIATELY
EXPORTING
I_SEND_IMMEDIATELY = 'X'.
* CATCH CX_SEND_REQ_BCS INTO BCS_EXCEPTION .
**Catch exception here
ENDTRY.
DATA: LO_SENDER TYPE REF TO IF_SENDER_BCS VALUE IS INITIAL.
TRY.
LO_SENDER = CL_SAPUSER_BCS=>CREATE( SY-UNAME ). "sender is the logged in user
* Set sender to send request
gr_send_request->SET_SENDER(
EXPORTING
I_SENDER = LO_SENDER ).
* CATCH CX_ADDRESS_BCS.
****Catch exception here
ENDTRY.
"Send email
CALL METHOD gr_send_request->send(
EXPORTING
i_with_error_screen = 'X'
RECEIVING
result = gv_sent_to_all ).
IF gv_sent_to_all = 'X'.
WRITE 'Email sent!'.
ENDIF.
"Commit to send email
COMMIT WORK.
"Exception handling
CATCH cx_bcs INTO gr_bcs_exception.
WRITE:
'Error!',
'Error type:',
gr_bcs_exception->error_type.
ENDTRY. -
BSP: Use of dynpro services is not possible in the current system status
Hello,
in the component SRQM_INCIDENT_H i created a own button and eventhandler on the overview view.
Here in this eventhandler i´m calling an own method from an own class. This method is doing a RFC in our ERP system.
If i test the method this works fine.
If i call this method in my eventhandler i get BSP error:
Calling the BSP page was terminated due to an error.
SAP Note
The following error text was processed in the system:
Use of dynpro services is not possible in the current system status
Exception Class CX_SY_MESSAGE_IN_PLUGIN_MODE
Error Name
Program ZCL_CRM_CS_DATA_SERVICES======CP
Include ZCL_CRM_CS_DATA_SERVICES======CM001
ABAP Class ZCL_CRM_CS_DATA_SERVICES
Method CREATE_CS_ORDER
Line 54
Long text -
Error type: Exception
Any ideas?
thank you
Best regardsHi,
Web-UI cannot handle MESSAGE statements. if it's your own program, you should use the web-ui( view_manager->get_message_container or cl_crm_bol_core's global message container) alternatives to display the messages. If the message statement is being issued by a standard program, it's most usually deliberate attempt to fail on unrecoverable error. You can catch it by usin the try...catch CX_SY_MESSAGE_IN_PLUGIN_MODE ..where you call the standard functions.
Regards,
Arun Prakash -
CRM70 Use of dynpro services is not possible in the current system status
Hi all,
i programmed in Webclient UI an own button which calls a Method of a zclass. Within this method i do a remote function call in ERP.
I can test the method successfully but if i call it from CRM Webclient UI i have a BSP error:
Business Server Page (BSP) error
What happened?
Calling the BSP page was terminated due to an error.
SAP Note
The following error text was processed in the system:
Use of dynpro services is not possible in the current system status
Exception Class CX_SY_MESSAGE_IN_PLUGIN_MODE
Could one of you experts please give me a hind?
Thank you
Kind regards
ManfredSolved,
there was a SAP GUI "MESSAGE" in the ERP function call which is not possible for CRM Webclient UI.
Kind regards
Manfred -
Use of dynpro services is not possible in the current system status
Hi,
I am new to all of this and new to SAP. I will bew self learing my way into CRM SOA, working with the web service creaiton i keep getting the following errlr when rtying to Activate a new created web service:
"Use of dynpro services is not possible in the current system status"
not knowing the system that well i wonderin if there is missing configuration. This is CRM 7.0
Exception Class CX_SY_SEND_DYNPRO_NO_RECEIVER
Error Name DYNPRO_SEND_IN_BACKGROUND
Program SAPLSKEY
Include LSKEYU03
Line 33Hi Keith,
Welcome to the SCN forums!
SAPLSKEY
You should first check your Abap dumps using tranaction code ST22, this usually provides more detail on the problem.
In this case I think it's trying to return a screen (or pop-up message) that can't be handled while activating the web service. The "SAPLSKEY" tells me that it might be licence related, do you have a valid developer's licence for Abap development work? If not apply for one (find out the procedure from other Abap developer's that you may work with) & check if that makes a difference while activating.
Regards, Trevor -
Use of dynpro services is not possible...
I created a webservice in our devcrm 7.0 to retrieve contact data (name, address...) to use in an adobe xml attachment within CRM
I check data and all is successful, but when I acivate, I get the Business Server Page (BSP) error
Business Server Page (BSP) error
What happened?
Calling the BSP page was terminated due to an error.
SAP Note
The following error text was processed in the system:
Use of dynpro services is not possible in the current system status
Exception Class CX_SY_SEND_DYNPRO_NO_RECEIVER
Error Name DYNPRO_SEND_IN_BACKGROUND
Program SAPLSKEY
Include LSKEYU03
Line 33
Long text -
Error type: Exception
Any helpw would be greatly appreciated.
Edited by: cshealy on Mar 7, 2011 5:43 PMDid you create this web service using the wizard in the Web UI?
Looking at the error it's occuring in function module DEVELOPER_CHECK, maybe you could try registering your user as a developer in the system or using a developers account to create the service.
Gregor -
How to Use DLL Function in Java Applet
Hi all,
I have been assigned a task to develop java applet. The problem is, I need to use DLL functions in my applet to read records. Could you pls anyone guide me how to interface DLL and applet to read records with sample code?
I'm using JDK 1.5.0_06 and Windows XP OS. thanx..
best rgds,
jpdbayYou will need to use Java Native Interface JNI. Ther are many posts on the subject, please search, and this is the documentation:
http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/jniTOC.html -
How to distill a MS WORD file to strictly PDF/A‑1a:2001 by using Acrobat XI? Is that possible at all?
It is Amazing because in the Product description to the buyer as you learn from this discussion and see the links it is not absolutley explicit. There is the Product page for standard on:
http://www.adobe.com/products/acrobatstandard.html
there you find the option "more..." under "top features" for Adobe Acrobat Standard, you click and com to:
Features | Adobe Acrobat XI Standard
Then down there you see as top feature:
"http://www.adobe.com/products/acrobat/iso-pdf-x-32000-standards.htmlhttp://www.adobe.com/products/acrobat/iso-pdf-x-32000-standards.htmlIMPROVED Conform to ISO PDF standards
Create PDF documents that comply with standards managed by the International Organization for Standardization (ISO)."
and with a image that shows that the product includes both PDF/A and PDF/X.
Even if you follow this link further to:
PDF ISO 32000, PDF/X, PDF archive | Adobe Acrobat XI
The URL indeed says "acrobatstandard" and the page does not distinguish.
Only the section:
"Get help creating accessible PDF files/ Simplify the creation and verification of PDFs that need to conform to accessibility standards for people with disabilities. The Make Accessible guided Action* will help you every step of the way."
is explicitly with anasterix footnoted and is distinguished. It makes clear to buyer that "PDF/X and PDF/A are part of the Standard version", I would say.
I would say as a buyer of the Standard version under these conditions of product description it is normal to believe that two of the most basic "standards" are in the "Standard" version included PDF/X and PDF/A, otherwise Adobe would Asterix and footnote it at least or be more explicit and not mention it as Improvement a.s.f. Another interpretation would be to get the buyer first buying without very explict information the Standard version and then making him over days of trial and questions in a forum where people have also similar problems: Aha!! it is not included. "Upgarde it! and pay us more!"
This is amazing, Gilad. -
I have Mac Mini that I connect wirelessly. I want to share that internet on this mac mini with my receiver using wired internet. Is it possible? How?
Is it the same user/iTunes account or...?
Syncing to a new computer should give you the opportunity to replace the exisiting contents with the new. -
RFC to HTTP Interface - Access using NULL object reference is not possible
Hi All,
I am working on a Interface RFC to HTTP where in I am sending the data to a third party system.
Using PI 7.3 and Adapter type XI to send this data.
I am getitng an error Short dump occured when executing message in qRFC queue <Queuename>: Date/time 02.12.2011 08:44:57, user XXXXX, runtime error: Access using NULL object reference is not possible.
<SAP:Code area="INTERNAL">QRFC_SYSTEM_DUMP</SAP:Code>
I am entering the parameters such as target host,service number,path correctly with addrseing type as URL.
The message is failing in the call adapter step with the above error.
There are no messages stuck in SMQ2 as well.
Now on the other if I use the adapter type HTTP_AAE the messages is getting successfully delivered with the same parameters mentioned above.But as we know it is a plain adapter and will not have the SOAP envelope.
We would want to send the data using the XI adapter.
Any idea as why this issue is happening?
Helpful answers will be rewarded points.
Thanks & Regards,
RKHi,
please go through below threads,
Error for all the interfaces
Access via NULL object reference not possible., error key: RFC_ERROR_SYSTEM
hope it will help you
regards,
ganesh -
I have produced (7) hard cover iPhoto books in the last three years using several of the provided templates. I would like to create a photo book using a custom photo arrangement if possible. Is it possible to create a custom photo book?
No - you can create custom pages in other software and use them
Using iPhoto you are limited to the themes adn layouts offered
LN -
I have a problem with my iphone,after upgrade software ios 6.0.1, is not possible to use the wi-fi, used until now, because is not possible to have the login, i find this message " the requested URL was not found
You have to go to autherized iPhone agent.
-
Problem with using isAuthenticate method in my applet
Hi everyone
I want to be sure that everytime that I select my applet the secure channel has been opened. I found isAuthenticate method from SecurityService Interface and I think that I can use this method in my applet's select method for this purpose. But when I declare an object as this type like this:
SecurityService Objsecurity;
to use its isAuthenticate method , I'm able to build my code and make the cap file successfully but I recieve error 6F F6 while loading my applet, And I can't find the meaning of this error in GP.
I'll appreciate it if anyone could tell me how can I use this method in my applet .
And the other question is is there any other way to find out the authentication have been done or not?
Best Regards
ShiliHi Pedja,
Thanks for the prompt reply.
I have been following the link you mentioned to create ADF security and successfully implementedthe first part where if i directly give any internal page url it redirects me back to login page.
Instead of using weblogic-sql authenticator, i wanted to manually authenticate the user in loginbean.java where i check the username passowrd against the db.
I had also implemented the method to access username,password mentioned in the following thread
Re: ADF security on my jspx page as login page
Insted of using authentication.login, i am calling the db method to do the validation.
The thing is after my db validation it does redirect me to the success page(menu.jspx). but when i click links on menu.jspx it redirects me back to login page.
so i understand that user is not yet set in the session.
I am stuck at the point how do i code the login.jspx, currently my login.jspx does not have any j_security_check and i think this is what is creating the problem.
while searching for adding jsecurity in jspx i landed on the blog of 2006 and started using that.
Can you please point me to some link which explains how to code login.jspx , i have been trying hard for couple of days.
Thanks again
ash
Maybe you are looking for
-
PO and order number not showing on shipment screen (VL03N)
We are implementing shipments in SAP. Two of the standard fields available on the variant builder in shipment display (t-code: VL03N) are PO number and Order number. However, these two fields are currently blank on the shipment display screen. Is
-
I used to open the link" http://supportdocs.sonybiz.net/indexes/pi%5CLFS%5CMay_2004%5C00035186.pdf" in firefox earlier. Now I use version 5.0. Recently I noticed that such links in pdf are not opening with firefox and getting an error that "The syste
-
Images not appearing in emails
Randomly today I'm not seeing images in most of my emails. Have always had the checkbox for "Display Remote Images" checked. They're coming from a wide variety of sources, so doesn't seem to be about the senders.
-
Setting to see T code in status
Hi Is their any setting to see T code in System-Status for IMG ? As many times I see that staus shows only SPRO T code even if IMG Activity key in display key under Additional Data shows T code ( last 4 digits) in SPRO.
-
I am having trouble fading XML-based text formatted w/CSS. What I'm attempting to do is use an internal CSS sheet to format external XML text. I have it working except for the fontWeight property. When I assign style.fontWeight = "bold", the text doe