How can I made a thicker line??
Dear all,
I want to draw a line on a panel. I have try drawLine() from Graphics and new a Line2D.Double and use Graphics2D to draw it.
However, I can't draw a thicker line. So I want to ask if there is any method that I can draw a thicker line on the panel?
Thx a lot.
From
samhome
Dear jboeing,
Yeah~~~~~~
Thx for your reply. I can make a thicker line now.
Really really thx. You have helped me a lot.
From
samhome
Similar Messages
-
How can you draw a thicker line!
Hi,
Do you know how to draw a thicker line without
using Graphics2D? I can not use setStroke because
if I use graphics2d class, the user have to download
JRE to run my applet.
ThanksUse the end-points of your line to create a Polygon which provides a border round it, then use Graphics.fillPolygon.
-
How can I rectify horrible thick lines after SVG import into Illustrator
I have an SVG file that displays fine in InkScape but erroneously displays lines as huge thick blocks in Illustrator. The SVG file was created originally by Sibelius 7 music notation app. The only reason I would consider buying Illustrator would be to import Sibelius generated SVG files for graphic manipulation. So I would dearly love to sort this out, or it's a big no-no to Illustrator. Any help really welcome! Thanks in advance!
Peter
Mac OS 10.8.2
CS6 try-outThanks for the reply Scott, I'll try to upload at least some iamges. Is there a awy to upload the files here?
This is the output in Illustrator, followed by the same file in InkScape
And the same in Inkscape: -
How can I made thirdparty JDBC-driver to be available under J2SDK?
I have J2SDK installed into directory C:\j2sdk1.4.2_07
OS is WinXP
I compiled simple example java-file that accesses a mySql-DB
It uses following line
Class.forName("com.mysql.jdbc.Driver")
But the result if it is
ClassNotFoundException: com.mysql.jdbc.Driver
SQLException: No suitable driver
How can I made this calls to be available for the system?
I have downloaded him in a jar-file from mysql-site and kopied into
C:\j2sdk1.4.2_07\lib directory, but thet doesn't help
What am I supposed to do?Another two tries and again no success:
C:\j2sdk1.4.2_07\bin>java -classpath t:\yura\mysql-connector-java-3.1.10-bin.jar;.CreateCoffees
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
C:\j2sdk1.4.2_07\bin>java -classpath t:\yura\mysql-connector-java-3.1.10-bin.jar; .CreateCoffees
Exception in thread "main" java.lang.NoClassDefFoundError: /CreateCoffees
The difference between two commands is a space between ; and a dot(.) -
How can I add a new line item for production order?
HI all,
How can I add a new line item for production order through BAPI/FM? Thanks in advance.Hi Mil,
Unfortunetly SAP is not in front of me.
But if possible go to BAPI transaction , check for any production order's bapi for CHANGE purpose. Where you will be able to add your new line.
Reward if useful! -
How can I print the "number lines" with the code in Visual Studio?
How can I print the "number lines" with the code in Visual Studio?
Hi BillionaireMan,
What about your issue now?
If you have resolved it, you can share the solution here, which will be beneficial for other members with the same issue.
If you did not, please tell us more information,we will try my best to help you.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How can I input read a line from a file and output it into the screen?
How can I input read a line from a file and output it into the screen?
If I have a file contains html code and I only want the URL, for example, www24.brinkster.com how can I read that into the buffer and write the output into the screen that using Java?
Any help will be appreciate!
======START FILE default.html ========
<html>
<body>
<br><br>
<center>
<font size=4 face=arial color=#336699>
<b>Welcome to a DerekTran's Website!</b><br>
Underconstructions.... <br>
</font> </center>
<font size=3 face=arial color=black> <br>
Hello,<br>
<br>
I've been using the PWS to run the website on NT workstation 4.0. It was working
fine. <br>
The URL should be as below: <br>
http://127.0.0.1/index.htm or http://localhost/index.htm
<p>And suddently, it stops working, it can't find the connection. I tried to figure
out what's going on, but still <font color="#FF0000">NO CLUES</font>. Does anyone
know what's going on? Please see the link for more.... I believe that I setup
everything correctly and the bugs still flying in the server.... <br>
Thank you for your help.</P>
</font>
<p><font size=3 face=arial color=black>PeerWebServer.doc
<br>
<p><font size=3 face=arial color=black>CannotFindServer.doc
<br>
<p><font size=3 face=arial color=black>HOSTS file is not found
<br>
<p><font size=3 face=arial color=black>LMHOSTS file
<br>
<p><font size=3 face=arial color=black>How to Setup PWS on NT
<BR>
<p><font size=3 face=arial color=black>Issdmin doc</BR>
Please be patient while the document is download....</font>
<font size=3 face=arial color=black><br>If you have any ideas please drop me a
few words at [email protected] </font><br>
<br>
<br>
</p>
<p><!--#include file="Hits.asp"--> </p>
</body>
</html>
========= END OF FILE ===============Hi!
This is a possible solution to your problem.
import java.io.*;
class AddressExtractor {
public static void main(String args[]) throws IOException{
//retrieve the commandline parameters
String fileName = "default.html";
if (args.length != 0) fileName =args[0];
else {
System.out.println("Usage : java AddressExtractor <htmlfile>");
System.exit(0);
BufferedReader in = new BufferedReader(new FileReader(new File(fileName)));
StreamTokenizer st = new StreamTokenizer(in);
st.lowerCaseMode(true);
st.wordChars('/','/'); //include '/' chars as part of token
st.wordChars(':',':'); //include ':' chars as part of token
st.quoteChar('\"'); //set the " quote char
int i;
while (st.ttype != StreamTokenizer.TT_EOF) {
i = st.nextToken();
if (st.ttype == StreamTokenizer.TT_WORD) {
if (st.sval.equals("href")) {
i = st.nextToken(); //the next token (assumed) is the '=' sign
i = st.nextToken(); //then after it is the href value.
getURL(st.sval); //retrieve address
in.close();
static void getURL(String s) {
//Check string if it has http:// and truncate if it does
if (s.indexOf("http://") > -1) {
s = s.substring(s.indexOf("http://") + 7, s.length());
//check if not mailto: do not print otherwise
if (s.indexOf("mailto:") != -1) return;
//printout anything after http:// and the next '/'
//if no '/' then print all
if (s.indexOf('/') > -1) {
System.out.println(s.substring(0, s.indexOf('/')));
} else System.out.println(s);
}Hope this helps. I used static methods instead of encapsulating everyting into a class. -
So, how can I add the red line below all those words, which are not technically correct.
I have tried everything, but nothing works. Red line should come there automatically, but I can't find nothing from settings to do this. Can you guys help me?There isn't any finnish spellcheck in Pages
Inspector palette = Asetukset
I am trying to find out where to get a finnish dictionary that can work in Pages. I am not sure but try this
http://www.jkwchui.com/2010/03/spellchecking-latex-in-macosx/ -
How can I search the last line in an internal table?
How can I search the last line in an internal table?
With a describe?? If it is , how can I do that?
Thanks!!Hi shilpa,
it seems to be you are NEW to SDN. welcome. if you want to get solutions to your Questions, you have to post a NEW thread.dont use the existing thread to post your question.
any way i am giving you the solution for your question
LOOP AT ITAB WHERE F1 = <SOME VALUE>
F2 = <SOME VALUE>.
ENDLOOP.
IF SY-SUBRC = 0.
ITAB WILL HAVE THE LAST RECORD which satisfying the given criteria in WHERE clause of LOOP.
write itab <--this ITAB will have the last record.
ENDIF.
regards,
Srikanth.
Message was edited by: Srikanth Kidambi -
How can i made changes in a site at that way that other sites do not change automatically
when i change a site (index.html), all the other (sub)sites change also with the same settings. how can i made changes in, for example index.html so that other (sub)sites do not change?
i see that the file extension is .css when i make an new site. then i save the site to index.html and the other sites changes also when i made changes in index.html (i mean the settings)I'm not sure exactly what you are asking, but it sounds like you are making changes to a cascading stylesheet (a .css file) that is shared by several pages on your site, but ony want to make the change to the style on the home page.
You can do this by adding inline css to the home page elements you want to be styled differently from the rest of your site.
An example of an inline css definition would be something like this...
<div id="content" style="background-color:blue;">
In the above example, the div would be styled using whatever you have written for the #content id in your css. It would also then overwrite any background-color declared in the external .css file with the style attribute to make the background blue. -
How can I use srvctl command line for change "Failover type" and "F method"
Hi all,
I am using Oracle One Node (11.2.0.3), and I have a service:
/u01/11.2.0/grid/bin/srvctl config service -d orcl
Service name: orcldb
Service is enabled
Server pool: orcl
Cardinality: 1
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: false
Failover type: NONE
Failover method: NONE
TAF failover retries: 0
TAF failover delay: 0
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: BASIC
Edition:
Preferred instances: orcl_1
Available instances:
I would like to change "Failover type" and "Failover method" to:
Failover type: SELECT
Failover method: BASIC
How can I do that? Is there any graphical tool for it? Or, How can I use srvctl command line for change it?
Thanks in advance.
Leonardo.user10674190 wrote:
Hi all,
I am using Oracle One Node (11.2.0.3), and I have a service:
/u01/11.2.0/grid/bin/srvctl config service -d orcl
Service name: orcldb
Service is enabled
Server pool: orcl
Cardinality: 1
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: false
Failover type: NONE
Failover method: NONE
TAF failover retries: 0
TAF failover delay: 0
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: BASIC
Edition:
Preferred instances: orcl_1
Available instances:
I would like to change "Failover type" and "Failover method" to:
Failover type: SELECT
Failover method: BASIC
How can I do that? Is there any graphical tool for it? Or, How can I use srvctl command line for change it?
Thanks in advance.
Leonardo.srvctl modify service -d database_name -s orcldb -q TRUE -m BASIC -P BASIC -e SELECT -z 180 -w 5 -j LONG
Also see
11gR2(11.2) RAC TAF Configuration for Admin and Policy Managed Databases [ID 1312749.1] -
How can I change the thickness of the cell border of a table in Pages for iPad ?
Hi,
i want to change the thickness of cell borders in tables in Pages for iPad to at least 2pt, better 3pt.
How can I change the thickness in the iOS Version of Pages ?
Thankstry this ...
In ur table call this
ColorRenderer cell=new ColorRender();
// for(int i=0;i<table.getModel().getColumnCount();i++){
// TableColumn mod=this.getColumn((this.getModel().getColumnName(i)));
mod.setCellRenderer(cell);
And ur ColorRender calss should override DefaultTableCellRenderer like this
class ColorRenderer extends DefaultTableCellRenderer {
protected int align;
public ColorRenderer(int align) {
this.align=align;
public Component getTableCellRendererComponent(JTable table,
Object value, boolean isSelected, boolean hasFocus, int row,
int column) {
setHorizontalAlignment(align);
super.getTableCellRendererComponent(table, value, isSelected,
hasFocus, row, column);
if(col==4){
setBackground(Color.cyan);
return this; -
How can i make it auto line alignment in ScriptUI?
I want that form recognize new line character. (like '\n')
So I programmed like this. But it's not working.
var win =new Window ("dialog", "test");
win.orientation = "column";
var form1 = win.add ("edittext", undefined, "");
form1.onChanging = function(){
if(form1.text.search("\n") == true){
form2.active = true;
var form2 = win.add ("edittext", undefined, "");
var form3 = win.add ("edittext", undefined, "");
win.show();
How can i make it auto line alignment in ScriptUI?
Is it possible?Your answer is not exactely I want.
But I got hint from your answer.
All I want is "How I can split multilined text into dozen edittext field?"
So I can make this from your sourcecode.
Your answer is so helpful.
Thank you.
var win = new Window ("dialog", "test");
win.orientation = "column";
var charLen=30;
var copytext = [];
var form0 = win.add ("edittext", [0, 0, 150, 200], "", {multiline:true});
form0.height = 100;
var form1 = win.add ("edittext", undefined, "",{readonly:true});
form1.characters = charLen;
var form2 = win.add ("edittext", undefined, "",{readonly:true});
form2.characters = charLen;
var form3 = win.add ("edittext", undefined, "",{readonly:true});
form3.characters = charLen;
form1.active = true;
form0.onChanging = function(){
form1.text = form0.text.split('\n')[0]
form2.text = form0.text.split('\n')[1]
form3.text = form0.text.split('\n')[2]
win.show(); -
How can I change perspective (converging lines) in iPhoto?
How can I change perspective (converging lines) in iPhoto?
iPhoto Menu -> preferences -> Accounts
Regards
TD -
How can create and change PCA line items.
How can create and change PCA line items.
Please tell me the process and t.codes.If you are in version < 4.7 ee then use 9KE0 tcode for passing profict center entries or trasnafer of balances from one profit center to another.
If you are in new GL regular FI entry like FB50 will hold good for account types "S"
Maybe you are looking for
-
What cable do I need to connect an i-pod classic to a Boze Wave machine?
What cable do I need to connect an I-pod classic to a Boze wave machine?
-
Query regarding creation of tables using AET
Hi Experts, First of all is it advisable to create a assignment block (table view/ form view) using AET? We are going to implement an upgrade project from CRM 5.0 to CRM 7.0. In CRM 5.0 there was a two custom tables which needs to implemented in CRM
-
RE: (forte-users) user name
Troy Burns wrote: It would definitely be of interest to me, since this is an item on my "to-do" list. If you can release the code, let me know.Here 'tiz. The files you're getting are: SFVosC.pex - "C" wrapper. Vos.C - The "C" callout. Vos.H - A heade
-
Is there any way to remove the dark spots from the iMac screen? iMac (27-inch, Late 2009) . Spots were always there, maybe too late now. I should habe asked for another one, but I had changed the machine already cause of defects and I got too frustra
-
I've just migrated everything from an older iMac onto my new MB Pro, running iPhoto 11. Even after running the upgrader, I'm still getting the message "To open your library with this version of iPhoto, it first needs to be prepared." What am I doing