User Profile

Collapse

Profile Sidebar

Collapse
babs115
babs115
Last Activity: Dec 31 '15, 04:18 PM
Joined: Jun 25 '15
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • why do I get the error illegal start of expression in my code

    please help

    Code:
    import java.util.*;
    
    
    
    
    public class Vehicle
    {
        
      maxSpeed ms;
      mark m;
      regNumber rn;
       
      public static void main(String []args)
      {  
       int maxSpeed;
       String mark;
       String regNumber;
        
      public Vehicle()
       {
           int maxSpeed = new maxSpeed();
           String mark = new mark();
    ...
    See more | Go to post
    Last edited by zmbd; Jan 2 '16, 06:11 PM. Reason: babs115: normally, threads consisting of simply posted code without any indication of the work done for basic trouble shooting are closed without answer. Please see the FAQ

  • babs115
    started a topic Sorry bug you guys but can somebody help me?
    in Java

    Sorry bug you guys but can somebody help me?

    I created buttons in the menu,no syntax error but cardholder is not visible. Please help!!!


    Code:
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.awt.event.*;
    
    public class MainMenu extends JFrame implements ActionListener
    {
        private DefaultTableModel model;
        private JTable table;
        private JScrollPane scroll;
        private JPanel panel;
    ...
    See more | Go to post
    Last edited by Rabbit; Oct 25 '15, 04:53 AM. Reason: Fixed code tags

  • sorry, please how I use auto-complete to create the missing method? This is new to me. Thanks in advance.
    See more | Go to post

    Leave a comment:


  • incompatible types: MainMenu cannot be converted to java.awt.event.ActionListener

    Can someone please help? Why am I getting this error massage from code[incompatible types: MainMenu cannot be converted to java.awt.event. ActionListener]

    Here is the CODE

    Code:
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.awt.event.*;
    
    public class MainMenu extends JFrame //implements ActionListener
    {
        private DefaultTableModel model;
    ...
    See more | Go to post

  • I get the error DelegatingMethodAccessor when i run this code from AlphaApp

    atsun.reflect.D elegatingMethod AccessorImpl.in voke(Delegating MethodAccessorI mpl.java:43)
    at java.lang.refle ct.Method.invok e(Method.java:4 97)
    at bluej.runtime.E xecServer$3.run (ExecServer.jav a:730)

    MainMenu
    Code:
    import java.awt.*;
    import java.io.*;
    import java.util.*;
    import java.net.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.FlowLayout.*;
    ...
    See more | Go to post

  • babs115
    started a topic Can anyone please help me? I have this MySQL ERROR

    Can anyone please help me? I have this MySQL ERROR

    HELP PLEASE!!!!!!!!! !!!!

    Error

    MySQL said: Documentation
    #2003 - Can't connect to MySQL server on '127.0.0.1' (10061)

    Connection for controluser as defined in your configuration failed.
    See more | Go to post

  • I am not able to attach the mwb file.
    what should I do?
    See more | Go to post

    Leave a comment:


  • Can you tell me please what is wrong with this ERD?

    My colleagues say it is wrong but not one of them can tell why and I don't know myself.

    I attached the design and ERD for your correction ,please....
    See more | Go to post

  • The error is in line 168
    See more | Go to post

    Leave a comment:


  • constructor Book in class Book cannot be applied to this given type[Need help]

    I do not know how to go further from here, please help.
    [constructor Book in class Book cannot be applied to this given type]I attached a picture of the area of concern.thanks


    Code:
    import java.awt.*;
    import java.io.*;
    import java.util.*;
    import java.text.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.imageio.ImageIO;
    import java.awt.image.BufferedImage;
    ...
    See more | Go to post

  • Help! I can't make my form visible [form is the commented area in showProduct]

    I created a [PRODUCT FORM] with no errors after compilation yet it is not visible. Can anyone help?
    [Commented area of showProduct is where i tried to create the form]



    Code:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JFrame;
    
    public class Bookshop extends JFrame implements ActionListener
    {
     //JFrame product = new JFrame();
    ...
    See more | Go to post

  • sorry I think am too new to comprehend this coding ones

    [After moving the whole code from line 51 - 79 it is now showing the error cannot find symbol variable productId]

    Code:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    
    public class Bookshop extends JFrame implements ActionListener
    {
     
     JTextField productIdText;
     JTextField productNameText;
     JTextField productCostText;
     JTextField productyearOfPublicationText;
    ...
    See more | Go to post

  • babs115
    started a topic Still experiencing error message. PLEASE HELP!
    in Java

    Still experiencing error message. PLEASE HELP!

    ERROR
    [method addActionListen er in class javax.swing.Abs tractButton cannot be applied to giventypes;
    requires:java.a wt.event.Action Listener found: Bookshop.produc t
    reason: actual argument Bookshop.produc t cannot be converted to java.awt.event. ActionListener by method invocation conversion]

    Code:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    
    public class Bookshop extends
    ...
    See more | Go to post

  • Thanks a million.
    Your are great.
    See more | Go to post

    Leave a comment:


  • compilation error message[I do not understand this error message,please help!]

    ERROR
    [Bookshop is not an abstract and does not override abstract method actionPerformed (java.awt.event .ActionEvent)in java.awt.event. ActionListener]

    Code:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Bookshop extends JFrame implements ActionListener
    {
     
     JTextField productIdText;
     JTextField productNameText;
     JTextField productCostText;
    ...
    See more | Go to post

  • babs115
    started a topic How can I solve this java problem?
    in Java

    How can I solve this java problem?

    ERROR MESSAGE[non-static variables this cannot be referenced from a static contex ]
    public static void main(String []args)
    Code:
    { 
      Product p = new Product(110,"Books",15.00,2010,"Wiliams");
      p.setproductId(110);
      p.setproductName("Books");
      p.setCost(15.00);
      p.setyearOfPublication(2010);
      p.setpublishingHouse("Wiliams");
      
      
      int productId
    ...
    See more | Go to post
    Last edited by Stewart Ross; Jul 2 '15, 06:33 PM. Reason: Corrected code tags

  • babs115
    started a topic return type
    in Java

    return type

    I have this error in my java code[invalid method declaration;ret urn type required]the code where the error is
    Code:
    public Book(String author,int ISBN,int numberOfPages,double cost,int yearOfPublication,String publishingHouse)
    {
     super(productId,productName,cost,yearOfPublication,publishingHouse);      
     this.author = author;
     this.ISBN = ISBN;
     this.numberOfPages = numberOfPages; 
    }
    Please I need help,thanks...
    See more | Go to post
    Last edited by Rabbit; Jul 2 '15, 04:34 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.

  • I tried to run this create query but fail each time.

    I get these error each time I write the syntax in quotes. Please can someone help me?
    ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
    corresponds to your MySQL server version for the right syntax to use near 'book(
    saleID int not null,isbn varchar(20) not null,quantity int not null,salePri' at
    line 1

    [create table sale(saleID int not null auto_increment primary key,custID...
    See more | Go to post
No activity results to display
Show More
Working...