Wich function (class) could I use to create one pixel high object (frame)?
Hi guys, I need a pointer on a certatin line on the graphic screen. And I want it to be written in Java. I know how to make it to be "always on top" now, but AFAIK every applet or application is to be shown in a bordered window saying it is a Java object for security reasons. As I want it to be one pixel high, I apparently need to get rid of the frame border. Supposedly I have to switch off the security, but it's OK for me.
Wich function (class) do I use to create one pixel high object?
And one more thing. How do I generally show a graphic object of nonrectangular shape out of the bordered frame? Is there a way to do it without creating an transparent rectangular window/frame?
I didn't quite know what you mean, but how's this?
public class MySinglePixelWindow extends JWindow {
public MySinglePixelWindow() {
super();
setSize(1,1);
setLocation(0,0);
public void paint(Graphics g) {
super.paint(g);
g.fillRect(0,0,1,1);
}Transparent Window:
public class MyTransparentWindow extends JWindow {
java.awt.Robot robot;
BufferedImage screen;
public MyTransparentWindow() {
super();
try {
robot = new Robot();
} catch(Exception e) {}
public void show() {
image = robot.createScreenCapture(getBounds());
super.show();
public void paint(Graphics g) {
super.paint(g);
Graphics2D g2 = (Graphics2D)g;
g.setComposite(AlphaComposite.newInstance(AlphaComposite.SRC_OVER,0.8));
g.drawImage(image,0,0,this);
}Puh!
You can't move this window though...
Nille
Similar Messages
-
Which function module could be used to create ACTIONs in transaction
HI,
when we open a transaction use TCODE CRMD_ORDER, there is always a tab named 'Action'. And Which function module could be used to create a new action?
THS!Hi Gang,
I am not sure about the Function Module but ya if you access through this link i belive you will be able to create ACTION for your Transaction.
Link:[Action|http://help.sap.com/saphelp_crm70/helpdata/en/54/238e39e1ba3541e10000000a11402f/frameset.htm].
Let me know in case you need any more help.
Vijayata -
What Function Module can be used to create vendor master data in SAP R/3?
Hello -
I've been trying to find a standard SAP delivered BAPI that can be used to create vendor master records in ECC 6.0. Up to this point I have not been able to do so. With SAP MDM solutions and SRM solutions it seems logical that SAP would deliver a standard BAPI that can be used to create vendor master records in the ERP/R3 environment (similar to the BAPI_MATERIAL_SAVEREPLICA for creating material master data records).
I have been able to find BAPI_VENDOR_CREATE but this only calls the online transaction and does not offer much additional functionality beyond what transaction code XK02 already offers.
The next best alternative appears to be IDOC_INPUT_CREDITOR but our preference would be to not use IDOCs for the project we are working on.
Can anyone offer any insight or personal experience on how vendor master records have been successfully interfaced with SAP R/3? Did you have to use IDOCs or create a custom RFC call? Thanks for the help!
Rich Wortmann
<< Personal information removed >>
Edited by: Rob Burbank on May 14, 2009 10:43 AMQuite a gap in the BAPI arsenal. I think the options are IDoc, which you don't want, good old program RFBIKR00 (requires flat file for input, can be used via LSMW) or DIY (very complex).
Thomas -
Why does my function not return anything when I create as a schema object
I have user ABC who owns several tables some of which have foreign key constraints.
I have user XYZ that has been granted access to all tables owned by user ABC.
When I create a function as user XYZ using following I get no return when I issue:
select XYZ.ztm_tables_depended_on('ABC', 'A_TABLE_OWNED_BY_ABC') from dual :
Please see after function definition.
CREATE OR REPLACE FUNCTION ZTM_TABLES_DEPENDED_ON(p_Owner VARCHAR2, p_Table_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME
FROM ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND TABLE_NAME = p_Table_Name
AND CONSTRAINT_TYPE = 'R'
ORDER BY OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME;
v_Referenced_Owner VARCHAR2(31);
v_Ret_Val VARCHAR2(4000);
FUNCTION CONSTRAINT_TABLE_NAME(p_Owner VARCHAR2, p_Constraint_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT TABLE_NAME
FROM ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND CONSTRAINT_NAME = p_Constraint_Name;
v_Ret_Val ALL_CONSTRAINTS.TABLE_NAME%TYPE;
BEGIN
OPEN C1;
FETCH C1 INTO v_Ret_Val;
CLOSE C1;
RETURN v_Ret_Val;
END;
BEGIN
FOR R IN C1 LOOP
IF (R.OWNER <> R.R_OWNER) THEN v_Referenced_Owner := R.R_OWNER || '.';
ELSE v_Referenced_Owner := NULL;
END IF;
v_Ret_Val := v_Ret_Val || ', ' || v_Referenced_Owner || CONSTRAINT_TABLE_NAME (R.R_OWNER, R.R_CONSTRAINT_NAME);
END LOOP;
RETURN LTRIM(v_Ret_Val, ', ');
END;
But, if I embed the function within an anonymous block as follows, I get results:
DECLARE
CURSOR C1 IS
select owner, table_name
FROM all_tables where owner = 'ABC';
FUNCTION ZTM_TABLES_DEPENDED_ON(p_Owner VARCHAR2, p_Table_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME
FROM ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND TABLE_NAME = p_Table_Name
AND CONSTRAINT_TYPE = 'R'
ORDER BY OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME;
v_Referenced_Owner VARCHAR2(31);
v_Ret_Val VARCHAR2(4000);
FUNCTION CONSTRAINT_TABLE_NAME(p_Owner VARCHAR2, p_Constraint_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT TABLE_NAME
FROM ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND CONSTRAINT_NAME = p_Constraint_Name;
v_Ret_Val ALL_CONSTRAINTS.TABLE_NAME%TYPE;
BEGIN
OPEN C1;
FETCH C1 INTO v_Ret_Val;
CLOSE C1;
RETURN v_Ret_Val;
END;
BEGIN
FOR R IN C1 LOOP
IF (R.OWNER <> R.R_OWNER) THEN v_Referenced_Owner := R.R_OWNER || '.';
ELSE v_Referenced_Owner := NULL;
END IF;
v_Ret_Val := v_Ret_Val || ', ' || v_Referenced_Owner || CONSTRAINT_TABLE_NAME (R.R_OWNER, R.R_CONSTRAINT_NAME);
END LOOP;
RETURN LTRIM(v_Ret_Val, ', ');
END;
BEGIN
FOR R IN C1 LOOP
DBMS_OUTPUT.PUT_LINE(ztm_tables_depended_on(R.Owner, R.Table_Name));
END LOOP;
END;
Any ideas what is happening here?Any ideas what is happening here?
Justin explained the probable reason.
See the 'How Roles Work in PL/SQL Blocks' section of the database security doc for the details
http://docs.oracle.com/cd/E25054_01/network.1111/e16543/authorization.htm#i1007304
How Roles Work in PL/SQL Blocks
The use of roles in a PL/SQL block depends on whether it is an anonymous block or a named block (stored procedure, function, or trigger), and whether it executes with definer's rights or invoker's rights.
Roles Used in Named Blocks with Definer's Rights
All roles are disabled in any named PL/SQL block (stored procedure, function, or trigger) that executes with definer's rights. Roles are not used for privilege checking and you cannot set roles within a definer's rights procedure.
The SESSION_ROLES view shows all roles that are currently enabled. If a named PL/SQL block that executes with definer's rights queries SESSION_ROLES, then the query does not return any rows.
Roles Used in Named Blocks with Invoker's Rights and Anonymous PL/SQL Blocks
Named PL/SQL blocks that execute with invoker's rights and anonymous PL/SQL blocks are executed based on privileges granted through enabled roles. Current roles are used for privilege checking within an invoker's rights PL/SQL block. You can use dynamic SQL to set a role in the session.
See that line starting with 'All roles are disables in any named PL/SQL block'? -
Static class could not use by SAP AS[JAVA]
hello everyone:
I migrate one J2ee application from a standard J2EE server ,deploy is OK,but it does not work.
I found that the static class will not be used in web tier,the detail is :
there is a static class to implement the MD5 encryption,it will encrypt the data and return encryptd data .
when I use this static class at my MainServlet ,which is a servlet,exception throw,and I copy the encrypt method as private method of the servlet ,it works!
now,I really puzzle with it,the web container of SAP AS will not support static class?or it's a BUG of it?or something else?
regards for any
steff
Message was edited by: steff yanI'm running into a similiar situation where I am porting over a J2EE application over and I am unable to access the static classes. Not sure what the previous poster meant by fixing the static class to be "thread safe"?
Is it a matter of thread safety? And if so, it would appear that the WAS is very specific in these requirements. Is there a way around it? Or at least a standard to follow?
-David -
What software should I use to create one long movie out of several short clips?
Hi, I'm not a future film maker. I'm just trying to find the easiest way to stick a bunch of imported Quicktime movie clips into a single file. Got to be an easier way than firing up iMovie and figuring that out.
Thanks for your assistance with this n00b question.I'm just trying to find the easiest way to stick a bunch of imported Quicktime movie clips into a single file. Got to be an easier way than firing up iMovie and figuring that out.
It normally depends on what software you have available and how you plan to play the file. For 'drag 'n drop' ease I would probably use the free MPEG Streamclip app.
1) Give the files to be joined alpha-numeric names indication the order in which you want them joined. (E.g., if you have 8 clips to join together, name them clip1, clip2, ..., clip8)
2) Select and simultaneously 'drag 'n drop' all files to the open MPEG Streamclip wirk window.
3) Play/scrub the playhead to ensure the clips are present and ordered as desired.
4) Save the resulting file as required. Note: The "Save As..." option will quickly save the joined files to a new files container but, depending on audio and video compression formats used in the original clips, does not ensure all audio or all video ends up on the same audio and video tracks. If you want to ensure all all audio is flattened to single audio track and all video is flattened to a single video track, then you you may have to export the joined content. (I.e., some player apps like the TV only play one selected/defaulted audio and one video track at a time unlike apps like the QT 7 player which can simultaneously play up 99 audio and/or video tracks simultaneously.) -
Passing parameters in a html page using xwd_tmppg.create
We are in the initial stage of Developing a OLAP Web Application using
Oracle Express Web Agent 6.3.2,Oracle Express Administrator6.3.2.
Flow of our screens are:-
We have a login screen that authenticates user entry to access his assigned role screen.Based on the role the user selects we will be listing out the analysis in a screen that the user could access.
Express Programs are used to create Role and Analysis screen.
User logged information is passed from login to role screen and to
analysis screen using XWD_APPPG.CREATE that accepts parameters.
Moreover this function can only be used to create html page with out
data views.
Now let us come to our problem-
We need to take the user from analysis screen to detailed data view screen that shows the OLAP cube with a back & exit button.As explained earlier you need to use the function XWD_TMPPG.CREATE to create dataview.It is not possible to pass parameters through this function.This function accepts .html as the only parameter.But we need to pass the userid info to get back to analysis screen for the user to select the next analysis.I need the user logged info available in the template file.
Is there any solution for this problem or any other approach to capture the user logged info in the template file???Hi Aneel,
Thanks for your informative suggestion on how to receive data from
previous page on to the template page using LOCATION.SEARCH.SUBSTRING
function.
I could very successfully get the userid information by implementing
this method within the SCRIPT boundary.
I also want to pass this value to a express program embedded
within the <!--EXPRESS call foot(userid)--> so that it will enable the
user to go back to List of analysis page.her my footer program will
inturn call the Analysis Page with the userid information.That's my
whole idea.
I tried the following methods to acieve my end result-
1)Tried to store the value in a local variable in the template & passed
it to the express program -- Error thrown was "userid is not attached in
the database"
2)Directly specifed location.search.sunstring in the express program..
Still the same error was thrown
3)Thought of storing the value in the name of hidden object .Still this
will not work out because i need to declare the object in the FORM..
Moreover the value is avialable wihin the JAVA SCRIPT range.Out of this
range template is not able to identify this value.
Any idea Aneel form your end.
Can you let me know how to use hidden object in achieving the result.
I have been working very hard for quite sometime.
Advance thanks.
Nanda Kishore -
What adobe product to use to create MP4 with video and slide images with time codes
I wanted to create an MP4 that has video and PPT slide converted to JPG images. What software should I use to create one? Thanks for your help.
Community: Premiere Pro | Adobe Community
CS5-thru-CC PPro/Encore tutorial list http://forums.adobe.com/thread/1448923 will help -
"The player used to create the project could not be found"
After installing Adobe Premiere Pro CC 2014, I have had issues with Encore, which worked fine before. This is the message I get when starting Encore:
"The player used to create the project could not be found, Adobe defaulting to Adobe player".
Once I attempt to open a saved project, the message is "Adobe Encore could not find any capable video play modules. Please update your video display drive and start again". I can't create a new project because the program crashes in the attempt.
I have uninstalled and reinstalled Encore. All drivers are up to date. I am running the program as an administrator.
Sony Vaio E Series
Windows 8
Any ideas what to do?Hi Ann,
Thanks for responding - your answer improved things quite a bit - I installed the latest AMD driver, which seemed to help quite a bit - it added some functionality to Encore. I'm still getting an error message, but the program appears to be functioning in spite of it.
Thanks again -
Don't know wich function to use in the mapping editor. The situation (just the example):
table1:
year
week nr record input table 1
Table 2:
year
week nr record input table 2
week nr
The dimension must look like this :
year
week nr record input table 1
week nr record input table 2
week nr
year < week nr record input table 1 < week nr record input table 2 < week nr
anyone an idea?
Message was edited by:
user537568I didn't quite know what you mean, but how's this?
public class MySinglePixelWindow extends JWindow {
public MySinglePixelWindow() {
super();
setSize(1,1);
setLocation(0,0);
public void paint(Graphics g) {
super.paint(g);
g.fillRect(0,0,1,1);
}Transparent Window:
public class MyTransparentWindow extends JWindow {
java.awt.Robot robot;
BufferedImage screen;
public MyTransparentWindow() {
super();
try {
robot = new Robot();
} catch(Exception e) {}
public void show() {
image = robot.createScreenCapture(getBounds());
super.show();
public void paint(Graphics g) {
super.paint(g);
Graphics2D g2 = (Graphics2D)g;
g.setComposite(AlphaComposite.newInstance(AlphaComposite.SRC_OVER,0.8));
g.drawImage(image,0,0,this);
}Puh!
You can't move this window though...
Nille -
Has anyone noticed that songs which were previously in the genius list could not longer be used to created a genius play list? Songs like "The Gambler" by Kenny Rogers or a Beach Boy song can no longer be recognized to create a genius play list.
Has anyone noticed that songs which were previously in the genius list could not longer be used to created a genius play list? Songs like "The Gambler" by Kenny Rogers or a Beach Boy song can no longer be recognized to create a genius play list.
-
How to create a new Text Object to be used for SAVE_TEXT FUNCTION
hi,,
can anyone tell how can i create a new text object and text id for saving text by using function SAVE_TEXT.
Thankshi,.
try out this
DATA: header LIKE thead.
DATA: newheader LIKE thead.
DATA:lines LIKE tline OCCURS 0 WITH HEADER LINE.
header-tdobject = 'VBBK'.
header-tdname = delivery number.
header-tdspras = language.
lines-tdformat = '*'.
header-tdid = text id. "for example: Z022
lines-tdline = your text that you want to write .
APPEND lines. CLEAR lines.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = header
savemode_direct = 'V'
IMPORTING
newheader = newheader
TABLES
lines = lines
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5. -
What is the standard class used to create SALES ORDER in SAP CRM?
Hello Experts,
Can anyone suggest me what is the standard class used for creating sales order.
I have created sales order using the BAPI 'BAPI_SLSTRANSACT_CREATEMULTI' in my report program.
Now, I have to create sales order using standard classes and methods(my assignment).
Please suggest the suitable class.
Regards
DNR VarmaHi Varma,
You can create crm documents like sales order using BOL interfaces.
You can check one example at the following thread:
Create OrderThro BOL
Check if it helps you a little more.
Kind regards,
Garcia -
SRM7.0, ext.classic - Which function is used to create PO in SRM?
Hello,
does someone of you know, which function will be used to create a PO in SRM out of a SC in an extended classic scenario?
How can the creation of the SRM PO be debugged?
Kind regards,
ThomasHello,
Local PO creation occurs in BBP_PD_PO_CREATE. However, this process occurs in background and if you set an external breakpoint while ordering the cart, it won't stop.
You can create a cart in held status, take its header GUID, set a BP at BBP_PD_PO_CREATE and execute BBP_PD_SC_TRANSFER to transfer the cart, providing the header cart GUID.
Regards,
Ricardo -
Wich software should I use to create a game??
I'm sorry if I did not find answer to my question in the forum, but I don't understand so much english. I would like to create a game, and I'm searching for the software. could you help me? Thank you
Hi I come back with my new username since a forum update.
I find I have been well received, as -I ask for a Sun software and I am anwered with Dark Basic, and I ask clearly in my second post how to develop on mobile phones, and have been answered "You don't have the "right" to +complete+ initial post since you didn't tell everything in initial post.
You. How are you receiving new developers. Do you really want to help users know how to use Oracle products, or do you want to make it as obscure as possible and chock.
Now I precise, I was -when it was at an enhancement and growing people using it- how to have an editor -visual editor with drag'n drop facilities AND/OR a IDE, to publish on mobile phones using JAVA.
I don't aim anymore to publish on phones since each new OS has its XNA, Apple or Chrome development tools, but I am amazed how user-friendly and respectful and full of kindness I have been recieved by 2 or 3 pople from the community. Is this forum moderated and can a moderator or administrator or a professional answer me? -> the question is in the title: Which software(s) should I use to create a game? I'm looking up evidently to Oracle-only downloadable products.
Sincerely,
Sylvain
Maybe you are looking for
-
I have a device that shows up in my airplay device list in iTunes, and on my iPhone that does not exist. How do I delete it? I have OS X 10.10.1 on my iMac, and iOS 8.1.2 on my iPhone 5. I would like to get it out before I add new airplay devices t
-
I have a problem for inserting image to database from my client machine to server machine. In my webapplication I use the following implamentation using jsp: page: upload.jsp <form id="myform" name="myform" method="post" action="uploadprocess.jsp"> A
-
What is the Different between the vendor batch in inbound delivery and MIGO
Dear Guru, My vendor batch number did not copied to goods receipt when i use migo to post GR reference with Inbound delivery. Can anyone advice if there is any different to the vendor batch in GR and IB? Thank you very much, Regards, Chee Wee
-
Error when building File Info Panel
I'm trying to rebuild my custom XMP File Info panel so that it will work in CS5, but am getting the following error: Description Resource Path Location Type 1046: Type was not found or was not a compile-time constant: XMPComboBox.
-
Massive problem with new Wirless iMac keyboards
Does anyone else have a problem with the new differentiation between wired and wireless keyboard? I assumed they would be the same, but have just seen that the bluetooth keyboards do not have a number pad on them. For the way I use a computer I prefe