Finding screen points
So this is probably a dumb question, but is there a way to translate points to a more 'global' coordinate system for the screen? Here's what I'm trying to do:
Add subview(a)
Add subview(b)
Add subview(c)
-Drag some subview(d) of c over a or b
-Upon release, determine which subview d was 'dropped' on - here is where I run into problems
-Add the subview(d) to a or b depending on which one it was dropped on
My problem comes when I try to figure out where the d subview is in relation to the other subviews. I thought I could use
CGRectContainsPoint(someViewToAddObjectsTo.frame, newPoint))
but the problem is that my newPoint is in relation to subview(c). For example, I drag d up and to the left of its container view(c). Its origin is something like -30, -130 in relation to its superview(c), so I can't check that point against subview a or b.
So what I'm really getting at, is there a way that I can ask a view what its origin is based on the current window and not just in relation to a superview?
See convertPoint:toView: etal in UIView. - Ray
Similar Messages
-
How to find screen no. of a pop-up window?
Hi friends,
Any one can let me know, How to find the screen no. of pop-up window?
Thank,
PunjaalaTo find screen no of a pop-up screen, in debuggin mode give break point at call screen statement.
Usually pop-ups would be called by call screen starting in (x,y) cordinates. so it'll stop at that point.
you can find out the pop-up details there.
Regards,
Joan -
I cannot find screen shots on Mac Book Pro 2014, they do not appear on my desktop. Where might they be?
tearoadtiger wrote:
Shift-control-command-4
Ah the devil is in the details
Adding the shift key to the command places the screen shot in the clipboard as Hiroto pointed out.
To get the file on the Desktop just remove the shift key.
Or as Mark Twain said
The difference between the almost right word and the right word is really a large matter -- 'tis the difference between the lightning bug and the lightning.
regards -
My 2009 Macbook runs OS 10.7.5. The finder screen frequently gets 'lost' behind other open programmes. It can be seen as one moves to and from dashboard mode but cannot be activated. Anyone got any ideas?
You could check the Finder preference settings to select a different result
later when you click on the Finder icon in the Dock. There are options.
Sometimes if you force-quit Finder, it may be troublesome to relaunch.
At that point, one may be faced with single-user command line means
of making the Dock work normally. A new set of issues, if not necessary.
Since I seldom completely cover the desktop (main finder) with contents
from previous experience, I try to leave a place there where I can click
on the background to get Finder back on Top. There may be a keyboard
shortcut to make Finder be on the top of priority. Some F keys may help.
Good luck! -
How to find *screen badi*
hi,
i know how to find exits and badi for a particular transaction.
i just wanted to know how we can find screen badi for a specific transaction.(ex: mb_migo_badi for migo transaction)
can any one give suggestions in this issue.if possible send any documentation.
note:plz dont send the same old program to find exits and badis.See point 8
Procedure
1. Start the Object Navigator (SE80).
2. Open an enhancement spot. For more information, see Creating, Editing, and Deleting Enhancement Spots.
3. Select the Enh. Spot Element Definitions tab page.
4. Choose Create BAdI.
A dialog box appears.
5. Enter a name and a short text for the BAdI.
BAdIs are in the same namespace as global data types from the ABAP Dictionary, global classes, or interfaces. For BAdIs, we recommend using the prefix u201CBADI_u201D (or u201CZBADI_u201D, and so on, in the customer namespace).
The new BAdI appears as a node in the tree display of the tab page.
6. On the right-hand side of the page, do the following:
a. Enter the attribute for multiple use.
b. Enter the instance creation mode.
c. Enter the attribute for internal SAP BAdIs (only SAP internal use).
d. Optional: Enter a Fallback Class.
e. In the tree, expand the BAdI and choose the Interface node. Enter the name of an existing BAdI.
7. Optional: Choose the function Create Filter to create a filter.
Here you can:
a. Enter the filter name, filter type, and description.
b. Optional: If you choose Constant Filter Value During Call, you may only specify a constant value at the respective filter when using GET BADI. This is provided for future performance improvements of the statement.
c. Optional: Enter either a data element or a domain with fixed values, or a search help. Alternatively, enter a check or input help class, and a length (together with decimal places). In this way, the filter values specified at GET BADIcan be checked during the BAdI implementation.
8. Optional: Choose the function Create Screen Enhancement in order to create the BAdI as a screen enhancement.
The BAdI must not be of a multiple use type.
a. Enter Calling Program, Screen Number, Subscreen Area, and Description.
b. Optional: Select Default Value to specify a screen of a program that is used if no active implementation is found at runtime.
9. Optional: Choose Create Function Code Enhancement to create the BAdI as a function code enhancement.
The BAdI must not have any filters and must not be of the type for multiple use.
a. Enter Program, Function Code, and Description.
b. Optional: Select Default Value to specify an icon, a menu text, a pushbutton text, and a quick info, all of which are used when no active implementation is found at runtime.
10. Optional: Create an example implementation.
a. Select the BAdI, and choose Create Example Class from the context menu.
b. Enter the name of a BAdI implementation class and a description. -
How to find screen exits?
Hello,
I want to know the procedure to find out the Screen exits available for a particular Txcode? Please to know this Concept.
ThksHi,
Finding Screen Exit:
1. in se11, goto table MODSAP
View table contents
2. in Type field, enter 'S' (for screen exit)
3. For that tcode, u should know the program name
or the CALLING SCREEN.
eg. SAPLLMOB
4. then type SAPLLMOB* and execute
For Further:
ERPGenie.COM -> SAP Technical -> ABAP -> Tips and Tricks -> SAP ABAP Field Exits
V4.6c onwards no longer supports field exits!!! In any case here's how to activate them:
Activation of the field exits and assignment of the dynpros is carried out using program RSMODPRF. For this purpose, the program must be started without parameters (input fields remain blank). If required, new field exits can be created using program RSMODPRF (see below for documentation).
Field Exits for Data Elements
Description
Maintenance transaction for creating and activating field exits
As part of the extension concept, SAP allows you to install a field exit for each screen field. Similar to the conversion exit, the system branches at the field exit at DCI (DATA COMMUNICATIONS INPUT) to a function module, if the field is an input field and a function code was triggered. The function module must adhere to the following naming convention:
Prefix: FIELD_EXIT_
Infix: <Data element name>
Suffix: _0 to _9 (optional), _A to _Z
The interface is automatically generated during the creation of the function module, and has 2 parameters:
Import parameter: INPUT
Export parameter: OUTPUT
After a function code has been triggered the contents of the field are made available to the FB via the "INPUT" import parameter. You can edit this and, when changed, make it available to the ABAP/4 processor in "OUTPUT". The input field contents are usually passed on: you can simply write OUTPUT = INPUT.
If, e.g., you have activated the field exit for the data element 'PROGRAM', then the fields of all the screens, which refer to the data element 'PROGRAM', branch to the function module FIELD_EXIT_PROGRAM. This includes the field 'Program' of the initial screen SAPMS38M0100 in transaction SE38, for example.
If you do not want the function module to be accessed from all screens, assign particular screens to the data element PROGRAM. By allocating an exit number, it is also possible to branch to other function modules with the corresponding suffix _0 ... _Z.
Example: You have assigned screen SAPMS38M0100 and exit number 5 to data element 'PROGRAM'. The corresponding field on SAPMS38M0100 branches to FIELD_EXIT_PROGRAMM_5.
As soon as you activate an exit, the corresponding screens are invalidated.
Note: Field exits are only taken into account during screen generation if the parameter abap/fieldexit = 'YES' is set in the system profile.
Requirement
Set the profile parameter abap/fieldexit = 'YES' before system start.
Limitations
The following ABAP statements are not allowed in the function modules of field exits:
BREAK-POINT,
CALL SCREEN, CALL DIALOG, CALL TRANSACTION, SUBMIT,
COMMIT WORK, ROLLBACK WORK,
COMMUNICATION RECEIVE,
EXIT FROM STEP-LOOP,
MESSAGE I, MESSAGE W.
Note:
Field exits cannot be edited with the debugger.
You should not use any external Performs in field exits. The ABAP processor shares the table work areas of externally called programs with those of the first caller. This could lead to errors at field exits that can hardly be analyzed, as field exits are sometimes slipped into the flow of the program at unforeseen events.
Questions and answers on field exits
1. A field exit was created with the CMOD and activated, but it does not get executed when the screen is called.
Since the field exit is not executed until DCI, some action must occur in the screen (e.g. press Return, saving....).
Set the abap/fieldexit profile parameter to YES and start the system again.
After the FIELD_EXIT... function module has been activated and the field exit has been activated, the transaction in whose screen the field exit is to be executed must be terminated. The screen is not generated until it is called.
Do not work on different application servers, otherwise there may be a delay before the field exit becomes active.
The profile parameter must be set either on all application servers or on none.
If the field exit is to be active in certain screens only, then you should check whether you have selected the correct program and the correct screen number (Careful with SUBSCREENS Do not rely on the F1 information for the field!
2. How does setting abap/fieldexit affect the performance?
If a screen is generated and the profile parameter is set, then the system checks in 2 tables (TDDIR, TDDIRS) to see whether a field exit has to be generated for the field. In practice the screen load after a Put is not generated until the screen is called. The user will not experience a noticeable delay, since screen generation is extremely fast.
3. Can the contents of other screen fields be read in a field exit?
In principle all fields can be copied to global variables in the TOP or the function group. However, since the order in which the field exits are called is not guaranteed, this possibility should not be used.
4. How does the field exit work in step-loop fields?
After data input to DCI the field exit will be called as many times as fields are visible on the step-loop. The SY-STEPL system variable is incremented each time. If a new value is assigned to be field, then it will be visible in the module between LOOP. ENDLOOP. This module will also be called as many times as there are visible step-loop lines.
5. Can field exits be debugged?
No. Field exits have to be tested in isolation in the development environment. To analyze problems that occur only in the screen environment, the relevant variables can be written to the file system using TRANSFER... and can be analyzed there.
6. What should one do if the field contents are not getting transported to ABAP/4?
Check whether you have assigned a value to the OUTPUT field.
7. When does the field exit get called in the case that there is a conversion exit attached to the data element?
The field exit will be called after the conversion exit. This means that the INPUT field contains the data in the same form as that in which the ABAP/4 program also gets them.
Regrdas,
Shiva Kumar -
How To Find Screen Exit & Menu Exit
Hi Friends,
How can we find Screen Exit & Menu Exit?
Kindly do not specify the report which is prevailing all over.
And does class CL_EXITHANDLER also return exits apart from BADI names ?
Regards,
PradeepHi,
Check this...it will help u to create menu exit...
Creating Customer-Specific Menus
Menu exits allow you to add your own functions to the pulldown menus in standard R/3 transactions. To take advantage of a menu exit, you first need to create a project as described in the section Creating an add-on project. Then, you must include the SAP enhancement package that contains the menu exit you want to use in your project. From the main screen of the Project management transaction, proceed as follows:
Select Enhancement components and choose Change.
The system lists all customer exits contained in the enhancements included in your project.
Place the cursor on the menu exit you want to add your own function to.
Choose Edit component.
The system displays technical information about the menu entry. It also displays two input fields where you can specify a language and the text you want your menu item to have.
Enter the name of your menu function (such as Special order method) in the field New text.
Choose Save text.
Your special menu function will not appear in the pulldown menu of the corresponding standard transaction until you activate your enhancement project.
Specifying a menu text and activating your project are not the only steps you need to take to make your own menu item work. After you carry out these steps, your menu item will appear, but it will not call a corresponding function. To attach your menu entry to its corresponding function, you need to create a function module for the function module exit associated with your menu text. This function module exit is part of the same SAP enhancement that contains the menu exit you used. Creating Customer-Specific Function Modules tells you more about how to use function module exits.
Procedure for Creating MENU Exits:
1) To get into Area Menu Maintenance Screen Type SE43 T.Code in Command
Line.
2) In Area Menu Paramenter type 'S000' (S triple Zero)
3) Then Press Change Icon in Application Tool Bar. Then It may ask for
Access Key [or] it may display "Specify Processing mode" window. If it ask
for the Access Key Check for the availability of OSS Note and apply to open
Standard SAP Menu to include MENU Exits. Otherwise, if it display "Specify
Processing mode" window with Three Push Button. In which select "Change" and
proceed further.
4) Then it will display "Information" window with the following information
"Caution : The Original Language of the structure is German (editing lang. :
English) ". Then press "Enter Key to proceed further.
5) Then you will get into "Edit Area Menu S000".
6) for eg:- Expand Tools Menu.
7) Then Press ABAP Workbench <Icon>.
8) Then you will get into ABAP Workbench Menu Tree.
9) Then Expand Utilities Menu.
10) In the last line you will find one MENU EXIT Provision to include your
own menu. "Node Text Not Found" This text can be change by double Clicking
that. There you can find the T.Code. Here for Eg:- "+DW4".
11) for eg: - Here change the Text to "Sample Menu Exit" and then note down
the T.Code "+DW4".
12) Then Save with Change Request Number and come out of Transaction SE43.
13) Then Goto Transaction SE93.
14) Then type T.Code "+DW4" and press Create.
15) Then proceed further to create transaction called "+DW4".
I hope this could help you in Creating Menu Exit...
screen exists
Steps
Guidelines
So, a developer can follow the guidelines mentioned below to implement a screen exit to a standard SAP transaction, as and when required:
Find out the Required Enhancements
Go to SMOD. Press F4 in the Enhancement field. In the next popup window, click pushbutton SAP Applications. A list will appear that contains information on all the enhancements, categorized under functional areas. Developer must search for the enhancements relevant to his functional area of interest for e.g., Purchasing, Asset Accounting, etc.
Note down the enhancements. Then, come to the initial screen of SMOD and view the documentation of each enhancement to find out which one is required for your development.
Utilize the Enhancement in a Project
After you have found one, do as directed in the documentation. Generally, the steps are as follows:
Create a project using CMOD including your enhancement.
Create the append structure with new fields.
Go to the desired function group and create a subscreen with the new fields. Write PBO and PAI for the subscreen, if required.
Use the function exits in the enhancement to link the PBO and PAI of the subscreen with that of the main SAP program supporting the SAP transaction.
Maintain necessary linkage between the subscreen area of standard SAP program with the custom subscreen developed along with the custom program name. This can be done in the project (developed by CMOD including the enhancement) or outside as a part of configuration.
Activate the project.
Test to ensure that required functionality are met.
Case Study 1
Add three new custom fields for Asset master and maintain information for them
Requirement
Three fields in the legacy system have to be maintained in Asset master. These fields are:
Original Asset number 20 characters
Location 2 15 Characters.
Model no 20 characters
Location 2 should start with L.
Pre-Analysis
Finding out the Enhancement
As described above, the enhancement is determined. It was found, that enhancement AIST0002 will serve the purpose. It contains the following components (can be viewed by transaction SMOD):
Exit Type Description EXIT_SAPL1022_001 Function Exit Check of User-Defined Fields when Using Create and Change BAPI EXIT_SAPLAIST_002 Function Exit Transfer Data for User Subscreens in PBO. EXIT_SAPLAIST_003 Function Exit Transfer of User-Defined Fields to SAP Master Data Transactions CI_ANLU Customizing Include Include structure to add new fields
Studying the Function Exits
The function module level documentation for the function exits are then viewed from transaction SE37. The documentation clearly laid out for the purpose for their use:
EXIT_SAPLAIST_002
Function module Level Documentation
This function module is called by asset master data maintenance at the start of the dialog. (When changing, it is called after reading of the data from the database; when creating it is called after the transfer of the default values from the asset class and reference asset.) The purpose of the function module is to enable this function group to recognize the master data. For interpreting or controlling master data fields that are important for user fields, it is possible to transfer to global variables at this point, so that they can be recognized when the user subscreens are processed.
Import Parameters
Understanding
This function module is called at the PBO to pass the information retrieved from the database to pass them to the custom subscreen and its underlying program. Import parameter : I_ANLU will be populated with the values for user-defined fields which will be passed to the subscreen program. So, there must be some sort of variable assignment from I_ANLU.
EXIT_SAPLAIST_003
Function module Documentation: This function module is called by SAP asset master data maintenance after the screens are processed, but before saving. The purpose of the function module is to transfer fields entered on user sub-screens of SAP asset data maintenance to the database for updating. The export parameter for this function module is:
Understanding
This function module will be used to transfer the user entered data in the subscreen fields to the main SAP program, which will then be saved into the database.
Studying the Documentation of the Enhancement
The enhancement documentation (as is viewed from the initial screen of SMOD] also supports the idea. Moreover, it informs that we need to develop a subscreen under function group XAIS. This is the function group under which the two function exit modules also exist. So, if the custom subscreen refers to the global data of the function group XAIS, then those values will also be available to these function exits as well.
Going to SE80 and viewing the function group XAIS helps us to inform that there are three DDIC tables declared for it:
Deciding the Final course of Action
After making all the investigations, the final course of action was determined.
SrlNo Step Justification
A project has to be created using transaction CMOD where the enhancement AIST0002 will be included.
Customizing include CI_ANLU has to be created with the custom fields demanded When CI_ANLU will be developed, the custom fields will get appended to the database table ANLU. Also, these fields will be used to create screen fields in the new subscreen.
A custom subscreen, say, 9000 will be developed under function group XAIS. The screen group for the screen will be CUST (or any name). The three custom fields added to table ANLU (by creating CI_ANLU) will be used to create new fields in the screen.
In the PAI of the subscreen, validation for Location to start with L will be added. The subscreen with three new fields has to be developed so that it can be attached to a subscreen area of the asset master screens.
In the custom include of the function exit module EXIT_SAPLAIST_002, the following code will be written:-
ANLU = I_ANLU. I_ANLU is the import parameter of this FM. The value is assigned to the global variable ANLU, referring which the three new subscreen fields are developed. So, data retrieved from database table ANLU will be passed to this FM as I_ANLU by the standard SAP main program. The value will be taken and passed to the global variable of the function group XAIS, so that the three custom fields (referring to ANLU of XAIS) get populated.
In the custom include of the function exit module EXIT_SAPLAIST_003, the following code will be written:-
E_ANLU = ANLU. The changed values in the subscreen fields exist in global variable ANLU for the function group XAIS. This function exit module will pass the data back to the SAP main program as E_ANLU.
Proper linkage/configuration has to be done so that the new subscreens get linked to the appropriate subscreen area of the Asset master screen. This has to be done otherwise, the new custom subscreen will not be displayed in the Asset master screens.
Development
Creating a Project to include the enhancement
Go to transaction CMOD and create a project.
Enter a description for the project. Then, click on the pushbutton Enhancement Assignments in the Application Toolbar.
Enter the name of the enhancement and Save.
Go to Components.
Creating Custom Include for ANLU
The screen shown below will appear, showing all the enhancement components under the assignment AIST0002. Double-click on the name of the Include Structure to create it.
Create the include structure with three new fields, as required. Then, save and activate it.
Develop the subscreen and the program
Go to transaction SE80. For the function group XAIS, create a new subscreen 9000.
Create it as subscreen.
Then, go to the Layout of the screen and create three new fields from Database table ANLU.
Drag the fields in the screen body and place them.
Then, save and activate the screen and come back to screen flow editor.
Create the PAI module to add validation for field Location 2, as required .
Activate the whole function group and come out.
Write code in the Function Exits to synchronize the programs
Now, code has to be written in the function modules EXIT_SAPLAIST_002 and EXIT_SAPLAIST_003 so that data flows to and fro between the main SAP program and custom subscreen program. For that, go back to transaction CMOD and change the function exits.
Write code in the function module EXIT_SAPLAIST_002 called once at the beginning of the transaction:
Write code in EXIT_SAPLAIST_003 to pass the data from the subscreen to SAP main program.
Then, activate everything the whole project and come out.
Complete the configuration to link the subscreen
The development portion is complete. Now, linking of the subscreen has to be done with the subscreen area of the main program. In most of the cases, this linking can be done in the enhancement itself. But, here, requirement is a bit different. It is done by configuration using SPRO.
Assets are created under Asset class. And for each asset class, there is a layout assigned to it. For a layout, there are multiple tab pages assigned to it. And, for each tab page, there are multiple screen groups/field groups assigned.
Here, the requirement is to create these three custom fields in the tab page General of asset master screen ( AS01/AS02/AS03/AS91).
Determine the Layout
To achieve this, first of all, we need to find out which layout is assigned to asset class 1000.For that, go to transaction AOLK( information has to be obtained from functional consultant).Select the Asset Class 1000 and click on folder General Assignment of Layout.
Here, for Asset class 1000, for all the user groups, tab layout SAP is assigned. Since layout SAP cannot be changed, it has to be copied and manipulated to include our screen group. Later, the new layout has to be assigned over here.
Create new tab layout
Go to transaction AOLA. Copy the tab layout SAP to create another layout, say, YSUB.
System will copy all the settings and will inform you about that.
Select your newly created layout and double-click on the folder Tab page titles.
You want to put your custom fields in the tab page General. So, select this tab page entry and double-click on the folder "Position of Groups".
Here, all the field groups currently residing in the tab-page General are shown. Add an entry for your newly created fields.
Select the group box from the list. An entry will come with U padded with the custom subscreen prepared by you.
Then, save and come out.
Assign the new Layout to Asset Class
Now, go to tcode AOLK and assign tab layout YSUB for asset class 1000.
Save and come out.
Test the Exit
Everything is over. Now, go to transaction code AS01/02/03 or AS91 to deal with an asset of asset class 1000. You will see your new fields added to the screen. Add values to them save. Then, enter into the tcodes again to see whether the values entered by you are being displayed or not.
Regards
Kiran Sure -
Imagine a line starting from 0,0 going to 50,50.
Mathematicaly how can i find perpendicular points to the 50,50 end of the line.
EG:
S C
F
CS is start of original line
F is finnish of original line
L are points
and C are the points i want to find.
Thanks in advance, Nick!Haha ok we are getting somewhere now :)
Here is the code:
double originX = 400;
double originY = 300;
double rad = 0.0;
double pointX1 = 450;
double pointY1 = 250;
double pointX2 = 450;
double pointY2 = 350;
double r2 = Math.sqrt((Math.pow((pointX1 - originX),2) + Math.pow((pointY1 - originY),2)));
System.out.println("R2 = " + r2);
double r3 = Math.sqrt((Math.pow((pointX2 - originX),2) + Math.pow((pointY2 - originY),2)));
System.out.println("R3 = " + r3);
while(true){
pointX1 = r2 * Math.cos(rad + .4);
pointY1 = r2 * Math.sin(rad + .4);
pointX2 = r3 * Math.cos(rad - .4);
pointY2 = r3 * Math.sin(rad - .4);
int[] xPoints = {400, (int)pointX1, (int)pointX2};
int[] yPoints = {300, (int)pointY1, (int)pointY2};
rad = rad + .1;
Polygon flashLight = new Polygon(xPoints, yPoints, 3);
for(int y = 0; y < 600; y++){
for(int x = 0; x < 800; x++){
if(flashLight.contains(x, y)){
Color change = new Color(screen.getRGB(x, y)).brighter();
screen.setRGB(x, y, change.getRGB());
}Thats not all of it, but hopefully enough to show you whats going on. I can seem to get the light to travell the entire 360 deg, middle of screen being origin, its travelling between the 170 - 100 deg mark? Why is this?
This must be a logic error i cant see, any help would be greatly appreciated as always :)
Cheers, Nick -
How to find a point lies inside circle
Hi,
How do I find a point (x,y) is lies inside a circle? I trying to do a small shooting game.
If the user clicks inside the circle they get a point. I am using the Pythagoras theorem to achieve this. But I can't.
Please advice me.
Here is my code
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Shoot extends JFrame implements MouseListener, MouseMotionListener
private int winWidth = 300;
private int winHeight = 300;
private MyCanvas canvas = null;
private int ballX = 50;
private int ballY = 50;
private int ballW = 50;
private int ballH = 50;
private int ballR = ballW / 2;
private int curX = 0;
private int curY = 0;
private int left = 0;
private int top = 0;
public Shoot()
Cursor c = new Cursor(Cursor.CROSSHAIR_CURSOR);
this.setCursor(c);
canvas = new MyCanvas();
packIt();
left = getInsets().left;
top = getInsets().top;
private void packIt()
setTitle("My first game!");
setPreferredSize(new Dimension(winWidth, winHeight));
setSize(new Dimension(winWidth, winHeight));
setContentPane(canvas);
addMouseListener(this);
addMouseMotionListener(this);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//setUndecorated(true);
setLocation(300, 0);
setVisible(true);
public void mouseClicked(MouseEvent e)
int x = e.getX() - left - ballX;
int y = e.getY() - top - ballY;
int r = ballR;
System.out.println("x :" + x + "\ty :" + y);
//Trying to implememt Pythagoras theorem. But I am missing something.
System.out.println(((x * x) + (y * y)) + "\t=\t" + (r * r));
System.out.println();
public void mousePressed(MouseEvent e)
public void mouseReleased(MouseEvent e)
public void mouseEntered(MouseEvent e)
public void mouseExited(MouseEvent e)
public void mouseDragged(MouseEvent e)
public void mouseMoved(MouseEvent e)
curX = e.getX() - left;
curY = e.getY() - top;
canvas.repaint();
private class MyCanvas extends JPanel
public MyCanvas()
setBackground(Color.BLACK);
setBorder(BorderFactory.createLineBorder(Color.yellow));
public void paintComponent(Graphics g)
super.paintComponent(g);
g.setColor(Color.WHITE);
g.drawString("x :" + curX, 10, 20);
g.drawString("y :" + curY, 10, 30);
g.setColor(Color.RED);
g.fillOval(ballX, ballY, ballW, ballH);
public static void main(String[] asd)
new Shoot();
}public boolean isPointInCircle(){
double x= circle.getWidth/2.0+circle.getX();
double y= circle.getHeight/2.0+circle.getY();
double distance=getDistance(x,y,pointX,PointY);
return (distance<= circle.getWidth/2.0); //if the distance from the point to the center of the circle is less than the radius of the circle return true
double getDistance(double x1, double y1, double x2, double y2){
return math.sqrt((x1-x2)(x1-x2) + (y1-y2)(y1-y2));
}Edited by: ghostbust555 on Jan 23, 2011 3:20 PM -
I have WebLogic 32 bit installed on a Windows XP 32 bit platform. And CCB V2.2.0.
Upon startup in WebLogic, I get the following error message in the Domain Diagnostic Log file of Web Logic;
101162 User defined listener com.splwg.base.web.startup.SPLWebStartup failed: com.splwg.shared.common.LoggedException: The following stacked messages were reported as the LoggedException was rethrown: com.splwg.base.web.startup.PreloadLoginInfo.preloadFieldMetaData(PreloadLoginInfo.java:150): Unable to preload navigation keys and web pages com.splwg.base.support.context.SessionExecutable.doAsReadOnlyInCurrentSessionIfAvailable(SessionExecutable.java:54): Error caching field metainfo com.splwg.base.web.common.FieldMetaDataRepository$FieldRetriever.execute(FieldMetaDataRepository.java:99): Caught exception from SessionExecutable.execute() The root LoggedException was: Did not find base field 'EXT_REFERENCE_ID' pointed to by field 'C1_EXT_REFERENCE_ID'.
A user, ChesPlay, suggested that I install FrameWork Service Pack 10 from the Oracle MetaLink site. *(ChesPlay...thanks for your help!)*
I completed the install yesterday, but still get the same error.
First, I verified that I had already installed the Prerequisite Single Fixes 7195518. 7012092, 7284592 per SP10 install instructions.
Second, I installed the Prerequisite Single Fix 10124173 before installing Service Pack 10.
The following are the last few bug installations from Service Pack 10 and these are from my <SPLBASE>\etc\installed_fixes.txt file (I included these to show that SP10 installed OK);
10215923
10424723
10262588
10333081
11069455
10374823
10428564
11682732
9943861
9843154
10235499
I queried the ci_ut_instl database table to show the last few database updates that were installed from Service Pack 10;
10270627
9442145
8632929
10183805
8486799
9947280
10116686
ChesPlay, you asked if I had installed DB SP1, and I am thinking that this would be included inside the DB SP10 that I just installed. There was a database upgrade in FW SP10. I queried some defects that would have been corrected around the time we did the initial install and installed FW SP1, and those DB corrections are;
SR_NO
6089943
6320038
6508751
6690631
6732352
6741522
6746717
6752806
6753590
6762978
6769161
6769237
6779293
6779801
6781657
6818630
6823390
6849474
6852874
6870669
6906144
6939345
6941618
6979608
6995839
7003470
7014765
7026277
7381045
7381047
7381055
7381058
7382787
7384954
7388487
7391086
7391288
7407889
7413910
7418119
7428875
7438467
7441512
7448408
7456024
7462902
7484097
7493378
7494737
7500660
7503581
7509645
7527185
7534015
7568961
7569426
7582167
7588967
7592708
7594026
7599841
7599984
7613246
7616144
7624052
7633553
7635383
7649695
7677265
7679057
7026919
7037953
7111539
7233235
7256221
7293343
7310420
7322924
7332542
7357736
7503171
7503377
7510815
7520424
7568016
7593173
7594038
7671757
7827664
8251286
8260929
8268874
8273106
8291086
8392040
6937115
6979711
6999033
7041838
7109393
7175088
7176465
7189056
7189062
7189066
7228406
7240901
7247174
7247901
7253983
7254315
7259747
7263367
7275778
7277602
7279706
7281406
7281654
7286107
7288370
7298418
7316562
7316681
7323846
7332558
7332907
7344408
7346424
7353257
7356312
7357247
7359107
7375159
7381041
9300696
9309747
9340118
9395985
9400236
9492363
9526408
9647138
9654108
9664482
9698293
9709303
9712403
9825630
7679562
7687196
7687438
7687453
7710475
7774775
7811967
7831369
7911307
7924667
8206476
8226523
8235853
8256491
8273340
8280748
8284128
8289639
8292263
8301127
8307872
8321198
8339901
8344477
8350640
8350682
8403219
8426144
8426309
8443509
8445514
8445531
8484901
8490758
8496724
8503323
8532198
8546929
8568639
8569825
8572542
8574743
8593280
8595554
8596468
8603598
8603640
8619605
8628607
8631398
8654780
8676657
8710499
8734027
8743059
8743999
8811818
8958357
9017242
8738911
8754679
9006753
9032536
9104466
9110525
9124362
9131056
9211751
9213966
9267200
9280101
9290639
I am headed to MetaLink now for further research on the "Did not find EXT_REFERENCE_ID pointed to by field C1_EXT_REFERENCE_ID" message to see what else I might need to install. I'll update this thread if/when I figure out the problem.
Chesplay if you have another idea, or believe that there is a seperate DB SP1 on MetaLink, please advise. I was not able to find a seperate DB SP1 on MetaLink today. Thanks!For me even the issue was solved when i apply the db portion of patch 7009370. But when i log in to the application i could see ablank pages, the menus were not loading up and i was getting error:
SYSUSER - 313876-67-1 2011-03-05 23:12:11,721 [[ACTIVE] ExecuteThread: '2' for q
ueue: 'weblogic.kernel.Default (self-tuning)'] ERROR (web.dynamicui.NavMetaDataH
older) Error getting navigation info for navigation key userPortalPage
SYSUSER - 313876-67-1 2011-03-05 23:12:11,737 [[ACTIVE] ExecuteThread: '2' for q
ueue: 'weblogic.kernel.Default (self-tuning)'] ERROR (web.dynamicui.XSLTExtensio
nHelper) XSLT Extension error getting program component meta data for userPortal
Page
file:/C:/spl/CCBDEMO/splapp/servers/myserver/tmp/_WL_user/SPLWeb/yge362/war/WEB-
INF/uiXSL/tabMenu.xsl; Line #279; Column #116; com.splwg.shared.common.LoggedException:
The following stacked messages were reported as the LoggedException was rethrown
com.splwg.base.web.dynamicui.XSLTExtensionHelper.privateProgramComponentExtensio
n(XSLTExtensionHelper.java:66): XSLT Extension error getting program component m
eta data for userPortalPage
The root LoggedException was: Error getting navigation info for navigation key u
serPortalPage
file:/C:/spl/CCBDEMO/splapp/servers/myserver/tmp/_WL_user/SPLWeb/yge362/war/WEB-
INF/uiXSL/tabMenu.xsl; Line #279; Column #116; java.lang.NullPointerException
To overcome the above issue i applied the db portion of the patch 8608149 by following below steps:
1.
DELETE FROM CI_UT_INSTL WHERE SR_NO LIKE '8608149%';
DELETE FROM CI_UT_INSTL_DTL WHERE SCRIPT_FILE_NAME LIKE '8608149_RS1%';
COMMIT;
2.Apply the patch 8608149. -
IMac G5 - Pixelated Finder screen
Hi guys,
Wondered if anyone can shed any light on this. I keep getting a pixelated finder screen - not all over but as if the screen hasn't rendered properly. It happens infrequently when I boot up in the morning & it also occured when the computer was running the black swirly screensaver - I clicked the mouse & it left a kind of line of black pixels. If I do a re-start it seems to be okay. The compuer itself seems to be running okay - I'm using quark, illustrator, photoshop, entourage etc.
This morning I had a bit of a scary moment: Booted up & again there were traces of white/grey pixels. When I booted up entourage, it opened as a black image. It allowed me to quit. I went to the finder menu & restart & the restart box came up as as a black box. I clicked in the area where I knew the okay button was & the computer restarted fine.
Anyone any idea what is going on? Do I need a new graphics card? The computer is only 15 month old. Surely it can't be on it's way out already? We've had some really hot weather - do you think it's the heat?
Any help greatly appreciated, I'm working for myself here at home & it's a lonely thing when your main business tool starts going a bit wappy!
Thanks in advance, MelMine too! Within the last week the screen started flickering and has now settled into an almost monochrome blue. My photoshop defaults are white and blue; even the flurry screen saver is on a field of blue. What gives? The RGB now seems mostly B.
My iMac g5 17'' display has turn bluish, but when i
connect an external display it seems fine. Does
anyone know what's wrong?
20in iMac G5 Mac OS X (10.4.9) -
Calling Oracle Standard Form from OAF page - Need to hide the find screen.
Hi all,
i have a requirement where i need to call a oracle standard form(D2K form) from OAF page and need to pass parameter. Now i can able to call a form from page on button click using the following syntax,
"form:AR:US_AR_SUPER_USER:STANDARD:AR_ARXCWMAI_AGE"
My query here is, When i call this form its open with find Form and after values are entered it goes the main form.
I need to hide this find screen which is avaiable in standard and need to call directly the main form with out find form.
Please help me out to reach this.
Thanks in advance.
Regards,
RenuYou need to pass the parameter to the actual form to display the results something like "form:AR:US_AR_SUPER_USER:STANDARD:AR_ARXCWMAI_AGE&P_PARAM=123", assuming P_PARAM is the actual parameter defined in the form. Open the form and check which parameters are available and pass the values accordingly.
Thanks
Shree -
When adding an attachment, the files I see in the finder-screen are not up to date
I want to attach a file to a new message. When I attach it via the button in het message-screen a finder screen will open. The files in here are not up to date. For example, a just added file is not visible. When I brouwse to the same folder by using the Finder itself at this time I will see the up-to-date files and can add them to the message by using drag and drop. So, I have found a solution but I still think this is a bug.
See both screenshots, one is the folder "3 metingen" in the Thunderbird finder screen. the second is the same shown in Finder. More and accuate files are visible in Finder.
Thanks for your time.
Rogier.Both are OSX windows. Thunderbird just asks the operating system to open a windows of that type, so why the operating system would offer up such weirdness I have no idea. Under windows F5 forces and update, I wonder if it does on OSX?
-
i am unable to find SCREEN PAINT option while i created an new company and new DATA Base. Can any one resolve my issue.
Hi,
What version of B 1 you are using?
go to admin>>addons>>add on administration.....check here that screen painter addon is installed or not ?
if you do not find here screen painter then go to your SAP B 1 dump >>packeges>>screen painter>>run the .exe file
Regards
Deepak Tyagi -
Issue with Method to find Screen Exit
Hi all,
I am planning to add 2 custom fields to item details tab in ME51N .
I tried to find screen exits using development class of ME51N i.e ME
I went to smod and tried to find enhancements using ME development class and from the list of enhancements i tried to find a screen exit but i could found one.
I found an enhancement
MEREQ001 Customers' Own Data in Purchase Requisition
Which had a screen exit as well and this is what i was exactly looking for.
But my question is that
MEREQ001 is under development class MEREQ
So that means the way i was trying to find the screen exits is wrong or is there a better way to find screen exits
Let me know
ThanksHi,
U will find that if u try this program.
How to Find a Screen Exit in a Given SAP Standard T-code
Program
REPORT YSMOD2 .
TABLES: MODSAP, MODACT, TSTC.
PARAMETERS: INPUT1 LIKE TSTC-TCODE DEFAULT ' ',
INPUT2 LIKE MODSAP-TYP DEFAULT ' '.
DATA: SEARCH1(6),
SEARCH2(3),
SEARCH3 LIKE MODSAP-MEMBER.
DATA : FIRST_ROW VALUE 'Y'.
CONCATENATE: '%' INPUT1 '%' INTO SEARCH1,
'%' INPUT2 INTO SEARCH2.
SELECT * FROM TSTC WHERE TCODE LIKE SEARCH1.
FIRST_ROW = 'Y'.
CHECK TSTC-PGMNA NE SPACE.
CONCATENATE '%' TSTC-PGMNA '%' INTO SEARCH3.
SELECT * FROM MODSAP WHERE TYP LIKE SEARCH2
AND MEMBER LIKE SEARCH3.
SELECT SINGLE * FROM MODACT WHERE MEMBER = MODSAP-NAME.
IF FIRST_ROW EQ 'Y'.
WRITE: /0 TSTC-TCODE, 6 TSTC-PGMNA, 16 MODSAP-NAME, 32 MODSAP-TYP,
45 MODSAP-MEMBER, 70 MODACT-NAME.
FIRST_ROW = 'N'.
ELSE.
WRITE: /16 MODSAP-NAME, 32 MODSAP-TYP, 45 MODSAP-MEMBER, 70 MODACT-NAME.
ENDIF.
CLEAR : MODSAP, MODACT.
ENDSELECT.
IF SY-SUBRC NE 0.
WRITE : /0 TSTC-TCODE, 6 TSTC-PGMNA, 30 'No exits found'.
ENDIF.
CLEAR TSTC.
ENDSELECT.
END-OF-SELECTION.
CLEAR: SEARCH1, SEARCH2, SEARCH3.
End
Regards,
Jagadish
Maybe you are looking for
-
I have been opening my bankstatements online for a long, long, time. All of a sudden, I can't get them to open. All I get is a blank screen with a tiny "x" in the upper left-hand corner. I'm pretty new to computers, so this may be a stupid questio
-
The i movie progressbar is stuck in one place for more than an hour
and under the bar written "building project" will i be able to access my projects again if I will force the program to quit?? (The last thing i did before it started to load was to mark the clips from one project and than i swiped to another project
-
Latest MBP and high temperature ?
Does anyone who bought the latest MacBook Pro have any problems with is heating up extremely ?
-
Default firewall configuration values
Hi, I've trying to modify my ipfw rules and i got the idea of use a script. After use it i cannot conect to internet and i reverted those new rules but there is one rule that start with my mac and i need to " sufo ipfw flush" to flush it and connect
-
After a bad experience using Time Machine with an external hard drive I decided to back up my photos to 2 DVDs, which I did. I would like to periodically backup only those items in iPhoto that have been added since the original backup, how do I selec