gunjannigam 28 Junior Poster

I want to know that can I run a code which extend JPanel and uses JFrame without running the x11 server on ubuntu. I read something about Headless but its not working.