How to draw an arc with width more than 1
Hi!
I got the following problem:
I need to draw an arc under JDK1.1.
It works fine, but I need to be able to adjust the
thickness. I didn't find anything in the graphics-
class.
Who knows?
Valentin
I think you're just gunna have to draw multiple arcs with start/end points that are pixel increments away from each other. In Java2 you could use set the "stroke" with Java 2D, but that's not availale in 1.1.
Similar Messages
-
Print tpage number/total page number in a report with width more than 240
Dear all,
I need to display total page number as following code sample.
But I need to put it after position 240.
this program can print total page number if it is placed at postion 239 or before.
WRITE: /234(10) 'Heading', 239 SY-PAGNO,'of ', '-----'.
Whenever I put 240 or more WRITE: /234(10) 'Heading', 240 SY-PAGNO,'of ', '-----'.
Total page num could not be displayed.
Please tell me the solution.
thanks
REPORT YPAGECOUNT NO STANDARD PAGE HEADING LINE-SIZE 276 LINE-COUNT 65.
DATA L_PAGE_COUNT(5) TYPE C.
TOP-OF-PAGE.
WRITE : /234(10) 'PAGE', SY-PAGNO,'/ ','-----', ''.
WRITE: /234(10) 'Heading', 239 SY-PAGNO,'of ', '-----'.
ULINE.
START-OF-SELECTION.
Real list output takes place here
DO 1000 TIMES.
WRITE: / 'Line #', SY-LINNO.
ENDDO.
Page count will be printed on each page here
WRITE SY-PAGNO TO L_PAGE_COUNT LEFT-JUSTIFIED.
DO SY-PAGNO TIMES.
READ LINE 1 OF PAGE SY-INDEX.
REPLACE '-----' WITH L_PAGE_COUNT INTO SY-LISEL.
MODIFY CURRENT LINE.
ENDDO.Using Values Greater than 255 for the LINE-SIZE of a List
If you define a fixed column width greater than 255 using the LINE-SIZE addition in the REPORT or NEW-PAGEstatement, the following notes apply:
Type definitions: The type group SLIST defines the valid maximum value for the list width (SLIST_MAX_LINESIZE), and contains a type for list lines with maximum width (SLIST_MAX_LISTLINE).
Accessing the entire contents of a line: To read or modify the entire contents of a wide line, you can use the ... LINE VALUE addition in the READ LINE or MODIFY LINE statements. This is an alternative to using SY-LISEL that is independent of the attributes of the system field (since the length of SY-LISEL is 255 characters).
Horizontal lines: With extra-wide lists, the "ULINE." statement corresponds to "WRITE / SY-ULINE.". So, for example, "ULINE AT 5(300)." corresponds to "WRITE AT 5(300) SY-ULINE.".
Output length: You can use the length specification in WRITE (or ULINE) to extend the output length of an extra-wide list up to the value of LINE-SIZE. If you want to output a whole field that is longer than 255 characters, you must use this, even if the field itself is defined as longer than 255 characters.
Example
NEW-PAGE LINE-SIZE 1000.
DATA: F1(500) VALUE 'F1'.
WRITE: / F1 COLOR COL_NORMAL. " Output with length 255
WRITE: /(500) F1 COLOR COL_NORMAL. " Output with length 500
Awrd Points if useful
Bhupal -
How to draw a bar with Gradient Color ?
Hi,
How to draw a bar with Gradient Color ? I see
in Java Help about GradientPaint, maybe this
can help ?
Thanks in advance,
MichaelTry to use this in you paint method :
public void paint(Graphics g)
Graphics2D g2D = (Graphics2D) g;
// Get the height & width
int width = this.getWidth();
int height = this.getHeight();
// Create the gradient paint
gradientPaint = new GradientPaint(0,0, Color.blue, width, height, Color.red);
g2D.setPaint(gradientPaint);
g2D.fillRect(0,0, width, height); -
How can i use Itunes to update more than one IPad with more than one owner
How can i use Itunes to update more than one IPad with more than one owner? I own an IPad and my wife owns an IPad. I want to use my system to update both IPads. We have different Apple Accounts and different applications. Is this possible?
Of course, that is too easy. I am such a bonehead.
-
How to draw a globe with lines of lattitude and longitude?
I'm using CS4 on a Mac.
Can anyone tell me how to draw a globe with a grid? I need 7 lines of latitude and 40 lines of longitude (i.e. separated by 9 degrees). I would like to have each segment of the grid defined as shape so I can fill each one with a different color.Maybe this way can help.....
-
How can i send an email with subject more than 50 char.
Hi
Can you please explain How can i send an email with subject more than 50 char?? I am using Cl_BCS=>SET_MESSAGE_SUBJECT but it is throwing an error " An exception of the type CX_SY_REF_IS_INITIAL has occured which is not caught" .
Regards
AlokTry using the following FM
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = i_mail_data
put_in_outbox = c_x
TABLES
packing_list = i_objpack[]
object_header = i_objhead[]
contents_bin = i_objbin[]
contents_txt = i_objtxt[]
receivers = i_receivers[]
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Regards
Avinash
Edited by: Avinash Jagtap on Dec 2, 2009 7:00 AM
Edited by: Avinash Jagtap on Dec 2, 2009 7:02 AM -
How do I repeat the same row more than once in report 10g
How do I repeat the same row more than once in report 10g
So I can print the bar code more than once
in report;
Edited by: user11106555 on May 9, 2009 5:50 AMGREAT THAN X MAN
It is already working, but with the first ROW
select ename from emp
CONNECT BY ROWNUM<=5
ENAME
SMITH
SMITH
SMITH
SMITH
SMITH
ALLEN
WARD
JONES
MARTIN
BLAKE
CLARK
SCOTT
KING
TURNER
ADAMS
JAMES
FORD
MILLER
BUT I want this result
Item1
Item2
Item3
to
Item1
Item1
Item1
Item2
Item2
Item2
Item3
Item3
Item3 -
How can I change all of (or more than one) speaker note to a voice at once?
Hello...
I have a lot of speaker notes that I need to apply a specific voice to. How do I apply the same voice to all of the speaker notes in the whole project at once? Or at least more than one? Any help would be appreciated. Thank you! I am working with Captivate 6.Hi Vikram,
Thanks. That tip definitely helps! You just have to be careful when you use the CNTRL button and not highlight the name of the slide as you try to highlight the voices. If you do that, then the drop down box becomes “unclickable”. Unfortunately, when using the control button, it is sometimes impossible not to highlight the name of the slide as well.
Ryan
Von: VikramGaur [email protected]
Gesendet: Donnerstag, 20. September 2012 16:25
An: Scharfer, Ryan
Betreff: How can I change all of (or more than one) speaker note to a voice at once?
Re: How can I change all of (or more than one) speaker note to a voice at once?
created by VikramGaur<http://forums.adobe.com/people/VikramGaur> in Adobe Captivate - View the full discussion<http://forums.adobe.com/message/4713463#4713463 -
How Do I Share My Database Between More Than One User Account on the Same Mac?
How Do I Share My Database Between More Than One User Account on the Same Mac?
How to use multiple iPhone, iPad, or iPod devices with one computer. The only way is for you to have a separate user account to log into on that computer.
-
iTunes will not show my purchases before October 18, when I had a different username. How do I get the older purchases (more than 5,000) listed when my password is rejected and it won't issue a new one for that username?
Wow that was really quick, thank you so much. Im not sure at all which version it was because i said it was around 4 years ago he bought it. I know it isn't under his username, since he's a PC person (ugh) so i know its probably registered to one of our actual names. isn't there some way to look it up since we did register it, because I'm not even sure where the disks are from when we bought it (we've moved a lot and also have two storage lockers, i know i would have kept it with other disks) but my cd rom drive is actually broken on my computer as well ( i think it got stepped on and is now squished and won't eject or run disks.)
So is there anyway they can look up that its registered to one of our names since we did register it when we bought and installed it, or do i really have to find the disk with some sort of proof of purchase (i know there would be no receipt after all this time)
either way, ill do what you suggested to the best of my abilities and thank you so much for answering my questions, i can't even open the program as its incompatible and find out the info from that) so I'm in a bit of a pickle and your response was so thorough and it didn't seem to be posted long enough to even write a well researched response, thanks, all the best,
sarucia -
Problem with starting more than one SwingWorker
Hello
I wonder if anyone could tell me if there are known problems with starting more than one SwingWorker thread at once?
In response to an action the user performs, I need to obtain several lists of things from the server. This includes a couple of server-calls, and I want to do the server calls in a thread outside the awt-event thread. So I start a couple of SwingWorker-threads. This works fine sometimes, but not always. Sometimes code in some of the SwingWorkers finished method does not update the ui. I can see that the correct calls are made, but the ui is still not updated correctly. The problem seems to be related to the sequence of when the different thread are finished. For instance, if the sequence is like this:
SwingWorker1.construct
SwingWorker2.construct
SwingWorker1.finished
SwingWorker2.finished
Things go fine, but if the sequence is:
SwingWorker1.construct
SwingWorker1.finished
SwingWorker2.construct
SwingWorker2.finished
the ui-updates in SwingWorker1.finished is not done correctly.
Can anyone help me with this?This is the point:
In one SwingWorker thread you have 1 construct method, and 1 finish method - which are both invoked once.
Therefore you only have one opportunity to update the gui in that thread. This forces you to use many threads if you want regular updates, which I try to avoid.
Therefore, the solution!
Have a loop in the construct method that executes the algorithm accordingly, updating the gui accordingly at regular times, maintaining just the 1 thread - becomes easier and nicer for the programmer and the JVM.
The finish method in this case is to update the gui when all iterations are finished.
There is nothing wrong with this. Just because you have a finish method that is called in the event-dispatching thread doesn't mean that all your update code must be in there.
What you MUST ensure is that ALL your update code is executed in the event-dispatching thread, that is the most important thing. After all, SwingWorker is just a helper class, not the gospel template of how to update a gui. -
How can a file be accessed by more than one app?
Hi,
I am new to iOS4 and the whole iPhone, iPod technology. I am really a windows user.
How can a file be accessed by more than one app. In my case I want to transfer a midi file from my PC to my iPod Touch and be able to open it from a couple of Midi Players which I am evaluating - or does each Midi Player have to import the file seperately for its own use?
Thanks,
SamIt seems to me that what you want is exactly a session bean will do. The EJB container is responsible to maintain a certain number instances (configurable) of your session bean and serve multiple clients at the same time. Session beans are not necessarily destroyed after serving a client. If you configure your ejb server to have a pool size of 2 to 100, then you will always have at least 2 instances (no more than 100 even there are a lot of client access) of this ejb ready to serve. The only thing not clear to me is that do you want to use only ONE instance of this bean or you don't care as long as multiple clients can access this bean's service? Since you mentioned that there is not a real database access, you can certainly use a Singleton but a 'regular' session bean with static fields should do it also if these fields will not be modified by clients.
PC -
How to keep the Recent Call Record more than a week?
How to keep the Recent Call Record more than a week? I found the iPhone only can keep the Recent Call Record for only a week.
I have to disagree with your response with respect. My i phone is limiting me to call going back only 7 days ie today is 29 July and my call log will only go back to 22 July. I have only 40 calls logged for that period. I cannot view up to the 100 you mention. I have included all calls for a single caller as well ie one caller shows 7 so ive counted that as 7 calls. There appears no way to set up to 100 in the settings
Thanks
Graham -
How to get my writening history/log more than thre...
How to get my writening history/log more than three months behind
download SkypeLogView
nirsoft.net/utils/skype_log_view.html
and open the main.db file with it
C:\Users\Tamim\AppData\Roaming\Skype\tamim\main.db
can you see the history?
Regards,
Tamim
Location - Dhaka | Bangladesh - Standard Time Zone: GMT/UTC + 06:00 hour
If one of my replies has adequately addressed your issue, please click on the “Accept as Solution” button. If you found a post useful then please "Give Kudos" at the bottom of my post, so that this information can benefit others. -
How to upload a file which has more than 999 line item through BDC ?
Hello Techards
Hi to all
Can any body tell me how to upload a file which has more than 999 line item through BDC for traction F-02 ?
Thanks in advance.
ShovanHello Shovan,
You split it up to post two accounting documents with the help of a "suspense" a/c.
Say, you have to post the following line items below:
line 1 - dr. - GL a/c X - $1000
line 2 - cr. - GL a/c Y - $1
line 3 - cr. - GL a/c Y - $1
line 1001 - cr. - GL a/c Y - $1
You cannot post the above as a single doc in SAP (because of technical reasons), so you need to break it up into 2 documents as below:
Doc1
line 1 - dr - GL a/c X - $1000
line 2 - cr - GL a/c Y - $1
line 3 - cr - GL a/c Y - $1
line 998 - cr - GL a/c Y - $1
line 999 - cr - SUSPENSE a/c - $3
Doc2
line 1 - dr - SUSPENSE a/c - $3
line 2 - cr - GL a/c Y - $3
Note that there is no incorrect impact on accounting as first we credit suspense a/c by $3 and next we debit the same suspense a/c by $3 as a result the effect is nil. Similarly, we credit $997 to GL a/c Y (which is less by $3) in the first doc which is compensated by the second doc by crediting the shortfall of $3.
Hope this helps,
Cheers,
Sougata.
Maybe you are looking for
-
Animated GIF transparency in Muse
I am using Adobe Muse CC 2014 and am interested in placing either a transparent animated .GIF image or an Adobe Edge Animate CC 2104 transparent .OAM image on top of an image in the <body> section. Placing the Adobe Edge Animate .oam image results in
-
Savin a Form on click of a button.
Hi All, I have created an Adobe Form using Adobe Designer 7.0. I want to save the filled up form using a button on the Form itself, instead of going via the File->Save As option. Is there a way of eleminating the File->Save As method, and instead hav
-
It will not let me AirPlay,I do not even have the option for it any help?
-
How to correctly render quicktime with two pop and timecode?
I have a feature finished and need to create the quicktime for the composer and mixer. But I have to add a new time code generator as well. So, at the moment, I have a timeline starting at 58:50 and the feature starting at 01:00:00. It is selected as
-
Are there any good third party or otherwise apps and/or plugins for imovie'11?
Are there any good third party or otherwise apps and/or plugins for imovie'11?