Create rectangle with mouse drag, not draw
问题 I want create a rectangle using the whole screen. By using the whole screen, I mean something like this: To start, is that even possible in Java, using the whole screen like that? Second, how would I go about doing it? Another thing, I do not want to draw an actual rectangle, I want to create on, as in a new java.awt.Rectangle . 回答1: nb- First thing to note, this is done using Java 7, creating a transparent window in Java 6 is done differently and is not possible below update 10 (I believe)