473,397 Members | 2,056 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Very new to Java, need help

Hi i just started a programing class a few weeks ago. and i need help drawing lines...I know this may seem very simple to everyone here but i am struggling. Ok I am writing a program to create a right triangle and i cant seem to draw a horizontal line..i want to draw it from the bottom of the vertical line. I am writing an applet. Please help..
Nov 13 '05 #1
10 6480
Niheel
2,460 Expert Mod 2GB
moved your thread to programming help forum.

:-)
Nov 13 '05 #2
please send the code so to be checked
Jul 8 '06 #3
where's the code?
Jul 14 '06 #4
that is simple man try this hint below. it is not the code. just a hint on how to accompolish that
--->

draw a line with coordinated as follows:
10,10,10,200,
another line with coordinated:
10,200, 200,200
third line as:
10,10, 200,200
that is it


u know how to draw a line. here is a code tip just put it in your applet:

publlic void paint(Graphics objGraphics)
{
objGraphics.drawLine(10, 10, 200, 200);
objGraphics.drawLine(10, 200, 200, 200);
objGraphics.drawLine(10, 10, 10, 200);
}
Aug 6 '06 #6
shane
2
hi im maricel and i need an information about java programming. Would you help me? Thanx in advance.
Sep 1 '06 #7
shane
2
hi im very new to java programming. Would you help me to ba able to know about java. Thanx and here's my email cziarel@yahoo.com.
Sep 1 '06 #8
robroy
1
read a few books. If you don have money for them.

read the tutorials in java.sun.com.
read the documentation.
Sep 2 '06 #9
Java learning should be start with core java and then towards advanced java.
Java 2 Complete Reference : By Patric Nqughton and Herbert Schild, published by Tata McGraw Hill.
Oct 4 '06 #10
r035198x
13,262 8TB
Java learning should be start with core java and then towards advanced java.
Java 2 Complete Reference : By Patric Nqughton and Herbert Schild, published by Tata McGraw Hill.
sagarp86, You are one thread digger.
Oct 4 '06 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Alex | last post by:
Hello I am interested learn more about .NET but am uncertain of exactly what niche it fills in the world of programming. (The more I read the more I am confused). What I am looking for is the...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
5
by: Lee David | last post by:
I went to the sun site and downloaded what I hope is the development part of java. I downloaded JDK5 with Netbeans. I installed it and now have a folder in my program group "Netbeans". Is that...
5
by: Hassan Naqvi | last post by:
Hi, Basically, I am Java developer. In past I have played with Oracle using Java (JDBC). But this is the time to play with IBM DB2 using Java (JDBC). So kindly help this DB2 newbie. I have a...
3
by: Jesper Denmark | last post by:
Within the following construction switch (expression) { int i; i = GetArgs() //return 2 case constant-expression:
6
by: Rhino | last post by:
I'm trying to debug a simple Java UDF written in the DB2General style within Eclipse. I'm getting a java.lang.UnsatisfiedLinkError when I execute the set() method in the UDF. I know that the...
5
blazedaces
by: blazedaces | last post by:
Ok, so you know my problem, java is running out of memory reading with SAX, the event-based xml parser intended more-so than DOM for extremely large files. I'll try to explain what I've been doing...
8
by: carlos123 | last post by:
hello, i am making a hall pass program for my computer programming class. i am having issues with my jcheckboxes. first off. this file reads from a .txt that just has greg john joe 54343 45777...
6
by: NoviceJava | last post by:
I'm new to JAVA and need some help writing a simple calculator program. Here are the instructions: -expects espression with 2 operands together with either +, -, *, or / operator -espects only...
0
blazedaces
by: blazedaces | last post by:
So in another thread I posted someone suggested I monitor the heap space usage using jstat, which lead me to jconsole which does something similar, but is more of a GUI. The problem I'm having...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.