Hi all,
I apologise for creating another thread but I would love to have some help with my problem I'm currently having please.
I've created a web browser in Java where I have several different classes to help separate the code for ease of coding. I'm currently stuck on a Java class issue...
Hi all,
In my previous thread I posted a few days ago about JEditorPane regarding my Java web browser, now I've got another problem which is that I would like to separate some of my coding into several classes to prevent my code from getting too long.
Below is my current code I have for my...
Tim, my web browser buttons fires the actionPerformed event handler. I've fixed the problem now, what I had to do was wrap the "contentPane = new JEditorPane();" line in a try and catch block and then put the URL in the JEditorPane brackets and create an error message for websites not supported...
I have the following code (including the the code in my previous post) in my web browser program:
public class browser extends JFrame implements ActionListener, HyperlinkListener
{
private JEditorPane contentPane;
private JScrollPane contentScrollPane;
// Code for GUI
public browser()...
Hi all,
I'm having a problem with my Java web browser program that I'm working on. At the moment I'm stuck on trying to get my web browser to load the home page after it has been executed. Below is my current code for the actionPerformed method:
public void actionPerformed (ActionEvent ae)
{...
Miros, the secant method I'm doing is for locating roots of nonlinear equations :)
I'm stuck on my own secant method code and I'm using the function: f(x) = x^3 - 3x +1
System.out.println("\n" + "n \t" +
" xn \t" +...
Hi all,
I was wondering how can I create a secant method function in Java?
I've seen a few examples of secant methods created in different programming languages such as Fortran:
http://www.ce.udel.edu/faculty/kaliakin/secant_method.html
I've tried converting the code in the above link into...
I thought this would be the best place to ask about for Haskell, I apologise if I've put it in the wrong place, sorry!
I'm trying to create a function called display where I type in a product name, e.g. dvd1, it returns the string and the total value of the stock held for the product:
Here's...
THanks KevinADC :)
It was my mistake, I change the values by mistake!
Is it possible to add the values (ones that have been selected) together as a total?
On a related subject:
if (@address_line_2{'address_line_2'} eq "")
{
print "\n";
}
else
{
print " @address_line_2\n"...
KevinADC,
I'm having a problem with the $_ parameter as it doesn't seem to be showing anything :S
Is there an alternative to this $_?
Please let me know :)
Xaqte, they are indeed working :)
I'm new to Perl unfortunately :(
Does the grep function block the out elements in the array in order to match the specific element?
Is it possible for you to help me with my previous post please?
You deserved the star! :)
KevinADC, thanks for your post, I was trying to fix my if statement, sorry!
Regarding my previous post, for the selected values, what I mean why add the selected values is that it adds the values together to calculate a total.
How can I edit my posts on these forums? :S
Xaqte, thanks for the welcome and for the help! :)
I've got it working now thanks! :)
Is it possible to get a value from an if statement that is true (like the one Xaqte posted) and stick it in another array which calculates the total?
Here's a better explanation:
if ( grep { $_ eq 'green'}...
I'm using the following code for checkboxes in my HTML form:
my @color = param('color');
foreach my $color (@color) {
print "You picked $color.<br>\n";
}
At the moment I'm using this code to match an element from my array:
if ($color[0] eq "name of color")
The problem is, is there an...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.