Question: In an e-commerce website: [utsavfashion.in](http://www.utsavfashion.in/),

There is a custom jquery as displayed following image :
![Custom Jquery Extension](https://i.stack.imgur.com/68baA.png)

Here, The price changes on every option defined,

And this price must be reflected on Cart as well as checkout page also,

I want to create same functionality as above,
I don't want to use Configurable Products,

I am using Magento 1.7.0.1

How can I achieve this ?

Regards.

Answer: 
[StdDraw.java](http://introcs.cs.princeton.edu/java/stdlib/StdDraw.java.html) is a final class, if I am not mistaken. A final class cannot be extended. So you have two options: 

1. You can directly use source then add your own attributes and compile it yourself, if the license permits this kind of usage.
2. You can encapsulate StdDraw.java class, with your own wrapper class and direct method calls using [Java Reflection](http://docs.oracle.com/javase/tutorial/reflect/index.html).
Use inheritance.

```
class MyClass extends JFrame {
    String myField = "";  //--- This is my own field!
}

```