Search:

Type: Posts; User: remedys

Search: Search took 0.41 seconds.

  1. Replies
    3
    Views
    317

    [SOLVED] Re: Error for JCombobox Editable

    I cant find the exact error message its called in my book. Does anyone know how to use a catch error in a Editable JComboBox as in someone typed a string that isnt part of the ones specified.
    If...
  2. Replies
    3
    Views
    317

    [SOLVED] Re: Error for JCombobox Editable

    Thank you . The code works already. I know and it would be simpler to do the way you described. However I'm wondering how I would be able to display a message when they type a movie or anything...
  3. Replies
    3
    Views
    317

    [SOLVED] Error for JCombobox Editable

    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.ItemEvent;
    import java.awt.event.ItemListener;
    import java.awt.event.*;
    public class JVideo2 extends JFrame implements ItemListener...
  4. Thread: Code Complete?

    by remedys
    Replies
    1
    Views
    200

    [SOLVED] Code Complete?

    Hello, I am currently doing an assignment where i was given 3 java codes that was similarly to my assignment. I changed those codes to fit my needs and i was wondering if anyone had any better ideas...
  5. Replies
    9
    Views
    215

    [SOLVED] Re: JCheckboxes Item Listener

    i resolved the problem with actionlistener and item listener. I got the total to display and i played around however my toppings arent working. the sizes are working in the code but the toppings are...
  6. Replies
    6
    Views
    1,049

    [SOLVED] Re: Making a Stop sign

    Thank you I finished my code with an awesome stop sign! end result :


    import javax.swing.*;
    import java.awt.*;
    public class StopSign extends JFrame {
    String Stop = new String("STOP");
    public...
  7. Replies
    6
    Views
    1,049

    [SOLVED] Re: Making a Stop sign

    import javax.swing.*;
    import java.awt.*;
    public class StopSign extends JFrame {
    String Stop = new String("STOP");
    public void paint(Graphics gr){
    super.paint(gr);
    int[] xPoints = {90, 180,...
  8. Replies
    6
    Views
    1,049

    [SOLVED] Re: Making a Stop sign

    import javax.swing.*;
    import java.awt.*;
    public class StopSign extends JFrame {
    String Stop = new String("STOP");
    public void paint(Graphics gr){
    super.paint(gr);
    int[] xPoints = {90, 180,...
  9. Replies
    6
    Views
    1,049

    [SOLVED] Making a Stop sign

    import javax.swing.*;

    import java.awt.*;
    public class StopSign extends JFrame {

    public void paint(Graphics gr){
    super.paint(gr);
    int[] xPoints = {90, 180, 300, 390, 390, 300, 180, 90 };...
  10. Replies
    9
    Views
    215

    [SOLVED] Re: JCheckboxes Item Listener

    I tried making a button using ActionListener, however I cant use an actionlistener with a itemlistener. Is there a reason for that ,and how would i go about making a button to calculate total.
  11. Replies
    9
    Views
    215

    [SOLVED] Re: JCheckboxes Item Listener

    So, I thought it would calculate as you pick your selections... However, will i have to make a button that once clicked will display the total of the users selection?
  12. Replies
    9
    Views
    215

    [SOLVED] Re: JCheckboxes Item Listener

    With the itemlistener, I believe I put if the size is selected in the Jcheckbox the size (small,medium,large,xlarge) is given a value in the if statements.

    the double toppings is given a value of...
  13. Replies
    9
    Views
    215

    [SOLVED] JCheckboxes Item Listener

    import java.awt.*;
    import javax.swing.*;

    import java.awt.event.*;
    public class JPizza extends JFrame implements ItemListener
    {
    private int pizza = 0;
    FlowLayout flow = new FlowLayout(); ...
  14. Replies
    5
    Views
    1,083

    [SOLVED] Re: Converting Fahrenheit to Celsius

    Thank you for helping . It worked after I did that and i had to change the code a little . I added String input; also I had to mess with the equation . It wouldn't let me use 5/9 I had to change it...
  15. Replies
    5
    Views
    1,083

    [SOLVED] Re: Converting Fahrenheit to Celsius

    ----jGRASP exec: javac -g FahrenheitToCelsius.java

    ----jGRASP wedge2 error: command "javac" not found.
    ---- This command must be in the current working directory
    ---- or on the current...
  16. Replies
    5
    Views
    1,083

    [SOLVED] Converting Fahrenheit to Celsius

    So here is my code.... i really need help with it. I am completely new to this and going through the book, I came up with this. I am trying to display the answer in celsius and farenheit. I want to...
Results 1 to 16 of 16