# How to REMOVE Title Bar

**URL:** <https://discourse.processing.org/t/how-to-remove-title-bar/7537>\
**Category:** Coding Questions\
**Created:** [January 15, 2019, 12:01pm UTC](https://discourse.processing.org/t/how-to-remove-title-bar/7537 "2019-01-15T12:01:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![santosh](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@santosh](https://discourse.processing.org/u/santosh)\
**Post date:** [January 15, 2019, 12:01pm UTC](https://discourse.processing.org/t/how-to-remove-title-bar/7537/1 "2019-01-15T12:01:46Z")

</div>

How to REMOVE Title Bar???

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 15, 2019, 2:02pm UTC](https://discourse.processing.org/t/how-to-remove-title-bar/7537/2 "2019-01-15T14:02:33Z")

</div>

yes, you can set the title of the canvas window

```auto
void setup() {
  size(300, 300);
  surface.setTitle("hallo world");
}

```

---

<div class="post-metadata">

**Author:** ![Quillbert1](https://avatars.discourse-cdn.com/v4/letter/q/f475e1/32.png) [@Quillbert1](https://discourse.processing.org/u/Quillbert1)\
**Post date:** [January 15, 2019, 2:40pm UTC](https://discourse.processing.org/t/how-to-remove-title-bar/7537/3 "2019-01-15T14:40:46Z")

</div>

It used to be `surface.setUndecorated()`, but I believe that it is now

```auto
void setup() {
     fullscreen();
     surface.setSize(600,400); //Change size here
}

```

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 15, 2019, 2:49pm UTC](https://discourse.processing.org/t/how-to-remove-title-bar/7537/4 "2019-01-15T14:49:17Z")

</div>

i see this: works here

> **[Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/comment/74025/#Comment_74025)**
>
> Processing is an electronic sketchbook, a language and a worldwide community. This is its forum.

also @Quillbert1 does same.

```auto
void setup() {
  fullScreen();
  surface.setSize(200, 200); //Change size here
}

void draw() {
  background(0);
  ellipse(mouseX, mouseY, 20, 20);
}

```

---

<div class="post-metadata">

**Author:** ![santosh](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@santosh](https://discourse.processing.org/u/santosh)\
**Post date:** [January 17, 2019, 5:42pm UTC](https://discourse.processing.org/t/how-to-remove-title-bar/7537/5 "2019-01-17T17:42:28Z")

</div>

thank you?  
but, can’t move it?  
How to make **movable** and **resizable** Window With **screen fit** …!?..

and with custom title bar.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 18, 2019, 1:33am UTC](https://discourse.processing.org/t/how-to-remove-title-bar/7537/6 "2019-01-18T01:33:02Z")

</div>

play with this,  
and find some info:

> **[processing/processing](https://github.com/processing/processing/wiki/Window-Size-and-Full-Screen)**
>
> Source code for the Processing Core and Development Environment (PDE) - processing/processing

mod with @Quillbert1 ( next post )

```auto
void setup() {
  size(200, 200);
  surface.setTitle("my title");
  surface.setResizable(true);
  surface.setLocation(200,200);
  println("move or resize window per mouse, reset with any keypress");
}

void draw() {
  ellipse(width/2,height/2,width/4,width/4);
}

void keyPressed() {
  surface.setSize(200,200);
  surface.setLocation(200,200);
}

```

---

<div class="post-metadata">

**Author:** ![Quillbert1](https://avatars.discourse-cdn.com/v4/letter/q/f475e1/32.png) [@Quillbert1](https://discourse.processing.org/u/Quillbert1)\
**Post date:** [January 18, 2019, 1:38am UTC](https://discourse.processing.org/t/how-to-remove-title-bar/7537/7 "2019-01-18T01:38:09Z")

</div>

You can move it with surface.setLocation()

---

<div class="post-metadata">

**Author:** ![Abel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/abel/32/3289_2.png) [@Abel](https://discourse.processing.org/u/Abel)\
**Post date:** [January 20, 2019, 6:06pm UTC](https://discourse.processing.org/t/how-to-remove-title-bar/7537/8 "2019-01-20T18:06:19Z")

</div>

Hey! 😊 You could also consider using **globalMouse** from _java.awt_ like the one below to move the surface.

```auto
import java.awt.*;

int gMouseX = 0, gMouseY = 0; // g for global
float screenPosX, screenPosY, factorX, factorY; // Movement factor

void settings() {
  fullScreen();
}
void setup() {
  surface.setSize(400, 200);
  screenPosX = (displayWidth - width)/2; // Positioning window in the center
  screenPosY = (displayHeight - height)/2;
}
void draw () {  
  background(30);

  textAlign(CENTER, CENTER);
  textSize(height*0.1);
  text("Ethiopia", width/2, height/2);

  globally ();
}
void globally () {
  surface.setLocation((int) screenPosX, (int) screenPosY);
  
  Point location = MouseInfo.getPointerInfo().getLocation();
  gMouseX = (int) location.getX(); // global mouse position along X
  gMouseY = (int) location.getY(); // global mouse position along Y
}
void mousePressed() {
  factorX = mouseX;
  factorY = mouseY;
}
void mouseDragged() {
  screenPosX = MouseInfo.getPointerInfo().getLocation().x - factorX;
  screenPosY = MouseInfo.getPointerInfo().getLocation().y - factorY;
}

```

Regards.

---

<div class="post-metadata">

**Author:** ![santosh](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@santosh](https://discourse.processing.org/u/santosh)\
**Post date:** [January 27, 2019, 9:24am UTC](https://discourse.processing.org/t/how-to-remove-title-bar/7537/9 "2019-01-27T09:24:47Z")

</div>

Awesome…😊  
Thank you…

But How to make it fit to screen?

---

<div class="post-metadata">

**Author:** ![TfGuy44](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tfguy44/32/41_2.png) [@TfGuy44](https://discourse.processing.org/u/TfGuy44)\
**Post date:** [January 27, 2019, 9:51am UTC](https://discourse.processing.org/t/how-to-remove-title-bar/7537/10 "2019-01-27T09:51:29Z")

</div>

To fit to the screen, just call `fullScreen()`.
