Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. JComponent cannot be resolved to a type

JComponent cannot be resolved to a type

Scheduled Pinned Locked Moved Java
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 11378403
    wrote on last edited by
    #1

    :confused: i wanna make a class in JComponent library in the following way : class HelloComponent extends JComponent { but the "JComponent cannot be resolved to a type" message would show up . any idea ?

    L T 2 Replies Last reply
    0
    • U User 11378403

      :confused: i wanna make a class in JComponent library in the following way : class HelloComponent extends JComponent { but the "JComponent cannot be resolved to a type" message would show up . any idea ?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You need to show a bit more of your code and the actual line that the message occurs on. Did you import the JComponent definition?

      1 Reply Last reply
      0
      • U User 11378403

        :confused: i wanna make a class in JComponent library in the following way : class HelloComponent extends JComponent { but the "JComponent cannot be resolved to a type" message would show up . any idea ?

        T Offline
        T Offline
        TorstenH
        wrote on last edited by
        #3

        Eclipse can't find the type JComponent What kind of JComponent is it? What kind of GUI are you creating? That name is used way to.

        regards Torsten I never finish anyth...

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups