Making the GUI for my notepad clone(educational purposes)